From 106bc8b975aeff22aebd04deda00647bec43a046 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot Date: Thu, 31 Oct 2019 08:38:15 +0000 Subject: [PATCH] Generated from 4d767ed6efbd682422827b26374a2a331ccfc852 Fix reference --- .../datafactory/mgmt/datafactory/models.go | 6 +- .../datafactory/mgmt/datafactory/models.go | 6 +- .../preview/preview/sql/mgmt/sql/models.go | 10 +++ .../mgmt/2018-06-01/datafactory/models.go | 62 ++++++++++++++++++- 4 files changed, 78 insertions(+), 6 deletions(-) diff --git a/profiles/latest/datafactory/mgmt/datafactory/models.go b/profiles/latest/datafactory/mgmt/datafactory/models.go index 7d563468dc89..1a4cb55ecc90 100644 --- a/profiles/latest/datafactory/mgmt/datafactory/models.go +++ b/profiles/latest/datafactory/mgmt/datafactory/models.go @@ -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 @@ -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 diff --git a/profiles/preview/datafactory/mgmt/datafactory/models.go b/profiles/preview/datafactory/mgmt/datafactory/models.go index 49ed031c0d23..d1fde85048f3 100644 --- a/profiles/preview/datafactory/mgmt/datafactory/models.go +++ b/profiles/preview/datafactory/mgmt/datafactory/models.go @@ -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 @@ -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 diff --git a/profiles/preview/preview/sql/mgmt/sql/models.go b/profiles/preview/preview/sql/mgmt/sql/models.go index 06ea636d3fe2..487de81e36f6 100644 --- a/profiles/preview/preview/sql/mgmt/sql/models.go +++ b/profiles/preview/preview/sql/mgmt/sql/models.go @@ -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 ( @@ -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() } diff --git a/services/datafactory/mgmt/2018-06-01/datafactory/models.go b/services/datafactory/mgmt/2018-06-01/datafactory/models.go index 4aa7349c4b47..ee51b42532a7 100644 --- a/services/datafactory/mgmt/2018-06-01/datafactory/models.go +++ b/services/datafactory/mgmt/2018-06-01/datafactory/models.go @@ -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. @@ -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. @@ -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"` @@ -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. @@ -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 + } } }