Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type Target struct {
Id *string `json:"id,omitempty"`
Location *string `json:"location,omitempty"`
Name *string `json:"name,omitempty"`
Properties *map[string]interface{} `json:"properties,omitempty"`
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
Type *string `json:"type,omitempty"`
Id *string `json:"id,omitempty"`
Location *string `json:"location,omitempty"`
Name *string `json:"name,omitempty"`
Properties map[string]interface{} `json:"properties"`
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
Type *string `json:"type,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,44 @@ import (
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type AmazonRdsForOracleAuthenticationType string

const (
AmazonRdsForOracleAuthenticationTypeBasic AmazonRdsForOracleAuthenticationType = "Basic"
)

func PossibleValuesForAmazonRdsForOracleAuthenticationType() []string {
return []string{
string(AmazonRdsForOracleAuthenticationTypeBasic),
}
}

func (s *AmazonRdsForOracleAuthenticationType) UnmarshalJSON(bytes []byte) error {
var decoded string
if err := json.Unmarshal(bytes, &decoded); err != nil {
return fmt.Errorf("unmarshaling: %+v", err)
}
out, err := parseAmazonRdsForOracleAuthenticationType(decoded)
if err != nil {
return fmt.Errorf("parsing %q: %+v", decoded, err)
}
*s = *out
return nil
}

func parseAmazonRdsForOracleAuthenticationType(input string) (*AmazonRdsForOracleAuthenticationType, error) {
vals := map[string]AmazonRdsForOracleAuthenticationType{
"basic": AmazonRdsForOracleAuthenticationTypeBasic,
}
if v, ok := vals[strings.ToLower(input)]; ok {
return &v, nil
}

// otherwise presume it's an undefined value and best-effort it
out := AmazonRdsForOracleAuthenticationType(input)
return &out, nil
}

type AmazonRdsForSqlAuthenticationType string

const (
Expand Down Expand Up @@ -994,6 +1032,47 @@ func parseImpalaAuthenticationType(input string) (*ImpalaAuthenticationType, err
return &out, nil
}

type ImpalaThriftTransportProtocol string

const (
ImpalaThriftTransportProtocolBinary ImpalaThriftTransportProtocol = "Binary"
ImpalaThriftTransportProtocolHTTP ImpalaThriftTransportProtocol = "HTTP"
)

func PossibleValuesForImpalaThriftTransportProtocol() []string {
return []string{
string(ImpalaThriftTransportProtocolBinary),
string(ImpalaThriftTransportProtocolHTTP),
}
}

func (s *ImpalaThriftTransportProtocol) UnmarshalJSON(bytes []byte) error {
var decoded string
if err := json.Unmarshal(bytes, &decoded); err != nil {
return fmt.Errorf("unmarshaling: %+v", err)
}
out, err := parseImpalaThriftTransportProtocol(decoded)
if err != nil {
return fmt.Errorf("parsing %q: %+v", decoded, err)
}
*s = *out
return nil
}

func parseImpalaThriftTransportProtocol(input string) (*ImpalaThriftTransportProtocol, error) {
vals := map[string]ImpalaThriftTransportProtocol{
"binary": ImpalaThriftTransportProtocolBinary,
"http": ImpalaThriftTransportProtocolHTTP,
}
if v, ok := vals[strings.ToLower(input)]; ok {
return &v, nil
}

// otherwise presume it's an undefined value and best-effort it
out := ImpalaThriftTransportProtocol(input)
return &out, nil
}

type IntegrationRuntimeEdition string

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,66 @@ import (
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type AmazonRdsForLinkedServiceTypeProperties struct {
ConnectionString interface{} `json:"connectionString"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
Password SecretBase `json:"password"`
AuthenticationType *AmazonRdsForOracleAuthenticationType `json:"authenticationType,omitempty"`
ConnectionString *interface{} `json:"connectionString,omitempty"`
CryptoChecksumClient *interface{} `json:"cryptoChecksumClient,omitempty"`
CryptoChecksumTypesClient *interface{} `json:"cryptoChecksumTypesClient,omitempty"`
EnableBulkLoad *bool `json:"enableBulkLoad,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
EncryptionClient *interface{} `json:"encryptionClient,omitempty"`
EncryptionTypesClient *interface{} `json:"encryptionTypesClient,omitempty"`
FetchSize *int64 `json:"fetchSize,omitempty"`
FetchTswtzAsTimestamp *bool `json:"fetchTswtzAsTimestamp,omitempty"`
InitialLobFetchSize *int64 `json:"initialLobFetchSize,omitempty"`
InitializationString *interface{} `json:"initializationString,omitempty"`
Password SecretBase `json:"password"`
Server *interface{} `json:"server,omitempty"`
StatementCacheSize *int64 `json:"statementCacheSize,omitempty"`
SupportV1DataTypes *bool `json:"supportV1DataTypes,omitempty"`
Username *interface{} `json:"username,omitempty"`
}

var _ json.Unmarshaler = &AmazonRdsForLinkedServiceTypeProperties{}

func (s *AmazonRdsForLinkedServiceTypeProperties) UnmarshalJSON(bytes []byte) error {
var decoded struct {
ConnectionString interface{} `json:"connectionString"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
AuthenticationType *AmazonRdsForOracleAuthenticationType `json:"authenticationType,omitempty"`
ConnectionString *interface{} `json:"connectionString,omitempty"`
CryptoChecksumClient *interface{} `json:"cryptoChecksumClient,omitempty"`
CryptoChecksumTypesClient *interface{} `json:"cryptoChecksumTypesClient,omitempty"`
EnableBulkLoad *bool `json:"enableBulkLoad,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
EncryptionClient *interface{} `json:"encryptionClient,omitempty"`
EncryptionTypesClient *interface{} `json:"encryptionTypesClient,omitempty"`
FetchSize *int64 `json:"fetchSize,omitempty"`
FetchTswtzAsTimestamp *bool `json:"fetchTswtzAsTimestamp,omitempty"`
InitialLobFetchSize *int64 `json:"initialLobFetchSize,omitempty"`
InitializationString *interface{} `json:"initializationString,omitempty"`
Server *interface{} `json:"server,omitempty"`
StatementCacheSize *int64 `json:"statementCacheSize,omitempty"`
SupportV1DataTypes *bool `json:"supportV1DataTypes,omitempty"`
Username *interface{} `json:"username,omitempty"`
}
if err := json.Unmarshal(bytes, &decoded); err != nil {
return fmt.Errorf("unmarshaling: %+v", err)
}

s.AuthenticationType = decoded.AuthenticationType
s.ConnectionString = decoded.ConnectionString
s.CryptoChecksumClient = decoded.CryptoChecksumClient
s.CryptoChecksumTypesClient = decoded.CryptoChecksumTypesClient
s.EnableBulkLoad = decoded.EnableBulkLoad
s.EncryptedCredential = decoded.EncryptedCredential
s.EncryptionClient = decoded.EncryptionClient
s.EncryptionTypesClient = decoded.EncryptionTypesClient
s.FetchSize = decoded.FetchSize
s.FetchTswtzAsTimestamp = decoded.FetchTswtzAsTimestamp
s.InitialLobFetchSize = decoded.InitialLobFetchSize
s.InitializationString = decoded.InitializationString
s.Server = decoded.Server
s.StatementCacheSize = decoded.StatementCacheSize
s.SupportV1DataTypes = decoded.SupportV1DataTypes
s.Username = decoded.Username

var temp map[string]json.RawMessage
if err := json.Unmarshal(bytes, &temp); err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type AzureDatabricksLinkedServiceTypeProperties struct {
AccessToken SecretBase `json:"accessToken"`
Authentication *interface{} `json:"authentication,omitempty"`
Credential *CredentialReference `json:"credential,omitempty"`
DataSecurityMode *interface{} `json:"dataSecurityMode,omitempty"`
Domain interface{} `json:"domain"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
ExistingClusterId *interface{} `json:"existingClusterId,omitempty"`
Expand All @@ -36,6 +37,7 @@ func (s *AzureDatabricksLinkedServiceTypeProperties) UnmarshalJSON(bytes []byte)
var decoded struct {
Authentication *interface{} `json:"authentication,omitempty"`
Credential *CredentialReference `json:"credential,omitempty"`
DataSecurityMode *interface{} `json:"dataSecurityMode,omitempty"`
Domain interface{} `json:"domain"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
ExistingClusterId *interface{} `json:"existingClusterId,omitempty"`
Expand All @@ -59,6 +61,7 @@ func (s *AzureDatabricksLinkedServiceTypeProperties) UnmarshalJSON(bytes []byte)

s.Authentication = decoded.Authentication
s.Credential = decoded.Credential
s.DataSecurityMode = decoded.DataSecurityMode
s.Domain = decoded.Domain
s.EncryptedCredential = decoded.EncryptedCredential
s.ExistingClusterId = decoded.ExistingClusterId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,37 @@ import (
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type ImpalaLinkedServiceTypeProperties struct {
AllowHostNameCNMismatch *bool `json:"allowHostNameCNMismatch,omitempty"`
AllowSelfSignedServerCert *bool `json:"allowSelfSignedServerCert,omitempty"`
AuthenticationType ImpalaAuthenticationType `json:"authenticationType"`
EnableSsl *bool `json:"enableSsl,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
Host interface{} `json:"host"`
Password SecretBase `json:"password"`
Port *int64 `json:"port,omitempty"`
TrustedCertPath *interface{} `json:"trustedCertPath,omitempty"`
UseSystemTrustStore *bool `json:"useSystemTrustStore,omitempty"`
Username *interface{} `json:"username,omitempty"`
AllowHostNameCNMismatch *bool `json:"allowHostNameCNMismatch,omitempty"`
AllowSelfSignedServerCert *bool `json:"allowSelfSignedServerCert,omitempty"`
AuthenticationType ImpalaAuthenticationType `json:"authenticationType"`
EnableServerCertificateValidation *bool `json:"enableServerCertificateValidation,omitempty"`
EnableSsl *bool `json:"enableSsl,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
Host interface{} `json:"host"`
Password SecretBase `json:"password"`
Port *int64 `json:"port,omitempty"`
ThriftTransportProtocol *ImpalaThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"`
TrustedCertPath *interface{} `json:"trustedCertPath,omitempty"`
UseSystemTrustStore *bool `json:"useSystemTrustStore,omitempty"`
Username *interface{} `json:"username,omitempty"`
}

var _ json.Unmarshaler = &ImpalaLinkedServiceTypeProperties{}

func (s *ImpalaLinkedServiceTypeProperties) UnmarshalJSON(bytes []byte) error {
var decoded struct {
AllowHostNameCNMismatch *bool `json:"allowHostNameCNMismatch,omitempty"`
AllowSelfSignedServerCert *bool `json:"allowSelfSignedServerCert,omitempty"`
AuthenticationType ImpalaAuthenticationType `json:"authenticationType"`
EnableSsl *bool `json:"enableSsl,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
Host interface{} `json:"host"`
Port *int64 `json:"port,omitempty"`
TrustedCertPath *interface{} `json:"trustedCertPath,omitempty"`
UseSystemTrustStore *bool `json:"useSystemTrustStore,omitempty"`
Username *interface{} `json:"username,omitempty"`
AllowHostNameCNMismatch *bool `json:"allowHostNameCNMismatch,omitempty"`
AllowSelfSignedServerCert *bool `json:"allowSelfSignedServerCert,omitempty"`
AuthenticationType ImpalaAuthenticationType `json:"authenticationType"`
EnableServerCertificateValidation *bool `json:"enableServerCertificateValidation,omitempty"`
EnableSsl *bool `json:"enableSsl,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
Host interface{} `json:"host"`
Port *int64 `json:"port,omitempty"`
ThriftTransportProtocol *ImpalaThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"`
TrustedCertPath *interface{} `json:"trustedCertPath,omitempty"`
UseSystemTrustStore *bool `json:"useSystemTrustStore,omitempty"`
Username *interface{} `json:"username,omitempty"`
}
if err := json.Unmarshal(bytes, &decoded); err != nil {
return fmt.Errorf("unmarshaling: %+v", err)
Expand All @@ -44,10 +48,12 @@ func (s *ImpalaLinkedServiceTypeProperties) UnmarshalJSON(bytes []byte) error {
s.AllowHostNameCNMismatch = decoded.AllowHostNameCNMismatch
s.AllowSelfSignedServerCert = decoded.AllowSelfSignedServerCert
s.AuthenticationType = decoded.AuthenticationType
s.EnableServerCertificateValidation = decoded.EnableServerCertificateValidation
s.EnableSsl = decoded.EnableSsl
s.EncryptedCredential = decoded.EncryptedCredential
s.Host = decoded.Host
s.Port = decoded.Port
s.ThriftTransportProtocol = decoded.ThriftTransportProtocol
s.TrustedCertPath = decoded.TrustedCertPath
s.UseSystemTrustStore = decoded.UseSystemTrustStore
s.Username = decoded.Username
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,44 @@ import (
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type AmazonRdsForOracleAuthenticationType string

const (
AmazonRdsForOracleAuthenticationTypeBasic AmazonRdsForOracleAuthenticationType = "Basic"
)

func PossibleValuesForAmazonRdsForOracleAuthenticationType() []string {
return []string{
string(AmazonRdsForOracleAuthenticationTypeBasic),
}
}

func (s *AmazonRdsForOracleAuthenticationType) UnmarshalJSON(bytes []byte) error {
var decoded string
if err := json.Unmarshal(bytes, &decoded); err != nil {
return fmt.Errorf("unmarshaling: %+v", err)
}
out, err := parseAmazonRdsForOracleAuthenticationType(decoded)
if err != nil {
return fmt.Errorf("parsing %q: %+v", decoded, err)
}
*s = *out
return nil
}

func parseAmazonRdsForOracleAuthenticationType(input string) (*AmazonRdsForOracleAuthenticationType, error) {
vals := map[string]AmazonRdsForOracleAuthenticationType{
"basic": AmazonRdsForOracleAuthenticationTypeBasic,
}
if v, ok := vals[strings.ToLower(input)]; ok {
return &v, nil
}

// otherwise presume it's an undefined value and best-effort it
out := AmazonRdsForOracleAuthenticationType(input)
return &out, nil
}

type AmazonRdsForSqlAuthenticationType string

const (
Expand Down Expand Up @@ -830,6 +868,47 @@ func parseImpalaAuthenticationType(input string) (*ImpalaAuthenticationType, err
return &out, nil
}

type ImpalaThriftTransportProtocol string

const (
ImpalaThriftTransportProtocolBinary ImpalaThriftTransportProtocol = "Binary"
ImpalaThriftTransportProtocolHTTP ImpalaThriftTransportProtocol = "HTTP"
)

func PossibleValuesForImpalaThriftTransportProtocol() []string {
return []string{
string(ImpalaThriftTransportProtocolBinary),
string(ImpalaThriftTransportProtocolHTTP),
}
}

func (s *ImpalaThriftTransportProtocol) UnmarshalJSON(bytes []byte) error {
var decoded string
if err := json.Unmarshal(bytes, &decoded); err != nil {
return fmt.Errorf("unmarshaling: %+v", err)
}
out, err := parseImpalaThriftTransportProtocol(decoded)
if err != nil {
return fmt.Errorf("parsing %q: %+v", decoded, err)
}
*s = *out
return nil
}

func parseImpalaThriftTransportProtocol(input string) (*ImpalaThriftTransportProtocol, error) {
vals := map[string]ImpalaThriftTransportProtocol{
"binary": ImpalaThriftTransportProtocolBinary,
"http": ImpalaThriftTransportProtocolHTTP,
}
if v, ok := vals[strings.ToLower(input)]; ok {
return &v, nil
}

// otherwise presume it's an undefined value and best-effort it
out := ImpalaThriftTransportProtocol(input)
return &out, nil
}

type IntegrationRuntimeReferenceType string

const (
Expand Down
Loading
Loading