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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/Packages.Data.props
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
All should have PrivateAssets="All" set so they don't become package dependencies
-->
<ItemGroup>
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20221201.2" PrivateAssets="All" />
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20221201.3" PrivateAssets="All" />
<PackageReference Update="Azure.ClientSdk.Analyzers" Version="0.1.1-dev.20221031.1" PrivateAssets="All" />
<PackageReference Update="coverlet.collector" Version="1.3.0" PrivateAssets="All" />
<PackageReference Update="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.1" PrivateAssets="All" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public DirectMapRule() { }
}
public abstract partial class DistributionMode
{
public DistributionMode(int minConcurrentOffers, int maxConcurrentOffers) { }
protected DistributionMode(int minConcurrentOffers, int maxConcurrentOffers) { }
public bool? BypassSelectors { get { throw null; } set { } }
public int MaxConcurrentOffers { get { throw null; } set { } }
public int MinConcurrentOffers { get { throw null; } set { } }
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ public partial class GroupCallOutput : Azure.Communication.MediaComposition.Mode
public GroupCallOutput(string id) { }
public string Id { get { throw null; } set { } }
}
public partial class InputGroup
public abstract partial class InputGroup
{
public InputGroup() { }
protected InputGroup() { }
public string Height { get { throw null; } set { } }
public string Layer { get { throw null; } set { } }
public Azure.Communication.MediaComposition.Models.InputPosition Position { get { throw null; } set { } }
Expand Down Expand Up @@ -384,18 +384,18 @@ public LayoutResolution(int width, int height) { }
public int Height { get { throw null; } set { } }
public int Width { get { throw null; } set { } }
}
public partial class MediaCompositionLayout
public abstract partial class MediaCompositionLayout
{
internal MediaCompositionLayout() { }
public string PlaceholderImageUri { get { throw null; } set { } }
public Azure.Communication.MediaComposition.Models.LayoutResolution Resolution { get { throw null; } set { } }
}
public partial class MediaInput
public abstract partial class MediaInput
{
internal MediaInput() { }
public string PlaceholderImageUri { get { throw null; } set { } }
}
public partial class MediaOutput
public abstract partial class MediaOutput
{
internal MediaOutput() { }
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ directive:
where: $.definitions.CloudEventEvent
transform: >
$.properties.data["x-nullable"] = true;
````
```

### Suppress Abstract Base Class

``` yaml
suppress-abstract-base-class: MediaJobOutput
```

### Append `EventData` suffix to Resource Manager system event data models

Expand Down
8 changes: 7 additions & 1 deletion sdk/formrecognizer/Azure.AI.FormRecognizer/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Run `dotnet build /t:GenerateCode` to generate code. Notice how there are two main swaggers use to generate this client library:
- Service V2.x
- Service V3
- Service V3

### AutoRest Configuration
> see https://aka.ms/autorest
Expand All @@ -15,6 +15,12 @@ input-file:
generation1-convenience-client: true
```

## Suppress Abstract Base Class

``` yaml
suppress-abstract-base-class: OperationDetails
```

## Make the API version parameterized so we generate a multi-versioned API

``` yaml
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,9 @@ public partial class GeoJsonMultiPolygonData
public GeoJsonMultiPolygonData(System.Collections.Generic.IEnumerable<System.Collections.Generic.IList<System.Collections.Generic.IList<System.Collections.Generic.IList<double>>>> coordinates) { }
public System.Collections.Generic.IList<System.Collections.Generic.IList<System.Collections.Generic.IList<System.Collections.Generic.IList<double>>>> Coordinates { get { throw null; } }
}
public partial class GeoJsonObject
public abstract partial class GeoJsonObject
{
public GeoJsonObject() { }
protected GeoJsonObject() { }
}
public enum GeoJsonObjectType
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ directive:
$["x-accessibility"] = "internal"
```

### Suppress Abstract Base Class

``` yaml
suppress-abstract-base-class:
- DataFeedDetail
- DataFeedDetailPatch
- DataSourceCredentialPatch
- HookInfoPatch
```

### Add nullable annotations

``` yaml
Expand Down
19 changes: 19 additions & 0 deletions sdk/search/Azure.Search.Documents/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,25 @@ directive:
- remove-operation: Documents_SuggestGet
```

### Suppress Abstract Base Class

``` yaml
suppress-abstract-base-class:
- CharFilter
- CognitiveServicesAccount
- DataChangeDetectionPolicy
- DataDeletionDetectionPolicy
- LexicalAnalyzer
- LexicalNormalizer
- LexicalTokenizer
- ScoringFunction
- SearchIndexerDataIdentity
- SearchIndexerSkill
- Similarity
- TokenFilter
```


## CodeGen hacks
These should eventually be fixed in the code generator.

Expand Down
12 changes: 12 additions & 0 deletions sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,15 @@ directive:
transform: >
$.status["x-ms-enum"].values = [{value: "Succeeded", name: "Succeeded" },{value: "Failed", name: "Failed" },{value: "Inprogress", name: "InProgress" }];
```

### Suppress Abstract Base Class

``` yaml
suppress-abstract-base-class:
- CustomSetupBase
- DataFlow
- DependencyReference
- LinkedIntegrationRuntimeType
- SecretBase
- WebLinkedServiceTypeProperties
```
8 changes: 8 additions & 0 deletions sdk/textanalytics/Azure.AI.TextAnalytics/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ input-file:
generation1-convenience-client: true
```
### Suppress Abstract Base Class
``` yaml
suppress-abstract-base-class:
- AnalyzeTextTask
- AnalyzeTextTaskResult
```
### Modify operationId names
``` yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,9 @@ public readonly partial struct TimeSeriesValue
public static implicit operator Azure.IoT.TimeSeriesInsights.TimeSeriesValue (string value) { throw null; }
public static implicit operator Azure.IoT.TimeSeriesInsights.TimeSeriesValue (System.TimeSpan value) { throw null; }
}
public partial class TimeSeriesVariable
public abstract partial class TimeSeriesVariable
{
public TimeSeriesVariable() { }
protected TimeSeriesVariable() { }
public Azure.IoT.TimeSeriesInsights.TimeSeriesExpression Filter { get { throw null; } set { } }
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading