Skip to content

Commit

Permalink
data: regenerating based on the latest Swagger (#3474)
Browse files Browse the repository at this point in the history
Co-authored-by: hc-github-team-tf-azure <>
  • Loading branch information
hc-github-team-tf-azure authored Dec 11, 2023
1 parent 9bf8b93 commit d6a957f
Show file tree
Hide file tree
Showing 12 changed files with 186 additions and 110 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
{
"name": "JobExecution",
"fields": [
{
"containsDiscriminatedTypeValue": false,
"jsonName": "endTime",
"name": "EndTime",
"objectDefinition": {
"type": "DateTime",
"referenceName": null,
"dateFormat": "RFC3339"
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "id",
Expand All @@ -40,36 +27,11 @@
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "startTime",
"name": "StartTime",
"objectDefinition": {
"type": "DateTime",
"referenceName": null,
"dateFormat": "RFC3339"
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "status",
"name": "Status",
"objectDefinition": {
"type": "Reference",
"referenceName": "JobExecutionRunningState"
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "template",
"name": "Template",
"jsonName": "properties",
"name": "Properties",
"objectDefinition": {
"type": "Reference",
"referenceName": "JobExecutionTemplate"
"referenceName": "JobExecutionProperties"
},
"optional": true,
"required": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "JobExecutionProperties",
"fields": [
{
"containsDiscriminatedTypeValue": false,
"jsonName": "endTime",
"name": "EndTime",
"objectDefinition": {
"type": "DateTime",
"referenceName": null,
"dateFormat": "RFC3339"
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "startTime",
"name": "StartTime",
"objectDefinition": {
"type": "DateTime",
"referenceName": null,
"dateFormat": "RFC3339"
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "status",
"name": "Status",
"objectDefinition": {
"type": "Reference",
"referenceName": "JobExecutionRunningState"
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "template",
"name": "Template",
"objectDefinition": {
"type": "Reference",
"referenceName": "JobExecutionTemplate"
},
"optional": true,
"required": false,
"description": ""
}
]
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
{
"name": "JobExecution",
"fields": [
{
"containsDiscriminatedTypeValue": false,
"jsonName": "endTime",
"name": "EndTime",
"objectDefinition": {
"type": "DateTime",
"referenceName": null,
"dateFormat": "RFC3339"
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "id",
Expand All @@ -40,36 +27,11 @@
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "startTime",
"name": "StartTime",
"objectDefinition": {
"type": "DateTime",
"referenceName": null,
"dateFormat": "RFC3339"
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "status",
"name": "Status",
"objectDefinition": {
"type": "Reference",
"referenceName": "JobExecutionRunningState"
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "template",
"name": "Template",
"jsonName": "properties",
"name": "Properties",
"objectDefinition": {
"type": "Reference",
"referenceName": "JobExecutionTemplate"
"referenceName": "JobExecutionProperties"
},
"optional": true,
"required": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "JobExecutionProperties",
"fields": [
{
"containsDiscriminatedTypeValue": false,
"jsonName": "endTime",
"name": "EndTime",
"objectDefinition": {
"type": "DateTime",
"referenceName": null,
"dateFormat": "RFC3339"
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "startTime",
"name": "StartTime",
"objectDefinition": {
"type": "DateTime",
"referenceName": null,
"dateFormat": "RFC3339"
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "status",
"name": "Status",
"objectDefinition": {
"type": "Reference",
"referenceName": "JobExecutionRunningState"
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "template",
"name": "Template",
"objectDefinition": {
"type": "Reference",
"referenceName": "JobExecutionTemplate"
},
"optional": true,
"required": false,
"description": ""
}
]
}
2 changes: 1 addition & 1 deletion api-definitions/resource-manager/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dataSource": "AzureResourceManager",
"sourceInformation": "Azure/azure-rest-api-specs",
"gitRevision": "d402f685809d6d08be9c0b45065cadd7d78ab870"
"gitRevision": "6c4497e6b0aaad8127f2dd50fa8a29aaf68f24e6"
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ internal class Definition : ResourceDefinition
typeof(JobExecutionBaseModel),
typeof(JobExecutionContainerModel),
typeof(JobExecutionNamesCollectionModel),
typeof(JobExecutionPropertiesModel),
typeof(JobExecutionTemplateModel),
typeof(JobPatchPropertiesModel),
typeof(JobPatchPropertiesPropertiesModel),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,14 @@ namespace Pandora.Definitions.ResourceManager.ContainerApps.v2022_11_01_preview.

internal class JobExecutionModel
{
[DateFormat(DateFormatAttribute.DateFormat.RFC3339)]
[JsonPropertyName("endTime")]
public DateTime? EndTime { get; set; }

[JsonPropertyName("id")]
public string? Id { get; set; }

[JsonPropertyName("name")]
public string? Name { get; set; }

[DateFormat(DateFormatAttribute.DateFormat.RFC3339)]
[JsonPropertyName("startTime")]
public DateTime? StartTime { get; set; }

[JsonPropertyName("status")]
public JobExecutionRunningStateConstant? Status { get; set; }

[JsonPropertyName("template")]
public JobExecutionTemplateModel? Template { get; set; }
[JsonPropertyName("properties")]
public JobExecutionPropertiesModel? Properties { get; set; }

[JsonPropertyName("type")]
public string? Type { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Pandora.Definitions.Attributes;
using Pandora.Definitions.Attributes.Validation;
using Pandora.Definitions.CustomTypes;


// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.


namespace Pandora.Definitions.ResourceManager.ContainerApps.v2022_11_01_preview.Jobs;


internal class JobExecutionPropertiesModel
{
[DateFormat(DateFormatAttribute.DateFormat.RFC3339)]
[JsonPropertyName("endTime")]
public DateTime? EndTime { get; set; }

[DateFormat(DateFormatAttribute.DateFormat.RFC3339)]
[JsonPropertyName("startTime")]
public DateTime? StartTime { get; set; }

[JsonPropertyName("status")]
public JobExecutionRunningStateConstant? Status { get; set; }

[JsonPropertyName("template")]
public JobExecutionTemplateModel? Template { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ internal class Definition : ResourceDefinition
typeof(JobExecutionModel),
typeof(JobExecutionBaseModel),
typeof(JobExecutionContainerModel),
typeof(JobExecutionPropertiesModel),
typeof(JobExecutionTemplateModel),
typeof(JobPatchPropertiesModel),
typeof(JobPatchPropertiesPropertiesModel),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,14 @@ namespace Pandora.Definitions.ResourceManager.ContainerApps.v2023_05_01.Jobs;

internal class JobExecutionModel
{
[DateFormat(DateFormatAttribute.DateFormat.RFC3339)]
[JsonPropertyName("endTime")]
public DateTime? EndTime { get; set; }

[JsonPropertyName("id")]
public string? Id { get; set; }

[JsonPropertyName("name")]
public string? Name { get; set; }

[DateFormat(DateFormatAttribute.DateFormat.RFC3339)]
[JsonPropertyName("startTime")]
public DateTime? StartTime { get; set; }

[JsonPropertyName("status")]
public JobExecutionRunningStateConstant? Status { get; set; }

[JsonPropertyName("template")]
public JobExecutionTemplateModel? Template { get; set; }
[JsonPropertyName("properties")]
public JobExecutionPropertiesModel? Properties { get; set; }

[JsonPropertyName("type")]
public string? Type { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Pandora.Definitions.Attributes;
using Pandora.Definitions.Attributes.Validation;
using Pandora.Definitions.CustomTypes;


// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.


namespace Pandora.Definitions.ResourceManager.ContainerApps.v2023_05_01.Jobs;


internal class JobExecutionPropertiesModel
{
[DateFormat(DateFormatAttribute.DateFormat.RFC3339)]
[JsonPropertyName("endTime")]
public DateTime? EndTime { get; set; }

[DateFormat(DateFormatAttribute.DateFormat.RFC3339)]
[JsonPropertyName("startTime")]
public DateTime? StartTime { get; set; }

[JsonPropertyName("status")]
public JobExecutionRunningStateConstant? Status { get; set; }

[JsonPropertyName("template")]
public JobExecutionTemplateModel? Template { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ namespace Pandora.Definitions.ResourceManager;
// Licensed under the MIT License. See NOTICE.txt in the project root for license information.


// Generated from Swagger revision "d402f685809d6d08be9c0b45065cadd7d78ab870"
// Generated from Swagger revision "6c4497e6b0aaad8127f2dd50fa8a29aaf68f24e6"

0 comments on commit d6a957f

Please sign in to comment.