Skip to content

Commit cf1f631

Browse files
poanchenjnlycklama
authored andcommitted
[Hub Generated] Publish private branch 'IoTOperationsDataProcessor' (#26279)
* add or modify files * update
1 parent b7f1335 commit cf1f631

File tree

42 files changed

+3475
-0
lines changed

Some content is hidden

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

42 files changed

+3475
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import "@typespec/http";
2+
import "@typespec/rest";
3+
import "@typespec/versioning";
4+
import "@azure-tools/typespec-providerhub";
5+
import "@azure-tools/typespec-azure-core";
6+
import "@azure-tools/typespec-azure-resource-manager";
7+
8+
using TypeSpec.Http;
9+
using TypeSpec.Rest;
10+
using TypeSpec.Versioning;
11+
using Azure.Core;
12+
using Azure.ResourceManager;
13+
14+
namespace Microsoft.IoTOperationsDataProcessor;
15+
16+
@doc("Extended location is an extension of Azure locations. They provide a way to use their Azure ARC enabled Kubernetes clusters as target locations for deploying Azure services instances.")
17+
model ExtendedLocation {
18+
@doc("The name of the extended location.")
19+
name: string;
20+
21+
@doc("The type of the extended location.")
22+
type: string;
23+
}
24+
25+
@lroStatus
26+
@doc("The provisioning status of the resource.")
27+
enum ProvisioningState {
28+
...ResourceProvisioningState,
29+
30+
@doc("The resource is being created.")
31+
Provisioning,
32+
33+
@doc("The resource is being updated.")
34+
Updating,
35+
36+
@doc("The resource is being deleted.")
37+
Deleting,
38+
39+
@doc("The resource was accepted by the server.")
40+
Accepted,
41+
}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
import "@typespec/http";
2+
import "@typespec/rest";
3+
import "@typespec/versioning";
4+
import "@azure-tools/typespec-providerhub";
5+
import "@azure-tools/typespec-azure-core";
6+
import "@azure-tools/typespec-azure-resource-manager";
7+
import "./common.tsp";
8+
import "./instance.tsp";
9+
10+
using TypeSpec.Http;
11+
using TypeSpec.Rest;
12+
using TypeSpec.Versioning;
13+
using Azure.Core;
14+
using Azure.ResourceManager;
15+
16+
namespace Microsoft.IoTOperationsDataProcessor;
17+
18+
@doc("A Dataset resource belonging to an Instance resource.")
19+
@parentResource(Instance)
20+
model Dataset is TrackedResource<DatasetProperties> {
21+
@doc("Name of dataset.")
22+
@key("datasetName")
23+
@segment("datasets")
24+
@pattern("^[a-z0-9][a-z0-9-]{1,60}[a-z0-9]$")
25+
@path
26+
name: string;
27+
28+
// Extended location is not included in TrackedResource yet
29+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property"
30+
@doc("Edge location of the resource.")
31+
@visibility("read", "create")
32+
extendedLocation: ExtendedLocation;
33+
}
34+
35+
@doc("The properties of a Dataset resource.")
36+
model DatasetProperties {
37+
@doc("Detailed description of the Dataset.")
38+
description?: string;
39+
40+
@doc("Path to the payload in the message. Enrich will add only the payload to the enriched message, other fields will not be kept except for in the indexes.")
41+
payload?: string;
42+
43+
@doc("Path to an RFC3339 timestamp in the message. If no path is provided, the ingestion time of the record is used for time-based joins.")
44+
timestamp?: string;
45+
46+
@doc("Time to live for individual records.")
47+
ttl?: string;
48+
49+
@doc("List of keys that can be used for joining on enrich.")
50+
keys?: Record<DatasetPropertyKey>;
51+
52+
@doc("The status of the last operation.")
53+
@visibility("read")
54+
provisioningState?: ProvisioningState;
55+
}
56+
57+
@doc("Key that can be used for joining on enrich.")
58+
model DatasetPropertyKey {
59+
@doc("Path to the input value from the message.")
60+
path: string;
61+
62+
@doc("If true the property will be used as a primary key. At most one primary key can exists.")
63+
primaryKey?: boolean;
64+
}
65+
66+
@armResourceOperations
67+
interface Datasets {
68+
get is ArmResourceRead<Dataset>;
69+
createOrUpdate is ArmResourceCreateOrUpdateAsync<Dataset>;
70+
update is ArmCustomPatchSync<Dataset>;
71+
delete is ArmResourceDeleteWithoutOkAsync<Dataset>;
72+
listByInstance is ArmResourceListByParent<Dataset>;
73+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"title": "Datasets create or update - generated by [MaximumSet] rule",
3+
"operationId": "Datasets_CreateOrUpdate",
4+
"parameters": {
5+
"api-version": "2023-10-04-preview",
6+
"subscriptionId": "e0aaa3df-e9a4-456a-9824-3c3b5c438110",
7+
"resourceGroupName": "rgopenapi",
8+
"instanceName": "xh--6h732-2-6-21-4513-2-597q-5412971q",
9+
"datasetName": "709v7-95-5-t-52oc5--s-5-5876j45wp6mf6--n-8bh--l55-r477",
10+
"resource": {
11+
"properties": {
12+
"payload": ".value",
13+
"timestamp": ".timestamp",
14+
"ttl": "72h",
15+
"keys": {},
16+
"provisioningState": "Succeeded",
17+
"description": "pakdvhh"
18+
},
19+
"extendedLocation": {
20+
"name": "/subscriptions/e0aaa3df-e9a4-456a-9824-3c3b5c438110/resourceGroups/IoTOperationsDataProcessor-rg/providers/Microsoft.ExtendedLocation/customLocations/dev-space",
21+
"type": "CustomLocation"
22+
},
23+
"tags": {},
24+
"location": "westus"
25+
}
26+
},
27+
"responses": {
28+
"200": {
29+
"body": {
30+
"properties": {
31+
"payload": ".value",
32+
"timestamp": ".timestamp",
33+
"ttl": "72h",
34+
"keys": {},
35+
"provisioningState": "Succeeded",
36+
"description": "pakdvhh"
37+
},
38+
"extendedLocation": {
39+
"name": "/subscriptions/e0aaa3df-e9a4-456a-9824-3c3b5c438110/resourceGroups/IoTOperationsDataProcessor-rg/providers/Microsoft.ExtendedLocation/customLocations/dev-space",
40+
"type": "CustomLocation"
41+
},
42+
"tags": {},
43+
"location": "westus",
44+
"id": "/subscriptions/e0aaa3df-e9a4-456a-9824-3c3b5c438110/resourceGroups/IoTOperationsDataProcessor-rg/providers/Microsoft.IoTOperationsDataProcessor/instances/IoTOperationsDataProcessor-instance-name/datasets/IoTOperationsDataProcessor-dataset-name",
45+
"name": "IoTOperationsDataProcessor-dataset-name",
46+
"type": "Microsoft.IoTOperationsDataProcessor/instances/datasets",
47+
"systemData": {
48+
"createdBy": "IoTOperationsDataProcessor@contoso.com",
49+
"createdByType": "User",
50+
"createdAt": "2023-07-14T23:18:33.262Z",
51+
"lastModifiedBy": "IoTOperationsDataProcessor@contoso.com",
52+
"lastModifiedByType": "User",
53+
"lastModifiedAt": "2023-07-14T23:18:33.262Z"
54+
}
55+
}
56+
},
57+
"201": {
58+
"headers": {
59+
"Azure-AsyncOperation": "https://contoso.com/operationstatus"
60+
},
61+
"body": {
62+
"properties": {
63+
"payload": ".value",
64+
"timestamp": ".timestamp",
65+
"ttl": "72h",
66+
"keys": {},
67+
"provisioningState": "Succeeded",
68+
"description": "pakdvhh"
69+
},
70+
"extendedLocation": {
71+
"name": "/subscriptions/e0aaa3df-e9a4-456a-9824-3c3b5c438110/resourceGroups/IoTOperationsDataProcessor-rg/providers/Microsoft.ExtendedLocation/customLocations/dev-space",
72+
"type": "CustomLocation"
73+
},
74+
"tags": {},
75+
"location": "westus",
76+
"id": "/subscriptions/e0aaa3df-e9a4-456a-9824-3c3b5c438110/resourceGroups/IoTOperationsDataProcessor-rg/providers/Microsoft.IoTOperationsDataProcessor/instances/IoTOperationsDataProcessor-instance-name/datasets/IoTOperationsDataProcessor-dataset-name",
77+
"name": "IoTOperationsDataProcessor-dataset-name",
78+
"type": "Microsoft.IoTOperationsDataProcessor/instances/datasets",
79+
"systemData": {
80+
"createdBy": "IoTOperationsDataProcessor@contoso.com",
81+
"createdByType": "User",
82+
"createdAt": "2023-07-14T23:18:33.262Z",
83+
"lastModifiedBy": "IoTOperationsDataProcessor@contoso.com",
84+
"lastModifiedByType": "User",
85+
"lastModifiedAt": "2023-07-14T23:18:33.262Z"
86+
}
87+
}
88+
}
89+
}
90+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"title": "Datasets_Delete - generated by [MaximumSet] rule",
3+
"operationId": "Datasets_Delete",
4+
"parameters": {
5+
"api-version": "2023-10-04-preview",
6+
"subscriptionId": "e0aaa3df-e9a4-456a-9824-3c3b5c438110",
7+
"resourceGroupName": "rgopenapi",
8+
"instanceName": "6j580e8v-9wja6361-2jr212f--m",
9+
"datasetName": "8-3j5f43z"
10+
},
11+
"responses": {
12+
"202": {
13+
"headers": {
14+
"location": "https://contoso.com/operationstatus"
15+
}
16+
},
17+
"204": {}
18+
}
19+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"title": "Datasets_Get - generated by [MaximumSet] rule",
3+
"operationId": "Datasets_Get",
4+
"parameters": {
5+
"api-version": "2023-10-04-preview",
6+
"subscriptionId": "e0aaa3df-e9a4-456a-9824-3c3b5c438110",
7+
"resourceGroupName": "rgopenapi",
8+
"instanceName": "d8-556-7343d--126-21-6187034w-g-26-03--176od-2",
9+
"datasetName": "l-c1q8249l"
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"properties": {
15+
"payload": ".value",
16+
"timestamp": ".timestamp",
17+
"ttl": "72h",
18+
"keys": {},
19+
"provisioningState": "Succeeded",
20+
"description": "pakdvhh"
21+
},
22+
"extendedLocation": {
23+
"name": "/subscriptions/e0aaa3df-e9a4-456a-9824-3c3b5c438110/resourceGroups/IoTOperationsDataProcessor-rg/providers/Microsoft.ExtendedLocation/customLocations/dev-space",
24+
"type": "CustomLocation"
25+
},
26+
"tags": {},
27+
"location": "westus",
28+
"id": "/subscriptions/e0aaa3df-e9a4-456a-9824-3c3b5c438110/resourceGroups/IoTOperationsDataProcessor-rg/providers/Microsoft.IoTOperationsDataProcessor/instances/IoTOperationsDataProcessor-instance-name/datasets/IoTOperationsDataProcessor-dataset-name",
29+
"name": "IoTOperationsDataProcessor-dataset-name",
30+
"type": "Microsoft.IoTOperationsDataProcessor/instances/datasets",
31+
"systemData": {
32+
"createdBy": "IoTOperationsDataProcessor@contoso.com",
33+
"createdByType": "User",
34+
"createdAt": "2023-07-14T23:18:33.262Z",
35+
"lastModifiedBy": "IoTOperationsDataProcessor@contoso.com",
36+
"lastModifiedByType": "User",
37+
"lastModifiedAt": "2023-07-14T23:18:33.262Z"
38+
}
39+
}
40+
}
41+
}
42+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"title": "Datasets_ListByInstance - generated by [MaximumSet] rule",
3+
"operationId": "Datasets_ListByInstance",
4+
"parameters": {
5+
"api-version": "2023-10-04-preview",
6+
"subscriptionId": "e0aaa3df-e9a4-456a-9824-3c3b5c438110",
7+
"resourceGroupName": "rgopenapi",
8+
"instanceName": "43v87---75-8427ivdy5"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"value": [
14+
{
15+
"properties": {
16+
"payload": ".value",
17+
"timestamp": ".timestamp",
18+
"ttl": "72h",
19+
"keys": {},
20+
"provisioningState": "Succeeded",
21+
"description": "jsnpmwkzsvchrhugocmf"
22+
},
23+
"extendedLocation": {
24+
"name": "/subscriptions/e0aaa3df-e9a4-456a-9824-3c3b5c438110/resourceGroups/IoTOperationsDataProcessor-rg/providers/Microsoft.ExtendedLocation/customLocations/dev-space",
25+
"type": "CustomLocation"
26+
},
27+
"tags": {},
28+
"location": "westus",
29+
"id": "/subscriptions/e0aaa3df-e9a4-456a-9824-3c3b5c438110/resourceGroups/IoTOperationsDataProcessor-rg/providers/Microsoft.IoTOperationsDataProcessor/instances/IoTOperationsDataProcessor-instance-name/datasets/IoTOperationsDataProcessor-dataset-name",
30+
"name": "IoTOperationsDataProcessor-dataset-name",
31+
"type": "Microsoft.IoTOperationsDataProcessor/instances/datasets",
32+
"systemData": {
33+
"createdBy": "IoTOperationsDataProcessor@contoso.com",
34+
"createdByType": "User",
35+
"createdAt": "2023-07-14T23:18:33.262Z",
36+
"lastModifiedBy": "IoTOperationsDataProcessor@contoso.com",
37+
"lastModifiedByType": "User",
38+
"lastModifiedAt": "2023-07-14T23:18:33.262Z"
39+
}
40+
}
41+
],
42+
"nextLink": "https://microsoft.com/axpt"
43+
}
44+
}
45+
}
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"title": "Datasets_Update - generated by [MaximumSet] rule",
3+
"operationId": "Datasets_Update",
4+
"parameters": {
5+
"api-version": "2023-10-04-preview",
6+
"subscriptionId": "e0aaa3df-e9a4-456a-9824-3c3b5c438110",
7+
"resourceGroupName": "rgopenapi",
8+
"instanceName": "60b-93eu93872-r9i841-82j2-02h3q",
9+
"datasetName": "7x69q1-29-82---k5-y44154gm-8772--6i59d88--1l",
10+
"properties": {
11+
"tags": {}
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"properties": {
18+
"payload": ".value",
19+
"timestamp": ".timestamp",
20+
"ttl": "72h",
21+
"keys": {},
22+
"provisioningState": "Succeeded",
23+
"description": "pakdvhh"
24+
},
25+
"extendedLocation": {
26+
"name": "/subscriptions/e0aaa3df-e9a4-456a-9824-3c3b5c438110/resourceGroups/IoTOperationsDataProcessor-rg/providers/Microsoft.ExtendedLocation/customLocations/dev-space",
27+
"type": "CustomLocation"
28+
},
29+
"tags": {},
30+
"location": "westus",
31+
"id": "/subscriptions/e0aaa3df-e9a4-456a-9824-3c3b5c438110/resourceGroups/IoTOperationsDataProcessor-rg/providers/Microsoft.IoTOperationsDataProcessor/instances/IoTOperationsDataProcessor-instance-name/datasets/IoTOperationsDataProcessor-dataset-name",
32+
"name": "IoTOperationsDataProcessor-dataset-name",
33+
"type": "Microsoft.IoTOperationsDataProcessor/instances/datasets",
34+
"systemData": {
35+
"createdBy": "IoTOperationsDataProcessor@contoso.com",
36+
"createdByType": "User",
37+
"createdAt": "2023-07-14T23:18:33.262Z",
38+
"lastModifiedBy": "IoTOperationsDataProcessor@contoso.com",
39+
"lastModifiedByType": "User",
40+
"lastModifiedAt": "2023-07-14T23:18:33.262Z"
41+
}
42+
}
43+
}
44+
}
45+
}

0 commit comments

Comments
 (0)