Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto PR: Regenerating the Go SDK (f96ec774c70852095a5980bf3e837b164e133c5c) #1150

Merged
merged 1 commit into from
Jan 27, 2025
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 @@ -4,10 +4,10 @@ package componentproactivedetectionapis
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type ApplicationInsightsComponentProactiveDetectionConfiguration struct {
CustomEmails *[]string `json:"CustomEmails,omitempty"`
Enabled *bool `json:"Enabled,omitempty"`
LastUpdatedTime *string `json:"LastUpdatedTime,omitempty"`
Name *string `json:"Name,omitempty"`
RuleDefinitions *ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions `json:"RuleDefinitions,omitempty"`
SendEmailsToSubscriptionOwners *bool `json:"SendEmailsToSubscriptionOwners,omitempty"`
CustomEmails *[]string `json:"customEmails,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
LastUpdatedTime *string `json:"lastUpdatedTime,omitempty"`
Name *string `json:"name,omitempty"`
RuleDefinitions *ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions `json:"ruleDefinitions,omitempty"`
SendEmailsToSubscriptionOwners *bool `json:"sendEmailsToSubscriptionOwners,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,44 @@ func parseGoogleBigQueryV2AuthenticationType(input string) (*GoogleBigQueryV2Aut
return &out, nil
}

type GreenplumAuthenticationType string

const (
GreenplumAuthenticationTypeBasic GreenplumAuthenticationType = "Basic"
)

func PossibleValuesForGreenplumAuthenticationType() []string {
return []string{
string(GreenplumAuthenticationTypeBasic),
}
}

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

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

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

type HBaseAuthenticationType string

const (
Expand Down Expand Up @@ -1402,6 +1440,44 @@ func parseODataAuthenticationType(input string) (*ODataAuthenticationType, error
return &out, nil
}

type OracleAuthenticationType string

const (
OracleAuthenticationTypeBasic OracleAuthenticationType = "Basic"
)

func PossibleValuesForOracleAuthenticationType() []string {
return []string{
string(OracleAuthenticationTypeBasic),
}
}

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

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

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

type ParameterType string

const (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,114 @@
package dataflowdebugsession

import (
"encoding/json"
"fmt"
)

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type AzurePostgreSqlLinkedServiceTypeProperties struct {
CommandTimeout *int64 `json:"commandTimeout,omitempty"`
ConnectionString *string `json:"connectionString,omitempty"`
Database *string `json:"database,omitempty"`
Encoding *string `json:"encoding,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
Password *AzureKeyVaultSecretReference `json:"password,omitempty"`
Port *int64 `json:"port,omitempty"`
ReadBufferSize *int64 `json:"readBufferSize,omitempty"`
Server *string `json:"server,omitempty"`
SslMode *int64 `json:"sslMode,omitempty"`
Timeout *int64 `json:"timeout,omitempty"`
Timezone *string `json:"timezone,omitempty"`
TrustServerCertificate *bool `json:"trustServerCertificate,omitempty"`
Username *string `json:"username,omitempty"`
AzureCloudType *string `json:"azureCloudType,omitempty"`
CommandTimeout *int64 `json:"commandTimeout,omitempty"`
ConnectionString *string `json:"connectionString,omitempty"`
Credential *CredentialReference `json:"credential,omitempty"`
Database *string `json:"database,omitempty"`
Encoding *string `json:"encoding,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
Password *AzureKeyVaultSecretReference `json:"password,omitempty"`
Port *int64 `json:"port,omitempty"`
ReadBufferSize *int64 `json:"readBufferSize,omitempty"`
Server *string `json:"server,omitempty"`
ServicePrincipalCredentialType *string `json:"servicePrincipalCredentialType,omitempty"`
ServicePrincipalEmbeddedCert SecretBase `json:"servicePrincipalEmbeddedCert"`
ServicePrincipalEmbeddedCertPassword SecretBase `json:"servicePrincipalEmbeddedCertPassword"`
ServicePrincipalId *string `json:"servicePrincipalId,omitempty"`
ServicePrincipalKey SecretBase `json:"servicePrincipalKey"`
SslMode *int64 `json:"sslMode,omitempty"`
Tenant *string `json:"tenant,omitempty"`
Timeout *int64 `json:"timeout,omitempty"`
Timezone *string `json:"timezone,omitempty"`
TrustServerCertificate *bool `json:"trustServerCertificate,omitempty"`
Username *string `json:"username,omitempty"`
}

var _ json.Unmarshaler = &AzurePostgreSqlLinkedServiceTypeProperties{}

func (s *AzurePostgreSqlLinkedServiceTypeProperties) UnmarshalJSON(bytes []byte) error {
var decoded struct {
AzureCloudType *string `json:"azureCloudType,omitempty"`
CommandTimeout *int64 `json:"commandTimeout,omitempty"`
ConnectionString *string `json:"connectionString,omitempty"`
Credential *CredentialReference `json:"credential,omitempty"`
Database *string `json:"database,omitempty"`
Encoding *string `json:"encoding,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
Password *AzureKeyVaultSecretReference `json:"password,omitempty"`
Port *int64 `json:"port,omitempty"`
ReadBufferSize *int64 `json:"readBufferSize,omitempty"`
Server *string `json:"server,omitempty"`
ServicePrincipalCredentialType *string `json:"servicePrincipalCredentialType,omitempty"`
ServicePrincipalId *string `json:"servicePrincipalId,omitempty"`
SslMode *int64 `json:"sslMode,omitempty"`
Tenant *string `json:"tenant,omitempty"`
Timeout *int64 `json:"timeout,omitempty"`
Timezone *string `json:"timezone,omitempty"`
TrustServerCertificate *bool `json:"trustServerCertificate,omitempty"`
Username *string `json:"username,omitempty"`
}
if err := json.Unmarshal(bytes, &decoded); err != nil {
return fmt.Errorf("unmarshaling: %+v", err)
}

s.AzureCloudType = decoded.AzureCloudType
s.CommandTimeout = decoded.CommandTimeout
s.ConnectionString = decoded.ConnectionString
s.Credential = decoded.Credential
s.Database = decoded.Database
s.Encoding = decoded.Encoding
s.EncryptedCredential = decoded.EncryptedCredential
s.Password = decoded.Password
s.Port = decoded.Port
s.ReadBufferSize = decoded.ReadBufferSize
s.Server = decoded.Server
s.ServicePrincipalCredentialType = decoded.ServicePrincipalCredentialType
s.ServicePrincipalId = decoded.ServicePrincipalId
s.SslMode = decoded.SslMode
s.Tenant = decoded.Tenant
s.Timeout = decoded.Timeout
s.Timezone = decoded.Timezone
s.TrustServerCertificate = decoded.TrustServerCertificate
s.Username = decoded.Username

var temp map[string]json.RawMessage
if err := json.Unmarshal(bytes, &temp); err != nil {
return fmt.Errorf("unmarshaling AzurePostgreSqlLinkedServiceTypeProperties into map[string]json.RawMessage: %+v", err)
}

if v, ok := temp["servicePrincipalEmbeddedCert"]; ok {
impl, err := UnmarshalSecretBaseImplementation(v)
if err != nil {
return fmt.Errorf("unmarshaling field 'ServicePrincipalEmbeddedCert' for 'AzurePostgreSqlLinkedServiceTypeProperties': %+v", err)
}
s.ServicePrincipalEmbeddedCert = impl
}

if v, ok := temp["servicePrincipalEmbeddedCertPassword"]; ok {
impl, err := UnmarshalSecretBaseImplementation(v)
if err != nil {
return fmt.Errorf("unmarshaling field 'ServicePrincipalEmbeddedCertPassword' for 'AzurePostgreSqlLinkedServiceTypeProperties': %+v", err)
}
s.ServicePrincipalEmbeddedCertPassword = impl
}

if v, ok := temp["servicePrincipalKey"]; ok {
impl, err := UnmarshalSecretBaseImplementation(v)
if err != nil {
return fmt.Errorf("unmarshaling field 'ServicePrincipalKey' for 'AzurePostgreSqlLinkedServiceTypeProperties': %+v", err)
}
s.ServicePrincipalKey = impl
}

return nil
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,72 @@
package dataflowdebugsession

import (
"encoding/json"
"fmt"
)

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type GreenplumLinkedServiceTypeProperties struct {
AuthenticationType *GreenplumAuthenticationType `json:"authenticationType,omitempty"`
CommandTimeout *int64 `json:"commandTimeout,omitempty"`
ConnectionString *string `json:"connectionString,omitempty"`
ConnectionTimeout *int64 `json:"connectionTimeout,omitempty"`
Database *string `json:"database,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
Host *string `json:"host,omitempty"`
Password SecretBase `json:"password"`
Port *int64 `json:"port,omitempty"`
Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"`
SslMode *int64 `json:"sslMode,omitempty"`
Username *string `json:"username,omitempty"`
}

var _ json.Unmarshaler = &GreenplumLinkedServiceTypeProperties{}

func (s *GreenplumLinkedServiceTypeProperties) UnmarshalJSON(bytes []byte) error {
var decoded struct {
AuthenticationType *GreenplumAuthenticationType `json:"authenticationType,omitempty"`
CommandTimeout *int64 `json:"commandTimeout,omitempty"`
ConnectionString *string `json:"connectionString,omitempty"`
ConnectionTimeout *int64 `json:"connectionTimeout,omitempty"`
Database *string `json:"database,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
Host *string `json:"host,omitempty"`
Port *int64 `json:"port,omitempty"`
Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"`
SslMode *int64 `json:"sslMode,omitempty"`
Username *string `json:"username,omitempty"`
}
if err := json.Unmarshal(bytes, &decoded); err != nil {
return fmt.Errorf("unmarshaling: %+v", err)
}

s.AuthenticationType = decoded.AuthenticationType
s.CommandTimeout = decoded.CommandTimeout
s.ConnectionString = decoded.ConnectionString
s.ConnectionTimeout = decoded.ConnectionTimeout
s.Database = decoded.Database
s.EncryptedCredential = decoded.EncryptedCredential
s.Host = decoded.Host
s.Port = decoded.Port
s.Pwd = decoded.Pwd
s.SslMode = decoded.SslMode
s.Username = decoded.Username

var temp map[string]json.RawMessage
if err := json.Unmarshal(bytes, &temp); err != nil {
return fmt.Errorf("unmarshaling GreenplumLinkedServiceTypeProperties into map[string]json.RawMessage: %+v", err)
}

if v, ok := temp["password"]; ok {
impl, err := UnmarshalSecretBaseImplementation(v)
if err != nil {
return fmt.Errorf("unmarshaling field 'Password' for 'GreenplumLinkedServiceTypeProperties': %+v", err)
}
s.Password = impl
}

return nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,21 @@ package dataflowdebugsession
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.

type OracleLinkedServiceTypeProperties struct {
ConnectionString string `json:"connectionString"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
Password *AzureKeyVaultSecretReference `json:"password,omitempty"`
AuthenticationType *OracleAuthenticationType `json:"authenticationType,omitempty"`
ConnectionString string `json:"connectionString"`
CryptoChecksumClient *string `json:"cryptoChecksumClient,omitempty"`
CryptoChecksumTypesClient *string `json:"cryptoChecksumTypesClient,omitempty"`
EnableBulkLoad *bool `json:"enableBulkLoad,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
EncryptionClient *string `json:"encryptionClient,omitempty"`
EncryptionTypesClient *string `json:"encryptionTypesClient,omitempty"`
FetchSize *int64 `json:"fetchSize,omitempty"`
FetchTswtzAsTimestamp *bool `json:"fetchTswtzAsTimestamp,omitempty"`
InitialLobFetchSize *int64 `json:"initialLobFetchSize,omitempty"`
InitializationString *string `json:"initializationString,omitempty"`
Password *AzureKeyVaultSecretReference `json:"password,omitempty"`
Server *string `json:"server,omitempty"`
StatementCacheSize *int64 `json:"statementCacheSize,omitempty"`
SupportV1DataTypes *bool `json:"supportV1DataTypes,omitempty"`
Username *string `json:"username,omitempty"`
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ import (

type TeradataLinkedServiceTypeProperties struct {
AuthenticationType *TeradataAuthenticationType `json:"authenticationType,omitempty"`
CharacterSet *string `json:"characterSet,omitempty"`
ConnectionString *string `json:"connectionString,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
HTTPSPortNumber *int64 `json:"httpsPortNumber,omitempty"`
MaxRespSize *int64 `json:"maxRespSize,omitempty"`
Password SecretBase `json:"password"`
PortNumber *int64 `json:"portNumber,omitempty"`
Server *string `json:"server,omitempty"`
SslMode *string `json:"sslMode,omitempty"`
UseDataEncryption *int64 `json:"useDataEncryption,omitempty"`
Username *string `json:"username,omitempty"`
}

Expand All @@ -22,19 +28,31 @@ var _ json.Unmarshaler = &TeradataLinkedServiceTypeProperties{}
func (s *TeradataLinkedServiceTypeProperties) UnmarshalJSON(bytes []byte) error {
var decoded struct {
AuthenticationType *TeradataAuthenticationType `json:"authenticationType,omitempty"`
CharacterSet *string `json:"characterSet,omitempty"`
ConnectionString *string `json:"connectionString,omitempty"`
EncryptedCredential *string `json:"encryptedCredential,omitempty"`
HTTPSPortNumber *int64 `json:"httpsPortNumber,omitempty"`
MaxRespSize *int64 `json:"maxRespSize,omitempty"`
PortNumber *int64 `json:"portNumber,omitempty"`
Server *string `json:"server,omitempty"`
SslMode *string `json:"sslMode,omitempty"`
UseDataEncryption *int64 `json:"useDataEncryption,omitempty"`
Username *string `json:"username,omitempty"`
}
if err := json.Unmarshal(bytes, &decoded); err != nil {
return fmt.Errorf("unmarshaling: %+v", err)
}

s.AuthenticationType = decoded.AuthenticationType
s.CharacterSet = decoded.CharacterSet
s.ConnectionString = decoded.ConnectionString
s.EncryptedCredential = decoded.EncryptedCredential
s.HTTPSPortNumber = decoded.HTTPSPortNumber
s.MaxRespSize = decoded.MaxRespSize
s.PortNumber = decoded.PortNumber
s.Server = decoded.Server
s.SslMode = decoded.SslMode
s.UseDataEncryption = decoded.UseDataEncryption
s.Username = decoded.Username

var temp map[string]json.RawMessage
Expand Down
Loading
Loading