Skip to content

Commit ca31371

Browse files
authored
Update to latest version 2023-10-31 (Azure#49658)
* Update to latest version 2023-10-31 * ran export-adtapis and update-adtsnippets scripts * run scripts with latest main * update version * update session records * update session records * update version * update asset.json * update asset.json * revert bicep change * revert bicep * update bicep * update bicep
1 parent 05e2130 commit ca31371

File tree

106 files changed

+68467
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+68467
-23
lines changed

sdk/digitaltwins/Azure.DigitalTwins.Core/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
- `eventRouteId` to `az.digitaltwins.event_route.id`
1515
- `messageId` to `az.digitaltwins.message.id`
1616

17+
- ## 1.6.0 (2025-01-05)
18+
19+
### Features Added
20+
- Updated service API version to use API version 2023-10-31 by default.
21+
1722
## 1.5.0 (2023-09-07)
1823

1924
### Features Added

sdk/digitaltwins/Azure.DigitalTwins.Core/api/Azure.DigitalTwins.Core.net8.0.cs

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,15 @@ public DigitalTwinsClient(System.Uri endpoint, Azure.Core.TokenCredential creden
121121
}
122122
public partial class DigitalTwinsClientOptions : Azure.Core.ClientOptions
123123
{
124-
public DigitalTwinsClientOptions(Azure.DigitalTwins.Core.DigitalTwinsClientOptions.ServiceVersion version = Azure.DigitalTwins.Core.DigitalTwinsClientOptions.ServiceVersion.V2023_06_30) { }
124+
public DigitalTwinsClientOptions(Azure.DigitalTwins.Core.DigitalTwinsClientOptions.ServiceVersion version = Azure.DigitalTwins.Core.DigitalTwinsClientOptions.ServiceVersion.V2023_10_31) { }
125125
public Azure.Core.Serialization.ObjectSerializer Serializer { get { throw null; } set { } }
126126
public Azure.DigitalTwins.Core.DigitalTwinsClientOptions.ServiceVersion Version { get { throw null; } }
127127
public enum ServiceVersion
128128
{
129129
V2020_10_31 = 1,
130130
V2022_05_31 = 2,
131131
V2023_06_30 = 3,
132+
V2023_10_31 = 4,
132133
}
133134
}
134135
public partial class DigitalTwinsEventRoute
@@ -164,11 +165,21 @@ internal DigitalTwinsModelData() { }
164165
}
165166
public static partial class DigitalTwinsModelFactory
166167
{
168+
public static Azure.DigitalTwins.Core.Models.DeleteJob DeleteJob(string id = null, Azure.DigitalTwins.Core.Models.DeleteJobStatus? status = default(Azure.DigitalTwins.Core.Models.DeleteJobStatus?), System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? finishedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? purgeDateTime = default(System.DateTimeOffset?), Azure.DigitalTwins.Core.ErrorInformation error = null) { throw null; }
167169
public static Azure.DigitalTwins.Core.DigitalTwinsEventRoute DigitalTwinsEventRoute(string id = null, string endpointName = null, string filter = null) { throw null; }
168170
public static Azure.DigitalTwins.Core.DigitalTwinsModelData DigitalTwinsModelData(System.Collections.Generic.IReadOnlyDictionary<string, string> languageDisplayNames = null, System.Collections.Generic.IReadOnlyDictionary<string, string> languageDescriptions = null, string id = null, System.DateTimeOffset? uploadedOn = default(System.DateTimeOffset?), bool? decommissioned = default(bool?), string dtdlModel = null) { throw null; }
171+
public static Azure.DigitalTwins.Core.ErrorInformation ErrorInformation(string code = null, string message = null, System.Collections.Generic.IEnumerable<Azure.DigitalTwins.Core.ErrorInformation> details = null, Azure.DigitalTwins.Core.InnerError innererror = null) { throw null; }
169172
public static Azure.DigitalTwins.Core.ImportJob ImportJob(string id = null, System.Uri inputBlobUri = null, System.Uri outputBlobUri = null, Azure.DigitalTwins.Core.ImportJobStatus? status = default(Azure.DigitalTwins.Core.ImportJobStatus?), System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastActionDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? finishedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? purgeDateTime = default(System.DateTimeOffset?), Azure.ResponseError error = null) { throw null; }
170173
public static Azure.DigitalTwins.Core.IncomingRelationship IncomingRelationship(string relationshipId = null, string sourceId = null, string relationshipName = null, string relationshipLink = null) { throw null; }
171174
}
175+
public partial class ErrorInformation
176+
{
177+
public ErrorInformation() { }
178+
public string Code { get { throw null; } }
179+
public System.Collections.Generic.IReadOnlyList<Azure.DigitalTwins.Core.ErrorInformation> Details { get { throw null; } }
180+
public Azure.DigitalTwins.Core.InnerError Innererror { get { throw null; } set { } }
181+
public string Message { get { throw null; } }
182+
}
172183
public partial class GetModelsOptions
173184
{
174185
public GetModelsOptions() { }
@@ -218,8 +229,53 @@ internal IncomingRelationship() { }
218229
public string RelationshipName { get { throw null; } }
219230
public string SourceId { get { throw null; } }
220231
}
232+
public partial class InnerError
233+
{
234+
public InnerError() { }
235+
public string Code { get { throw null; } set { } }
236+
public Azure.DigitalTwins.Core.InnerError Innererror { get { throw null; } set { } }
237+
}
221238
public static partial class QueryChargeHelper
222239
{
223240
public static bool TryGetQueryCharge<T>(Azure.Page<T> page, out float queryCharge) { throw null; }
224241
}
225242
}
243+
namespace Azure.DigitalTwins.Core.Models
244+
{
245+
public partial class DeleteJob
246+
{
247+
internal DeleteJob() { }
248+
public System.DateTimeOffset? CreatedDateTime { get { throw null; } }
249+
public Azure.DigitalTwins.Core.ErrorInformation Error { get { throw null; } }
250+
public System.DateTimeOffset? FinishedDateTime { get { throw null; } }
251+
public string Id { get { throw null; } }
252+
public System.DateTimeOffset? PurgeDateTime { get { throw null; } }
253+
public Azure.DigitalTwins.Core.Models.DeleteJobStatus? Status { get { throw null; } }
254+
}
255+
public partial class DeleteJobsAddOptions
256+
{
257+
public DeleteJobsAddOptions() { }
258+
public string Traceparent { get { throw null; } set { } }
259+
public string Tracestate { get { throw null; } set { } }
260+
}
261+
public partial class DeleteJobsGetByIdOptions
262+
{
263+
public DeleteJobsGetByIdOptions() { }
264+
public string Traceparent { get { throw null; } set { } }
265+
public string Tracestate { get { throw null; } set { } }
266+
}
267+
public partial class DeleteJobsListOptions
268+
{
269+
public DeleteJobsListOptions() { }
270+
public int? MaxItemsPerPage { get { throw null; } set { } }
271+
public string Traceparent { get { throw null; } set { } }
272+
public string Tracestate { get { throw null; } set { } }
273+
}
274+
public enum DeleteJobStatus
275+
{
276+
Notstarted = 0,
277+
Running = 1,
278+
Failed = 2,
279+
Succeeded = 3,
280+
}
281+
}

