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

[AutoPR datafactory/resource-manager] Add Properties for ssis embedded package #6202

Merged
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
6 changes: 4 additions & 2 deletions profiles/latest/datafactory/mgmt/datafactory/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,9 @@ const (
type SsisPackageLocationType = original.SsisPackageLocationType

const (
File SsisPackageLocationType = original.File
SSISDB SsisPackageLocationType = original.SSISDB
File SsisPackageLocationType = original.File
InlinePackage SsisPackageLocationType = original.InlinePackage
SSISDB SsisPackageLocationType = original.SSISDB
)

type StoredProcedureParameterType = original.StoredProcedureParameterType
Expand Down Expand Up @@ -1848,6 +1849,7 @@ type SQLServerTableDatasetTypeProperties = original.SQLServerTableDatasetTypePro
type SQLSink = original.SQLSink
type SQLSource = original.SQLSource
type SSISAccessCredential = original.SSISAccessCredential
type SSISChildPackage = original.SSISChildPackage
type SSISExecutionCredential = original.SSISExecutionCredential
type SSISExecutionParameter = original.SSISExecutionParameter
type SSISLogLocation = original.SSISLogLocation
Expand Down
6 changes: 4 additions & 2 deletions profiles/preview/datafactory/mgmt/datafactory/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,9 @@ const (
type SsisPackageLocationType = original.SsisPackageLocationType

const (
File SsisPackageLocationType = original.File
SSISDB SsisPackageLocationType = original.SSISDB
File SsisPackageLocationType = original.File
InlinePackage SsisPackageLocationType = original.InlinePackage
SSISDB SsisPackageLocationType = original.SSISDB
)

type StoredProcedureParameterType = original.StoredProcedureParameterType
Expand Down Expand Up @@ -1848,6 +1849,7 @@ type SQLServerTableDatasetTypeProperties = original.SQLServerTableDatasetTypePro
type SQLSink = original.SQLSink
type SQLSource = original.SQLSource
type SSISAccessCredential = original.SSISAccessCredential
type SSISChildPackage = original.SSISChildPackage
type SSISExecutionCredential = original.SSISExecutionCredential
type SSISExecutionParameter = original.SSISExecutionParameter
type SSISLogLocation = original.SSISLogLocation
Expand Down
10 changes: 10 additions & 0 deletions profiles/preview/preview/sql/mgmt/sql/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ const (
ManagedServerCreateModePointInTimeRestore ManagedServerCreateMode = original.ManagedServerCreateModePointInTimeRestore
)

type ReplicaType = original.ReplicaType

const (
Primary ReplicaType = original.Primary
ReadableSecondary ReplicaType = original.ReadableSecondary
)

type SecurityAlertPolicyState = original.SecurityAlertPolicyState

const (
Expand Down Expand Up @@ -350,6 +357,9 @@ func PossibleManagedInstanceProxyOverrideValues() []ManagedInstanceProxyOverride
func PossibleManagedServerCreateModeValues() []ManagedServerCreateMode {
return original.PossibleManagedServerCreateModeValues()
}
func PossibleReplicaTypeValues() []ReplicaType {
return original.PossibleReplicaTypeValues()
}
func PossibleSecurityAlertPolicyStateValues() []SecurityAlertPolicyState {
return original.PossibleSecurityAlertPolicyStateValues()
}
Expand Down
62 changes: 60 additions & 2 deletions services/datafactory/mgmt/2018-06-01/datafactory/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -1256,13 +1256,15 @@ type SsisPackageLocationType string
const (
// File ...
File SsisPackageLocationType = "File"
// InlinePackage ...
InlinePackage SsisPackageLocationType = "InlinePackage"
// SSISDB ...
SSISDB SsisPackageLocationType = "SSISDB"
)

// PossibleSsisPackageLocationTypeValues returns an array of possible values for the SsisPackageLocationType const type.
func PossibleSsisPackageLocationTypeValues() []SsisPackageLocationType {
return []SsisPackageLocationType{File, SSISDB}
return []SsisPackageLocationType{File, InlinePackage, SSISDB}
}

// StoredProcedureParameterType enumerates the values for stored procedure parameter type.
Expand Down Expand Up @@ -202593,6 +202595,18 @@ func (sac *SSISAccessCredential) UnmarshalJSON(body []byte) error {
return nil
}

// SSISChildPackage SSIS embedded child package.
type SSISChildPackage struct {
// PackagePath - Path for embedded child package. Type: string (or Expression with resultType string).
PackagePath interface{} `json:"packagePath,omitempty"`
// PackageName - Name for embedded child package.
PackageName *string `json:"packageName,omitempty"`
// PackageContent - Content for embedded child package. Type: string (or Expression with resultType string).
PackageContent interface{} `json:"packageContent,omitempty"`
// PackageLastModifiedDate - Last modified date for embedded child package.
PackageLastModifiedDate *string `json:"packageLastModifiedDate,omitempty"`
}

// SsisEnvironment ssis environment.
type SsisEnvironment struct {
// FolderID - Folder id which contains environment.
Expand Down Expand Up @@ -203086,7 +203100,7 @@ func (sp SsisPackage) AsBasicSsisObjectMetadata() (BasicSsisObjectMetadata, bool
type SSISPackageLocation struct {
// PackagePath - The SSIS package path. Type: string (or Expression with resultType string).
PackagePath interface{} `json:"packagePath,omitempty"`
// Type - The type of SSIS package location. Possible values include: 'SSISDB', 'File'
// Type - The type of SSIS package location. Possible values include: 'SSISDB', 'File', 'InlinePackage'
Type SsisPackageLocationType `json:"type,omitempty"`
// SSISPackageLocationTypeProperties - SSIS package location properties.
*SSISPackageLocationTypeProperties `json:"typeProperties,omitempty"`
Expand Down Expand Up @@ -203157,6 +203171,14 @@ type SSISPackageLocationTypeProperties struct {
AccessCredential *SSISAccessCredential `json:"accessCredential,omitempty"`
// ConfigurationPath - The configuration file of the package execution. Type: string (or Expression with resultType string).
ConfigurationPath interface{} `json:"configurationPath,omitempty"`
// PackageName - The package name.
PackageName *string `json:"packageName,omitempty"`
// PackageContent - The embedded package content. Type: string (or Expression with resultType string).
PackageContent interface{} `json:"packageContent,omitempty"`
// PackageLastModifiedDate - The embedded package last modified date.
PackageLastModifiedDate *string `json:"packageLastModifiedDate,omitempty"`
// ChildPackages - The embedded child package list.
ChildPackages *[]SSISChildPackage `json:"childPackages,omitempty"`
}

// UnmarshalJSON is the custom unmarshaler for SSISPackageLocationTypeProperties struct.
Expand Down Expand Up @@ -203194,6 +203216,42 @@ func (spltp *SSISPackageLocationTypeProperties) UnmarshalJSON(body []byte) error
}
spltp.ConfigurationPath = configurationPath
}
case "packageName":
if v != nil {
var packageName string
err = json.Unmarshal(*v, &packageName)
if err != nil {
return err
}
spltp.PackageName = &packageName
}
case "packageContent":
if v != nil {
var packageContent interface{}
err = json.Unmarshal(*v, &packageContent)
if err != nil {
return err
}
spltp.PackageContent = packageContent
}
case "packageLastModifiedDate":
if v != nil {
var packageLastModifiedDate string
err = json.Unmarshal(*v, &packageLastModifiedDate)
if err != nil {
return err
}
spltp.PackageLastModifiedDate = &packageLastModifiedDate
}
case "childPackages":
if v != nil {
var childPackages []SSISChildPackage
err = json.Unmarshal(*v, &childPackages)
if err != nil {
return err
}
spltp.ChildPackages = &childPackages
}
}
}

Expand Down