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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func UnmarshalConnectionInfoImplementation(input []byte) (ConnectionInfo, error)
return out, nil
}

if strings.EqualFold(value, "MongoDbConnectionInfo") {
if strings.EqualFold(value, "mongoDbConnectionInfo") {
var out MongoDbConnectionInfo
if err := json.Unmarshal(input, &out); err != nil {
return nil, fmt.Errorf("unmarshaling into MongoDbConnectionInfo: %+v", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type DataMigrationService struct {
Etag *string `json:"etag,omitempty"`
Id *string `json:"id,omitempty"`
Kind *string `json:"kind,omitempty"`
Location *string `json:"location,omitempty"`
Location string `json:"location"`
Name *string `json:"name,omitempty"`
Properties *DataMigrationServiceProperties `json:"properties,omitempty"`
Sku *ServiceSku `json:"sku,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (s MongoDbConnectionInfo) MarshalJSON() ([]byte, error) {
return nil, fmt.Errorf("unmarshaling MongoDbConnectionInfo: %+v", err)
}

decoded["type"] = "MongoDbConnectionInfo"
decoded["type"] = "mongoDbConnectionInfo"

encoded, err = json.Marshal(decoded)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
type Project struct {
Etag *string `json:"etag,omitempty"`
Id *string `json:"id,omitempty"`
Location *string `json:"location,omitempty"`
Location string `json:"location"`
Name *string `json:"name,omitempty"`
Properties *ProjectProperties `json:"properties,omitempty"`
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions resource-manager/datamigration/2025-06-30/get/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (p DataMigrationServiceOperationPredicate) Matches(input DataMigrationServi
return false
}

if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) {
if p.Location != nil && *p.Location != input.Location {
return false
}

Expand Down Expand Up @@ -72,7 +72,7 @@ func (p ProjectOperationPredicate) Matches(input Project) bool {
return false
}

if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) {
if p.Location != nil && *p.Location != input.Location {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

type MigrationService struct {
Id *string `json:"id,omitempty"`
Location *string `json:"location,omitempty"`
Location string `json:"location"`
Name *string `json:"name,omitempty"`
Properties *MigrationServiceProperties `json:"properties,omitempty"`
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (p MigrationServiceOperationPredicate) Matches(input MigrationService) bool
return false
}

if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) {
if p.Location != nil && *p.Location != input.Location {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func UnmarshalConnectionInfoImplementation(input []byte) (ConnectionInfo, error)
return out, nil
}

if strings.EqualFold(value, "mongoDbConnectionInfo") {
if strings.EqualFold(value, "MongoDbConnectionInfo") {
var out MongoDbConnectionInfo
if err := json.Unmarshal(input, &out); err != nil {
return nil, fmt.Errorf("unmarshaling into MongoDbConnectionInfo: %+v", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type DataMigrationService struct {
Etag *string `json:"etag,omitempty"`
Id *string `json:"id,omitempty"`
Kind *string `json:"kind,omitempty"`
Location *string `json:"location,omitempty"`
Location string `json:"location"`
Name *string `json:"name,omitempty"`
Properties *DataMigrationServiceProperties `json:"properties,omitempty"`
Sku *ServiceSku `json:"sku,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (s MongoDbConnectionInfo) MarshalJSON() ([]byte, error) {
return nil, fmt.Errorf("unmarshaling MongoDbConnectionInfo: %+v", err)
}

decoded["type"] = "mongoDbConnectionInfo"
decoded["type"] = "MongoDbConnectionInfo"

encoded, err = json.Marshal(decoded)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
type Project struct {
Etag *string `json:"etag,omitempty"`
Id *string `json:"id,omitempty"`
Location *string `json:"location,omitempty"`
Location string `json:"location"`
Name *string `json:"name,omitempty"`
Properties *ProjectProperties `json:"properties,omitempty"`
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func UnmarshalConnectionInfoImplementation(input []byte) (ConnectionInfo, error)
return out, nil
}

if strings.EqualFold(value, "MongoDbConnectionInfo") {
if strings.EqualFold(value, "mongoDbConnectionInfo") {
var out MongoDbConnectionInfo
if err := json.Unmarshal(input, &out); err != nil {
return nil, fmt.Errorf("unmarshaling into MongoDbConnectionInfo: %+v", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (s MongoDbConnectionInfo) MarshalJSON() ([]byte, error) {
return nil, fmt.Errorf("unmarshaling MongoDbConnectionInfo: %+v", err)
}

decoded["type"] = "MongoDbConnectionInfo"
decoded["type"] = "mongoDbConnectionInfo"

encoded, err = json.Marshal(decoded)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
type Project struct {
Etag *string `json:"etag,omitempty"`
Id *string `json:"id,omitempty"`
Location *string `json:"location,omitempty"`
Location string `json:"location"`
Name *string `json:"name,omitempty"`
Properties *ProjectProperties `json:"properties,omitempty"`
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (p ProjectOperationPredicate) Matches(input Project) bool {
return false
}

if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) {
if p.Location != nil && *p.Location != input.Location {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func UnmarshalConnectionInfoImplementation(input []byte) (ConnectionInfo, error)
return out, nil
}

if strings.EqualFold(value, "mongoDbConnectionInfo") {
if strings.EqualFold(value, "MongoDbConnectionInfo") {
var out MongoDbConnectionInfo
if err := json.Unmarshal(input, &out); err != nil {
return nil, fmt.Errorf("unmarshaling into MongoDbConnectionInfo: %+v", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type DataMigrationService struct {
Etag *string `json:"etag,omitempty"`
Id *string `json:"id,omitempty"`
Kind *string `json:"kind,omitempty"`
Location *string `json:"location,omitempty"`
Location string `json:"location"`
Name *string `json:"name,omitempty"`
Properties *DataMigrationServiceProperties `json:"properties,omitempty"`
Sku *ServiceSku `json:"sku,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (s MongoDbConnectionInfo) MarshalJSON() ([]byte, error) {
return nil, fmt.Errorf("unmarshaling MongoDbConnectionInfo: %+v", err)
}

decoded["type"] = "mongoDbConnectionInfo"
decoded["type"] = "MongoDbConnectionInfo"

encoded, err = json.Marshal(decoded)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
type Project struct {
Etag *string `json:"etag,omitempty"`
Id *string `json:"id,omitempty"`
Location *string `json:"location,omitempty"`
Location string `json:"location"`
Name *string `json:"name,omitempty"`
Properties *ProjectProperties `json:"properties,omitempty"`
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func UnmarshalConnectionInfoImplementation(input []byte) (ConnectionInfo, error)
return out, nil
}

if strings.EqualFold(value, "MongoDbConnectionInfo") {
if strings.EqualFold(value, "mongoDbConnectionInfo") {
var out MongoDbConnectionInfo
if err := json.Unmarshal(input, &out); err != nil {
return nil, fmt.Errorf("unmarshaling into MongoDbConnectionInfo: %+v", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type DataMigrationService struct {
Etag *string `json:"etag,omitempty"`
Id *string `json:"id,omitempty"`
Kind *string `json:"kind,omitempty"`
Location *string `json:"location,omitempty"`
Location string `json:"location"`
Name *string `json:"name,omitempty"`
Properties *DataMigrationServiceProperties `json:"properties,omitempty"`
Sku *ServiceSku `json:"sku,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (s MongoDbConnectionInfo) MarshalJSON() ([]byte, error) {
return nil, fmt.Errorf("unmarshaling MongoDbConnectionInfo: %+v", err)
}

decoded["type"] = "MongoDbConnectionInfo"
decoded["type"] = "mongoDbConnectionInfo"

encoded, err = json.Marshal(decoded)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (p DataMigrationServiceOperationPredicate) Matches(input DataMigrationServi
return false
}

if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) {
if p.Location != nil && *p.Location != input.Location {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func UnmarshalConnectionInfoImplementation(input []byte) (ConnectionInfo, error)
return out, nil
}

if strings.EqualFold(value, "MongoDbConnectionInfo") {
if strings.EqualFold(value, "mongoDbConnectionInfo") {
var out MongoDbConnectionInfo
if err := json.Unmarshal(input, &out); err != nil {
return nil, fmt.Errorf("unmarshaling into MongoDbConnectionInfo: %+v", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (s MongoDbConnectionInfo) MarshalJSON() ([]byte, error) {
return nil, fmt.Errorf("unmarshaling MongoDbConnectionInfo: %+v", err)
}

decoded["type"] = "MongoDbConnectionInfo"
decoded["type"] = "mongoDbConnectionInfo"

encoded, err = json.Marshal(decoded)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

type SqlMigrationService struct {
Id *string `json:"id,omitempty"`
Location *string `json:"location,omitempty"`
Location string `json:"location"`
Name *string `json:"name,omitempty"`
Properties *SqlMigrationServiceProperties `json:"properties,omitempty"`
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (p SqlMigrationServiceOperationPredicate) Matches(input SqlMigrationService
return false
}

if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) {
if p.Location != nil && *p.Location != input.Location {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type DataMigrationService struct {
Etag *string `json:"etag,omitempty"`
Id *string `json:"id,omitempty"`
Kind *string `json:"kind,omitempty"`
Location *string `json:"location,omitempty"`
Location string `json:"location"`
Name *string `json:"name,omitempty"`
Properties *DataMigrationServiceProperties `json:"properties,omitempty"`
Sku *ServiceSku `json:"sku,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
type Project struct {
Etag *string `json:"etag,omitempty"`
Id *string `json:"id,omitempty"`
Location *string `json:"location,omitempty"`
Location string `json:"location"`
Name *string `json:"name,omitempty"`
Properties *ProjectProperties `json:"properties,omitempty"`
SystemData *systemdata.SystemData `json:"systemData,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (p DataMigrationServiceOperationPredicate) Matches(input DataMigrationServi
return false
}

if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) {
if p.Location != nil && *p.Location != input.Location {
return false
}

Expand Down Expand Up @@ -72,7 +72,7 @@ func (p ProjectOperationPredicate) Matches(input Project) bool {
return false
}

if p.Location != nil && (input.Location == nil || *p.Location != *input.Location) {
if p.Location != nil && *p.Location != input.Location {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func UnmarshalConnectionInfoImplementation(input []byte) (ConnectionInfo, error)
return out, nil
}

if strings.EqualFold(value, "MongoDbConnectionInfo") {
if strings.EqualFold(value, "mongoDbConnectionInfo") {
var out MongoDbConnectionInfo
if err := json.Unmarshal(input, &out); err != nil {
return nil, fmt.Errorf("unmarshaling into MongoDbConnectionInfo: %+v", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (s MongoDbConnectionInfo) MarshalJSON() ([]byte, error) {
return nil, fmt.Errorf("unmarshaling MongoDbConnectionInfo: %+v", err)
}

decoded["type"] = "MongoDbConnectionInfo"
decoded["type"] = "mongoDbConnectionInfo"

encoded, err = json.Marshal(decoded)
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@ func parseIsGlobal(input string) (*IsGlobal, error) {
type ProvisioningState string

const (
ProvisioningStateCanceled ProvisioningState = "Canceled"
ProvisioningStateCreating ProvisioningState = "Creating"
ProvisioningStateDeleting ProvisioningState = "Deleting"
ProvisioningStateFailed ProvisioningState = "Failed"
ProvisioningStateSucceeded ProvisioningState = "Succeeded"
Expand All @@ -227,8 +225,6 @@ const (

func PossibleValuesForProvisioningState() []string {
return []string{
string(ProvisioningStateCanceled),
string(ProvisioningStateCreating),
string(ProvisioningStateDeleting),
string(ProvisioningStateFailed),
string(ProvisioningStateSucceeded),
Expand All @@ -251,8 +247,6 @@ func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error {

func parseProvisioningState(input string) (*ProvisioningState, error) {
vals := map[string]ProvisioningState{
"canceled": ProvisioningStateCanceled,
"creating": ProvisioningStateCreating,
"deleting": ProvisioningStateDeleting,
"failed": ProvisioningStateFailed,
"succeeded": ProvisioningStateSucceeded,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ func parseGroupMemberType(input string) (*GroupMemberType, error) {
type ProvisioningState string

const (
ProvisioningStateCanceled ProvisioningState = "Canceled"
ProvisioningStateCreating ProvisioningState = "Creating"
ProvisioningStateDeleting ProvisioningState = "Deleting"
ProvisioningStateFailed ProvisioningState = "Failed"
ProvisioningStateSucceeded ProvisioningState = "Succeeded"
Expand All @@ -148,8 +146,6 @@ const (

func PossibleValuesForProvisioningState() []string {
return []string{
string(ProvisioningStateCanceled),
string(ProvisioningStateCreating),
string(ProvisioningStateDeleting),
string(ProvisioningStateFailed),
string(ProvisioningStateSucceeded),
Expand All @@ -172,8 +168,6 @@ func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error {

func parseProvisioningState(input string) (*ProvisioningState, error) {
vals := map[string]ProvisioningState{
"canceled": ProvisioningStateCanceled,
"creating": ProvisioningStateCreating,
"deleting": ProvisioningStateDeleting,
"failed": ProvisioningStateFailed,
"succeeded": ProvisioningStateSucceeded,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ func parseGroupMemberType(input string) (*GroupMemberType, error) {
type ProvisioningState string

const (
ProvisioningStateCanceled ProvisioningState = "Canceled"
ProvisioningStateCreating ProvisioningState = "Creating"
ProvisioningStateDeleting ProvisioningState = "Deleting"
ProvisioningStateFailed ProvisioningState = "Failed"
ProvisioningStateSucceeded ProvisioningState = "Succeeded"
Expand All @@ -148,8 +146,6 @@ const (

func PossibleValuesForProvisioningState() []string {
return []string{
string(ProvisioningStateCanceled),
string(ProvisioningStateCreating),
string(ProvisioningStateDeleting),
string(ProvisioningStateFailed),
string(ProvisioningStateSucceeded),
Expand All @@ -172,8 +168,6 @@ func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error {

func parseProvisioningState(input string) (*ProvisioningState, error) {
vals := map[string]ProvisioningState{
"canceled": ProvisioningStateCanceled,
"creating": ProvisioningStateCreating,
"deleting": ProvisioningStateDeleting,
"failed": ProvisioningStateFailed,
"succeeded": ProvisioningStateSucceeded,
Expand Down
Loading
Loading