sdk/digitaltwins/Azure.DigitalTwins.Core/api/Azure.DigitalTwins.Core.netstandard2.0.cs

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,15 @@ public DigitalTwinsClient(System.Uri endpoint, Azure.Core.TokenCredential creden
121121
}
122122
public partial class DigitalTwinsClientOptions : Azure.Core.ClientOptions
123123
{
124-
public DigitalTwinsClientOptions(Azure.DigitalTwins.Core.DigitalTwinsClientOptions.ServiceVersion version = Azure.DigitalTwins.Core.DigitalTwinsClientOptions.ServiceVersion.V2023_06_30) { }
124+
public DigitalTwinsClientOptions(Azure.DigitalTwins.Core.DigitalTwinsClientOptions.ServiceVersion version = Azure.DigitalTwins.Core.DigitalTwinsClientOptions.ServiceVersion.V2023_10_31) { }
125125
public Azure.Core.Serialization.ObjectSerializer Serializer { get { throw null; } set { } }
126126
public Azure.DigitalTwins.Core.DigitalTwinsClientOptions.ServiceVersion Version { get { throw null; } }
127127
public enum ServiceVersion
128128
{
129129
V2020_10_31 = 1,
130130
V2022_05_31 = 2,
131131
V2023_06_30 = 3,
132+
V2023_10_31 = 4,
132133
}
133134
}
134135
public partial class DigitalTwinsEventRoute
@@ -164,11 +165,21 @@ internal DigitalTwinsModelData() { }
164165
}
165166
public static partial class DigitalTwinsModelFactory
166167
{
168+
public static Azure.DigitalTwins.Core.Models.DeleteJob DeleteJob(string id = null, Azure.DigitalTwins.Core.Models.DeleteJobStatus? status = default(Azure.DigitalTwins.Core.Models.DeleteJobStatus?), System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? finishedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? purgeDateTime = default(System.DateTimeOffset?), Azure.DigitalTwins.Core.ErrorInformation error = null) { throw null; }
167169
public static Azure.DigitalTwins.Core.DigitalTwinsEventRoute DigitalTwinsEventRoute(string id = null, string endpointName = null, string filter = null) { throw null; }
168170
public static Azure.DigitalTwins.Core.DigitalTwinsModelData DigitalTwinsModelData(System.Collections.Generic.IReadOnlyDictionary<string, string> languageDisplayNames = null, System.Collections.Generic.IReadOnlyDictionary<string, string> languageDescriptions = null, string id = null, System.DateTimeOffset? uploadedOn = default(System.DateTimeOffset?), bool? decommissioned = default(bool?), string dtdlModel = null) { throw null; }
171+
public static Azure.DigitalTwins.Core.ErrorInformation ErrorInformation(string code = null, string message = null, System.Collections.Generic.IEnumerable<Azure.DigitalTwins.Core.ErrorInformation> details = null, Azure.DigitalTwins.Core.InnerError innererror = null) { throw null; }
169172
public static Azure.DigitalTwins.Core.ImportJob ImportJob(string id = null, System.Uri inputBlobUri = null, System.Uri outputBlobUri = null, Azure.DigitalTwins.Core.ImportJobStatus? status = default(Azure.DigitalTwins.Core.ImportJobStatus?), System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastActionDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? finishedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? purgeDateTime = default(System.DateTimeOffset?), Azure.ResponseError error = null) { throw null; }
170173
public static Azure.DigitalTwins.Core.IncomingRelationship IncomingRelationship(string relationshipId = null, string sourceId = null, string relationshipName = null, string relationshipLink = null) { throw null; }
171174
}
175+
public partial class ErrorInformation
176+
{
177+
public ErrorInformation() { }
178+
public string Code { get { throw null; } }
179+
public System.Collections.Generic.IReadOnlyList<Azure.DigitalTwins.Core.ErrorInformation> Details { get { throw null; } }
180+
public Azure.DigitalTwins.Core.InnerError Innererror { get { throw null; } set { } }
181+
public string Message { get { throw null; } }
182+
}
172183
public partial class GetModelsOptions
173184
{
174185
public GetModelsOptions() { }
@@ -218,8 +229,53 @@ internal IncomingRelationship() { }
218229
public string RelationshipName { get { throw null; } }
219230
public string SourceId { get { throw null; } }
220231
}
232+
public partial class InnerError
233+
{
234+
public InnerError() { }
235+
public string Code { get { throw null; } set { } }
236+
public Azure.DigitalTwins.Core.InnerError Innererror { get { throw null; } set { } }
237+
}
221238
public static partial class QueryChargeHelper
222239
{
223240
public static bool TryGetQueryCharge<T>(Azure.Page<T> page, out float queryCharge) { throw null; }
224241
}
225242
}
243+
namespace Azure.DigitalTwins.Core.Models
244+
{
245+
public partial class DeleteJob
246+
{
247+
internal DeleteJob() { }
248+
public System.DateTimeOffset? CreatedDateTime { get { throw null; } }
249+
public Azure.DigitalTwins.Core.ErrorInformation Error { get { throw null; } }
250+
public System.DateTimeOffset? FinishedDateTime { get { throw null; } }
251+
public string Id { get { throw null; } }
252+
public System.DateTimeOffset? PurgeDateTime { get { throw null; } }
253+
public Azure.DigitalTwins.Core.Models.DeleteJobStatus? Status { get { throw null; } }
254+
}
255+
public partial class DeleteJobsAddOptions
256+
{
257+
public DeleteJobsAddOptions() { }
258+
public string Traceparent { get { throw null; } set { } }
259+
public string Tracestate { get { throw null; } set { } }
260+
}
261+
public partial class DeleteJobsGetByIdOptions
262+
{
263+
public DeleteJobsGetByIdOptions() { }
264+
public string Traceparent { get { throw null; } set { } }
265+
public string Tracestate { get { throw null; } set { } }
266+
}
267+
public partial class DeleteJobsListOptions
268+
{
269+
public DeleteJobsListOptions() { }
270+
public int? MaxItemsPerPage { get { throw null; } set { } }
271+
public string Traceparent { get { throw null; } set { } }
272+
public string Tracestate { get { throw null; } set { } }
273+
}
274+
public enum DeleteJobStatus
275+
{
276+
Notstarted = 0,
277+
Running = 1,
278+
Failed = 2,
279+
Succeeded = 3,
280+
}
281+
}

