Skip to content

Commit 7355875

Browse files
riserradGoBlueCatsmsyyc
authored
[Hub Generated] Public private branch 'add-ingressStartAt' (#13932)
* add ingressStartAt * prettier * add a new example * Delete .npmrc remove .npmrc * fix prettier fix prettier * put readonly back for kind * Adding descriptin to ingressStartAt * fix failure for python track2 * Removing readonly from kind Co-authored-by: Go Blue <[email protected]> Co-authored-by: msyyc <[email protected]>
1 parent 08faf32 commit 7355875

File tree

6 files changed

+135
-8
lines changed

6 files changed

+135
-8
lines changed

specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2020-05-15/examples/EventSourcesCreateEventHub.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
"eventHubName": "ehn",
1515
"keyName": "managementKey",
1616
"sharedAccessKey": "someSecretvalue",
17-
"timestampPropertyName": "someTimestampProperty"
17+
"timestampPropertyName": "someTimestampProperty",
18+
"ingressStartAt": {
19+
"type": "EarliestAvailable"
20+
}
1821
}
1922
},
2023
"api-version": "2020-05-15"
@@ -35,7 +38,10 @@
3538
"eventHubName": "ehn",
3639
"keyName": "managementKey",
3740
"provisioningState": "Succeeded",
38-
"creationTime": "2017-04-18T19:20:33.2288820Z"
41+
"creationTime": "2017-04-18T19:20:33.2288820Z",
42+
"ingressStartAt": {
43+
"type": "EarliestAvailable"
44+
}
3945
}
4046
}
4147
},
@@ -54,7 +60,10 @@
5460
"eventHubName": "ehn",
5561
"keyName": "managementKey",
5662
"provisioningState": "Succeeded",
57-
"creationTime": "2017-04-18T19:20:33.2288820Z"
63+
"creationTime": "2017-04-18T19:20:33.2288820Z",
64+
"ingressStartAt": {
65+
"type": "EarliestAvailable"
66+
}
5867
}
5968
}
6069
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"resourceGroupName": "rg1",
5+
"environmentName": "env1",
6+
"eventSourceName": "es1",
7+
"parameters": {
8+
"location": "West US",
9+
"kind": "Microsoft.EventHub",
10+
"properties": {
11+
"eventSourceResourceId": "somePathInArm",
12+
"serviceBusNamespace": "sbn",
13+
"consumerGroupName": "cgn",
14+
"eventHubName": "ehn",
15+
"keyName": "managementKey",
16+
"sharedAccessKey": "someSecretvalue",
17+
"timestampPropertyName": "someTimestampProperty",
18+
"ingressStartAt": {
19+
"type": "CustomEnqueuedTime",
20+
"time": "2017-04-01T19:20:33.2288820Z"
21+
}
22+
}
23+
},
24+
"api-version": "2020-05-15"
25+
},
26+
"responses": {
27+
"200": {
28+
"body": {
29+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/eventSources/es1",
30+
"location": "West US",
31+
"name": "es1",
32+
"type": "Microsoft.TimeSeriesInsights/Environments/EventSources",
33+
"tags": {},
34+
"kind": "Microsoft.EventHub",
35+
"properties": {
36+
"eventSourceResourceId": "somePathInArm",
37+
"serviceBusNamespace": "sbn",
38+
"consumerGroupName": "cgn",
39+
"eventHubName": "ehn",
40+
"keyName": "managementKey",
41+
"provisioningState": "Succeeded",
42+
"creationTime": "2017-04-18T19:20:33.2288820Z",
43+
"ingressStartAt": {
44+
"type": "CustomEnqueuedTime",
45+
"time": "2017-04-01T19:20:33.2288820Z"
46+
}
47+
}
48+
}
49+
},
50+
"201": {
51+
"body": {
52+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1/eventSources/es1",
53+
"location": "West US",
54+
"name": "es1",
55+
"type": "Microsoft.TimeSeriesInsights/Environments/EventSources",
56+
"tags": {},
57+
"kind": "Microsoft.EventHub",
58+
"properties": {
59+
"eventSourceResourceId": "somePathInArm",
60+
"serviceBusNamespace": "sbn",
61+
"consumerGroupName": "cgn",
62+
"eventHubName": "ehn",
63+
"keyName": "managementKey",
64+
"provisioningState": "Succeeded",
65+
"creationTime": "2017-04-18T19:20:33.2288820Z",
66+
"ingressStartAt": {
67+
"type": "CustomEnqueuedTime",
68+
"time": "2017-04-01T19:20:33.2288820Z"
69+
}
70+
}
71+
}
72+
}
73+
}
74+
}

specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2020-05-15/examples/EventSourcesGetEventHub.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
"eventHubName": "ehn",
2323
"keyName": "managementKey",
2424
"provisioningState": "Succeeded",
25-
"creationTime": "2017-04-18T19:20:33.2288820Z"
25+
"creationTime": "2017-04-18T19:20:33.2288820Z",
26+
"ingressStartAt": {
27+
"type": "EarliestAvailable"
28+
}
2629
}
2730
}
2831
}

specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2020-05-15/examples/EventSourcesListByEnvironment.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
"eventHubName": "ehn",
2424
"keyName": "managementKey",
2525
"provisioningState": "Succeeded",
26-
"creationTime": "2017-04-18T19:20:33.2288820Z"
26+
"creationTime": "2017-04-18T19:20:33.2288820Z",
27+
"ingressStartAt": {
28+
"type": "EarliestAvailable"
29+
}
2730
}
2831
}
2932
]

specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2020-05-15/examples/EventSourcesPatchTags.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
"keyName": "managementKey",
3131
"provisioningState": "Succeeded",
3232
"creationTime": "2017-04-18T19:20:33.2288820Z",
33-
"timestampPropertyName": "someOtherTimestampProperty"
33+
"timestampPropertyName": "someOtherTimestampProperty",
34+
"ingressStartAt": {
35+
"type": "EarliestAvailable"
36+
}
3437
}
3538
}
3639
}

specification/timeseriesinsights/resource-manager/Microsoft.TimeSeriesInsights/stable/2020-05-15/timeseriesinsights.json

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@
355355
"x-ms-examples": {
356356
"CreateEventHubEventSource": {
357357
"$ref": "./examples/EventSourcesCreateEventHub.json"
358+
},
359+
"EventSourcesCreateEventHubWithCustomEnquedTime": {
360+
"$ref": "./examples/EventSourcesCreateEventHubWithCustomEnquedTime.json"
358361
}
359362
},
360363
"description": "Create or update an event source under the specified environment.",
@@ -1410,7 +1413,6 @@
14101413
"properties": {
14111414
"kind": {
14121415
"type": "string",
1413-
"readOnly": true,
14141416
"description": "The kind of the environment.",
14151417
"enum": [
14161418
"Gen1",
@@ -1429,6 +1431,9 @@
14291431
"description": "Key-value pairs of additional properties for the environment."
14301432
}
14311433
},
1434+
"required": [
1435+
"kind"
1436+
],
14321437
"description": "Parameters supplied to the Update Environment operation."
14331438
},
14341439
"Gen1EnvironmentUpdateParameters": {
@@ -1843,6 +1848,29 @@
18431848
}
18441849
}
18451850
},
1851+
"IngressStartAtProperties": {
1852+
"type": "object",
1853+
"description": "An object that contains the details about the starting point in time to ingest events.",
1854+
"properties": {
1855+
"type": {
1856+
"type": "string",
1857+
"description": "The type of the ingressStartAt, It can be \"EarliestAvailable\", \"EventSourceCreationTime\", \"CustomEnqueuedTime\".",
1858+
"enum": [
1859+
"EarliestAvailable",
1860+
"EventSourceCreationTime",
1861+
"CustomEnqueuedTime"
1862+
],
1863+
"x-ms-enum": {
1864+
"name": "IngressStartAtType",
1865+
"modelAsString": true
1866+
}
1867+
},
1868+
"time": {
1869+
"type": "string",
1870+
"description": "ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date and time that will be the starting point for Events to be consumed."
1871+
}
1872+
}
1873+
},
18461874
"EventSourceCreateOrUpdateParameters": {
18471875
"discriminator": "kind",
18481876
"properties": {
@@ -1915,7 +1943,6 @@
19151943
"properties": {
19161944
"kind": {
19171945
"type": "string",
1918-
"readOnly": true,
19191946
"description": "The kind of the event source.",
19201947
"enum": [
19211948
"Microsoft.EventHub",
@@ -1934,6 +1961,9 @@
19341961
"description": "Key-value pairs of additional properties for the event source."
19351962
}
19361963
},
1964+
"required": [
1965+
"kind"
1966+
],
19371967
"description": "Parameters supplied to the Update Event Source operation."
19381968
},
19391969
"EventHubEventSourceUpdateParameters": {
@@ -2046,6 +2076,11 @@
20462076
"timestampPropertyName": {
20472077
"type": "string",
20482078
"description": "The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used."
2079+
},
2080+
"ingressStartAt": {
2081+
"x-ms-client-flatten": true,
2082+
"$ref": "#/definitions/IngressStartAtProperties",
2083+
"description": "An object that contains the details about the starting point in time to ingest events."
20492084
}
20502085
},
20512086
"allOf": [

0 commit comments

Comments
 (0)