-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hc-github-team-tf-azure
committed
Mar 20, 2024
1 parent
1e3a56f
commit b84de29
Showing
910 changed files
with
34,630 additions
and
268 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
resource-manager/datafactory/2018-06-01/credentials/model_managedidentitytypeproperties.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package credentials | ||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
type ManagedIdentityTypeProperties struct { | ||
ResourceId *string `json:"resourceId,omitempty"` | ||
} |
11 changes: 11 additions & 0 deletions
11
...nager/datafactory/2018-06-01/credentials/model_systemassignedmanagedidentitycredential.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package credentials | ||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
type SystemAssignedManagedIdentityCredential struct { | ||
Annotations *[]interface{} `json:"annotations,omitempty"` | ||
Description *string `json:"description,omitempty"` | ||
Type string `json:"type"` | ||
TypeProperties *ManagedIdentityTypeProperties `json:"typeProperties,omitempty"` | ||
} |
11 changes: 11 additions & 0 deletions
11
...manager/datafactory/2018-06-01/credentials/model_userassignedmanagedidentitycredential.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package credentials | ||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
type UserAssignedManagedIdentityCredential struct { | ||
Annotations *[]interface{} `json:"annotations,omitempty"` | ||
Description *string `json:"description,omitempty"` | ||
Type string `json:"type"` | ||
TypeProperties ManagedIdentityTypeProperties `json:"typeProperties"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
124 changes: 124 additions & 0 deletions
124
resource-manager/datafactory/2018-06-01/dataflows/constants.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
package dataflows | ||
|
||
import ( | ||
"encoding/json" | ||
"fmt" | ||
"strings" | ||
) | ||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
type DataFlowReferenceType string | ||
|
||
const ( | ||
DataFlowReferenceTypeDataFlowReference DataFlowReferenceType = "DataFlowReference" | ||
) | ||
|
||
func PossibleValuesForDataFlowReferenceType() []string { | ||
return []string{ | ||
string(DataFlowReferenceTypeDataFlowReference), | ||
} | ||
} | ||
|
||
func (s *DataFlowReferenceType) UnmarshalJSON(bytes []byte) error { | ||
var decoded string | ||
if err := json.Unmarshal(bytes, &decoded); err != nil { | ||
return fmt.Errorf("unmarshaling: %+v", err) | ||
} | ||
out, err := parseDataFlowReferenceType(decoded) | ||
if err != nil { | ||
return fmt.Errorf("parsing %q: %+v", decoded, err) | ||
} | ||
*s = *out | ||
return nil | ||
} | ||
|
||
func parseDataFlowReferenceType(input string) (*DataFlowReferenceType, error) { | ||
vals := map[string]DataFlowReferenceType{ | ||
"dataflowreference": DataFlowReferenceTypeDataFlowReference, | ||
} | ||
if v, ok := vals[strings.ToLower(input)]; ok { | ||
return &v, nil | ||
} | ||
|
||
// otherwise presume it's an undefined value and best-effort it | ||
out := DataFlowReferenceType(input) | ||
return &out, nil | ||
} | ||
|
||
type DatasetReferenceType string | ||
|
||
const ( | ||
DatasetReferenceTypeDatasetReference DatasetReferenceType = "DatasetReference" | ||
) | ||
|
||
func PossibleValuesForDatasetReferenceType() []string { | ||
return []string{ | ||
string(DatasetReferenceTypeDatasetReference), | ||
} | ||
} | ||
|
||
func (s *DatasetReferenceType) UnmarshalJSON(bytes []byte) error { | ||
var decoded string | ||
if err := json.Unmarshal(bytes, &decoded); err != nil { | ||
return fmt.Errorf("unmarshaling: %+v", err) | ||
} | ||
out, err := parseDatasetReferenceType(decoded) | ||
if err != nil { | ||
return fmt.Errorf("parsing %q: %+v", decoded, err) | ||
} | ||
*s = *out | ||
return nil | ||
} | ||
|
||
func parseDatasetReferenceType(input string) (*DatasetReferenceType, error) { | ||
vals := map[string]DatasetReferenceType{ | ||
"datasetreference": DatasetReferenceTypeDatasetReference, | ||
} | ||
if v, ok := vals[strings.ToLower(input)]; ok { | ||
return &v, nil | ||
} | ||
|
||
// otherwise presume it's an undefined value and best-effort it | ||
out := DatasetReferenceType(input) | ||
return &out, nil | ||
} | ||
|
||
type Type string | ||
|
||
const ( | ||
TypeLinkedServiceReference Type = "LinkedServiceReference" | ||
) | ||
|
||
func PossibleValuesForType() []string { | ||
return []string{ | ||
string(TypeLinkedServiceReference), | ||
} | ||
} | ||
|
||
func (s *Type) UnmarshalJSON(bytes []byte) error { | ||
var decoded string | ||
if err := json.Unmarshal(bytes, &decoded); err != nil { | ||
return fmt.Errorf("unmarshaling: %+v", err) | ||
} | ||
out, err := parseType(decoded) | ||
if err != nil { | ||
return fmt.Errorf("parsing %q: %+v", decoded, err) | ||
} | ||
*s = *out | ||
return nil | ||
} | ||
|
||
func parseType(input string) (*Type, error) { | ||
vals := map[string]Type{ | ||
"linkedservicereference": TypeLinkedServiceReference, | ||
} | ||
if v, ok := vals[strings.ToLower(input)]; ok { | ||
return &v, nil | ||
} | ||
|
||
// otherwise presume it's an undefined value and best-effort it | ||
out := Type(input) | ||
return &out, nil | ||
} |
68 changes: 63 additions & 5 deletions
68
resource-manager/datafactory/2018-06-01/dataflows/model_dataflow.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,69 @@ | ||
package dataflows | ||
|
||
import ( | ||
"encoding/json" | ||
"fmt" | ||
"strings" | ||
) | ||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
type DataFlow struct { | ||
Annotations *[]interface{} `json:"annotations,omitempty"` | ||
Description *string `json:"description,omitempty"` | ||
Folder *DataFlowFolder `json:"folder,omitempty"` | ||
Type string `json:"type"` | ||
type DataFlow interface { | ||
} | ||
|
||
// RawDataFlowImpl is returned when the Discriminated Value | ||
// doesn't match any of the defined types | ||
// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) | ||
// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). | ||
type RawDataFlowImpl struct { | ||
Type string | ||
Values map[string]interface{} | ||
} | ||
|
||
func unmarshalDataFlowImplementation(input []byte) (DataFlow, error) { | ||
if input == nil { | ||
return nil, nil | ||
} | ||
|
||
var temp map[string]interface{} | ||
if err := json.Unmarshal(input, &temp); err != nil { | ||
return nil, fmt.Errorf("unmarshaling DataFlow into map[string]interface: %+v", err) | ||
} | ||
|
||
value, ok := temp["type"].(string) | ||
if !ok { | ||
return nil, nil | ||
} | ||
|
||
if strings.EqualFold(value, "Flowlet") { | ||
var out Flowlet | ||
if err := json.Unmarshal(input, &out); err != nil { | ||
return nil, fmt.Errorf("unmarshaling into Flowlet: %+v", err) | ||
} | ||
return out, nil | ||
} | ||
|
||
if strings.EqualFold(value, "MappingDataFlow") { | ||
var out MappingDataFlow | ||
if err := json.Unmarshal(input, &out); err != nil { | ||
return nil, fmt.Errorf("unmarshaling into MappingDataFlow: %+v", err) | ||
} | ||
return out, nil | ||
} | ||
|
||
if strings.EqualFold(value, "WranglingDataFlow") { | ||
var out WranglingDataFlow | ||
if err := json.Unmarshal(input, &out); err != nil { | ||
return nil, fmt.Errorf("unmarshaling into WranglingDataFlow: %+v", err) | ||
} | ||
return out, nil | ||
} | ||
|
||
out := RawDataFlowImpl{ | ||
Type: value, | ||
Values: temp, | ||
} | ||
return out, nil | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
resource-manager/datafactory/2018-06-01/dataflows/model_dataflowreference.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package dataflows | ||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
type DataFlowReference struct { | ||
DatasetParameters *interface{} `json:"datasetParameters,omitempty"` | ||
Parameters *map[string]interface{} `json:"parameters,omitempty"` | ||
ReferenceName string `json:"referenceName"` | ||
Type DataFlowReferenceType `json:"type"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
resource-manager/datafactory/2018-06-01/dataflows/model_dataflowsink.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package dataflows | ||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
type DataFlowSink struct { | ||
Dataset *DatasetReference `json:"dataset,omitempty"` | ||
Description *string `json:"description,omitempty"` | ||
Flowlet *DataFlowReference `json:"flowlet,omitempty"` | ||
LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` | ||
Name string `json:"name"` | ||
RejectedDataLinkedService *LinkedServiceReference `json:"rejectedDataLinkedService,omitempty"` | ||
SchemaLinkedService *LinkedServiceReference `json:"schemaLinkedService,omitempty"` | ||
} |
13 changes: 13 additions & 0 deletions
13
resource-manager/datafactory/2018-06-01/dataflows/model_dataflowsource.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package dataflows | ||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
type DataFlowSource struct { | ||
Dataset *DatasetReference `json:"dataset,omitempty"` | ||
Description *string `json:"description,omitempty"` | ||
Flowlet *DataFlowReference `json:"flowlet,omitempty"` | ||
LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` | ||
Name string `json:"name"` | ||
SchemaLinkedService *LinkedServiceReference `json:"schemaLinkedService,omitempty"` | ||
} |
10 changes: 10 additions & 0 deletions
10
resource-manager/datafactory/2018-06-01/dataflows/model_datasetreference.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package dataflows | ||
|
||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See NOTICE.txt in the project root for license information. | ||
|
||
type DatasetReference struct { | ||
Parameters *map[string]interface{} `json:"parameters,omitempty"` | ||
ReferenceName string `json:"referenceName"` | ||
Type DatasetReferenceType `json:"type"` | ||
} |
Oops, something went wrong.