sdk/digitaltwins/Azure.DigitalTwins.Core/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "net",
44
"TagPrefix": "net/digitaltwins/Azure.DigitalTwins.Core",
5-
"Tag": "net/digitaltwins/Azure.DigitalTwins.Core_5eb875c5df"
5+
"Tag": "net/digitaltwins/Azure.DigitalTwins.Core_9cb85195da"
66
}

sdk/digitaltwins/Azure.DigitalTwins.Core/src/Customized/Models/Error.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace Azure.DigitalTwins.Core
77
{
88
[CodeGenModel("Error")]
9-
internal partial class ErrorInformation
9+
public partial class ErrorInformation
1010
{
1111
// This class declaration makes the generated class of the same name internal instead of public and changes the namespace; do not remove.
1212
}

sdk/digitaltwins/Azure.DigitalTwins.Core/src/Customized/Models/InnerError.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace Azure.DigitalTwins.Core
77
{
88
[CodeGenModel("InnerError")]
9-
internal partial class InnerError
9+
public partial class InnerError
1010
{
1111
// This class declaration makes the generated class of the same name internal instead of public and changes the namespace; do not remove.
1212
}

sdk/digitaltwins/Azure.DigitalTwins.Core/src/DigitalTwinsClientOptions.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Azure.DigitalTwins.Core
1212
/// </summary>
1313
public class DigitalTwinsClientOptions : ClientOptions
1414
{
15-
internal const ServiceVersion LatestVersion = ServiceVersion.V2023_06_30;
15+
internal const ServiceVersion LatestVersion = ServiceVersion.V2023_10_31;
1616

1717
/// <summary>
1818
/// The versions of Azure Digital Twins supported by this client
@@ -32,7 +32,11 @@ public enum ServiceVersion
3232
/// <summary>
3333
/// 2023_06_30
3434
/// </summary>
35-
V2023_06_30= 3
35+
V2023_06_30= 3,
36+
/// <summary>
37+
/// 2023_10_31
38+
/// </summary>
39+
V2023_10_31 = 4
3640

3741
#pragma warning restore CA1707 // Identifiers should not contain underscores
3842
}
@@ -68,6 +72,7 @@ internal string GetVersionString()
6872
ServiceVersion.V2020_10_31 => "2020-10-31",
6973
ServiceVersion.V2022_05_31 => "2022-05-31",
7074
ServiceVersion.V2023_06_30 => "2023-06-30",
75+
ServiceVersion.V2023_10_31 => "2023-10-31",
7176
_ => throw new ArgumentException(Version.ToString()),
7277
};
7378
}

sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/DeleteJobsAddHeaders.cs

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)