Skip to content

Commit 61d12d5

Browse files
naddonikKevin Naddoni
andauthored
[Hub Generated] Review request for Microsoft.DataFactory to add version stable/2018-06-01 (#18439)
* Added Global Parameters CRUD APIs * Small JSON fix * Updated Global parameters definitions * Small typo fix * Added spec and fixed delete * Correct path * Fixed casing * Added references * Small case fix * Small fix and prettier cleanup * Added type object Co-authored-by: Kevin Naddoni <[email protected]>
1 parent ace0542 commit 61d12d5

File tree

7 files changed

+449
-0
lines changed

7 files changed

+449
-0
lines changed

specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json

Lines changed: 237 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4364,6 +4364,194 @@
43644364
}
43654365
}
43664366
}
4367+
},
4368+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters": {
4369+
"get": {
4370+
"tags": [
4371+
"globalParameters"
4372+
],
4373+
"operationId": "GlobalParameters_ListByFactory",
4374+
"x-ms-examples": {
4375+
"GlobalParameters_ListByFactory": {
4376+
"$ref": "./examples/GlobalParameters_ListByFactory.json"
4377+
}
4378+
},
4379+
"description": "Lists Global parameters",
4380+
"parameters": [
4381+
{
4382+
"$ref": "#/parameters/subscriptionId"
4383+
},
4384+
{
4385+
"$ref": "#/parameters/resourceGroupName"
4386+
},
4387+
{
4388+
"$ref": "#/parameters/factoryName"
4389+
},
4390+
{
4391+
"$ref": "#/parameters/api-version"
4392+
}
4393+
],
4394+
"responses": {
4395+
"200": {
4396+
"description": "OK.",
4397+
"schema": {
4398+
"$ref": "#/definitions/GlobalParameterListResponse"
4399+
}
4400+
},
4401+
"default": {
4402+
"description": "An error response received from the Azure Data Factory service.",
4403+
"schema": {
4404+
"$ref": "#/definitions/CloudError"
4405+
}
4406+
}
4407+
},
4408+
"x-ms-pageable": {
4409+
"nextLinkName": "nextLink"
4410+
}
4411+
}
4412+
},
4413+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}": {
4414+
"get": {
4415+
"tags": [
4416+
"globalParameters"
4417+
],
4418+
"operationId": "GlobalParameters_Get",
4419+
"x-ms-examples": {
4420+
"GlobalParameters_Get": {
4421+
"$ref": "./examples/GlobalParameters_Get.json"
4422+
}
4423+
},
4424+
"description": "Gets a Global parameter",
4425+
"parameters": [
4426+
{
4427+
"$ref": "#/parameters/subscriptionId"
4428+
},
4429+
{
4430+
"$ref": "#/parameters/resourceGroupName"
4431+
},
4432+
{
4433+
"$ref": "#/parameters/factoryName"
4434+
},
4435+
{
4436+
"$ref": "#/parameters/globalParameterName"
4437+
},
4438+
{
4439+
"$ref": "#/parameters/api-version"
4440+
}
4441+
],
4442+
"responses": {
4443+
"200": {
4444+
"description": "OK.",
4445+
"schema": {
4446+
"$ref": "#/definitions/GlobalParameterResource"
4447+
}
4448+
},
4449+
"default": {
4450+
"description": "An error response received from the Azure Data Factory service.",
4451+
"schema": {
4452+
"$ref": "#/definitions/CloudError"
4453+
}
4454+
}
4455+
}
4456+
},
4457+
"put": {
4458+
"tags": [
4459+
"globalParameters"
4460+
],
4461+
"operationId": "GlobalParameters_CreateOrUpdate",
4462+
"x-ms-examples": {
4463+
"GlobalParameters_Create": {
4464+
"$ref": "./examples/GlobalParameters_Create.json"
4465+
},
4466+
"GlobalParameters_Update": {
4467+
"$ref": "./examples/GlobalParameters_Update.json"
4468+
}
4469+
},
4470+
"description": "Creates or updates a Global parameter",
4471+
"parameters": [
4472+
{
4473+
"$ref": "#/parameters/subscriptionId"
4474+
},
4475+
{
4476+
"$ref": "#/parameters/resourceGroupName"
4477+
},
4478+
{
4479+
"$ref": "#/parameters/factoryName"
4480+
},
4481+
{
4482+
"$ref": "#/parameters/globalParameterName"
4483+
},
4484+
{
4485+
"$ref": "#/parameters/api-version"
4486+
},
4487+
{
4488+
"name": "default",
4489+
"description": "Global parameter resource definition.",
4490+
"in": "body",
4491+
"required": true,
4492+
"schema": {
4493+
"$ref": "#/definitions/GlobalParameterResource"
4494+
}
4495+
}
4496+
],
4497+
"responses": {
4498+
"200": {
4499+
"description": "OK.",
4500+
"schema": {
4501+
"$ref": "#/definitions/GlobalParameterResource"
4502+
}
4503+
},
4504+
"default": {
4505+
"description": "An error response received from the Azure Data Factory service.",
4506+
"schema": {
4507+
"$ref": "#/definitions/CloudError"
4508+
}
4509+
}
4510+
}
4511+
},
4512+
"delete": {
4513+
"tags": [
4514+
"globalParameters"
4515+
],
4516+
"operationId": "GlobalParameters_Delete",
4517+
"x-ms-examples": {
4518+
"GlobalParameters_Delete": {
4519+
"$ref": "./examples/GlobalParameters_Delete.json"
4520+
}
4521+
},
4522+
"description": "Deletes a Global parameter",
4523+
"parameters": [
4524+
{
4525+
"$ref": "#/parameters/subscriptionId"
4526+
},
4527+
{
4528+
"$ref": "#/parameters/resourceGroupName"
4529+
},
4530+
{
4531+
"$ref": "#/parameters/factoryName"
4532+
},
4533+
{
4534+
"$ref": "#/parameters/globalParameterName"
4535+
},
4536+
{
4537+
"$ref": "#/parameters/api-version"
4538+
}
4539+
],
4540+
"responses": {
4541+
"200": {
4542+
"description": "OK."
4543+
},
4544+
"204": {
4545+
"description": "No Content."
4546+
},
4547+
"default": {
4548+
"description": "An error response received from the Azure Data Factory service.",
4549+
"schema": {
4550+
"$ref": "#/definitions/CloudError"
4551+
}
4552+
}
4553+
}
4554+
}
43674555
}
43684556
},
43694557
"definitions": {
@@ -4837,6 +5025,26 @@
48375025
"runId"
48385026
]
48395027
},
5028+
"GlobalParameterListResponse": {
5029+
"description": "A list of Global parameters.",
5030+
"type": "object",
5031+
"required": [
5032+
"value"
5033+
],
5034+
"properties": {
5035+
"value": {
5036+
"type": "array",
5037+
"description": "List of global parameters.",
5038+
"items": {
5039+
"$ref": "#/definitions/GlobalParameterResource"
5040+
}
5041+
},
5042+
"nextLink": {
5043+
"description": "The link to the next page of results, if any remaining results exist.",
5044+
"type": "string"
5045+
}
5046+
}
5047+
},
48405048
"CloudError": {
48415049
"x-ms-external": true,
48425050
"description": "The object that defines the structure of an Azure Data Factory error response.",
@@ -5399,6 +5607,24 @@
53995607
"properties"
54005608
]
54015609
},
5610+
"GlobalParameterResource": {
5611+
"description": "Global parameters resource type.",
5612+
"type": "object",
5613+
"allOf": [
5614+
{
5615+
"$ref": "#/definitions/SubResource"
5616+
}
5617+
],
5618+
"properties": {
5619+
"properties": {
5620+
"$ref": "./entityTypes/GlobalParameter.json#/definitions/GlobalParameter",
5621+
"description": "Properties of the global parameter."
5622+
}
5623+
},
5624+
"required": [
5625+
"properties"
5626+
]
5627+
},
54025628
"Factory": {
54035629
"description": "Factory resource type.",
54045630
"type": "object",
@@ -7276,6 +7502,17 @@
72767502
"required": true,
72777503
"type": "string",
72787504
"x-ms-parameter-location": "method"
7505+
},
7506+
"globalParameterName": {
7507+
"name": "globalParameterName",
7508+
"description": "The global parameter name.",
7509+
"in": "path",
7510+
"required": true,
7511+
"type": "string",
7512+
"pattern": "^[A-Za-z0-9_][^<>*#.%&:\\\\+?/]*$",
7513+
"minLength": 1,
7514+
"maxLength": 260,
7515+
"x-ms-parameter-location": "method"
72797516
}
72807517
}
72817518
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "DataFactoryManagementClient",
5+
"version": "2018-06-01"
6+
},
7+
"securityDefinitions": {
8+
"azure_auth": {
9+
"type": "oauth2",
10+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
11+
"flow": "implicit",
12+
"description": "Azure Active Directory OAuth2 Flow.",
13+
"scopes": {
14+
"user_impersonation": "impersonate your user account"
15+
}
16+
}
17+
},
18+
"paths": {},
19+
"definitions": {
20+
"GlobalParameter": {
21+
"description": "Global parameters associated with the Azure Data Factory",
22+
"type": "object",
23+
"properties": {},
24+
"additionalProperties": {
25+
"$ref": "../datafactory.json#/definitions/GlobalParameterSpecification"
26+
}
27+
}
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "12345678-1234-1234-1234-12345678abc",
4+
"resourceGroupName": "exampleResourceGroup",
5+
"factoryName": "exampleFactoryName",
6+
"globalParameterName": "default",
7+
"default": {
8+
"properties": {
9+
"waitTime": {
10+
"value": 5,
11+
"type": "Int"
12+
}
13+
}
14+
},
15+
"api-version": "2018-06-01"
16+
},
17+
"responses": {
18+
"200": {
19+
"headers": {
20+
"Date": "Sat, 16 Jun 2018 00:40:14 GMT",
21+
"X-Content-Type-Options": "nosniff",
22+
"x-ms-ratelimit-remaining-subscription-writes": "1186",
23+
"x-ms-request-id": "373f1a49-685d-4c07-8857-0fcf1bcaffcb",
24+
"x-ms-correlation-request-id": "373f1a49-685d-4c07-8857-0fcf1bcaffcb"
25+
},
26+
"body": {
27+
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/globalParameters/default",
28+
"name": "default",
29+
"type": "Microsoft.DataFactory/factories/globalParameters",
30+
"properties": {
31+
"waitTime": {
32+
"value": 5,
33+
"type": "Int"
34+
}
35+
},
36+
"etag": "0a008ad4-0000-0000-0000-5b245c6e0000"
37+
}
38+
}
39+
}
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "12345678-1234-1234-1234-12345678abc",
4+
"resourceGroupName": "exampleResourceGroup",
5+
"factoryName": "exampleFactoryName",
6+
"globalParameterName": "default",
7+
"api-version": "2018-06-01"
8+
},
9+
"responses": {
10+
"200": {},
11+
"204": {}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "12345678-1234-1234-1234-12345678abc",
4+
"resourceGroupName": "exampleResourceGroup",
5+
"factoryName": "exampleFactoryName",
6+
"globalParameterName": "default",
7+
"api-version": "2018-06-01"
8+
},
9+
"responses": {
10+
"200": {
11+
"headers": {
12+
"Date": "Mon, 22 Apr 2019 18:33:52 GMT",
13+
"X-Content-Type-Options": "nosniff",
14+
"x-ms-ratelimit-remaining-subscription-reads": "11989",
15+
"x-ms-request-id": "8ad1759f-24c1-46a5-aef5-edd267e18870",
16+
"x-ms-correlation-request-id": "8ad1759f-24c1-46a5-aef5-edd267e18870"
17+
},
18+
"body": {
19+
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/globalParameters/default",
20+
"name": "default",
21+
"type": "Microsoft.DataFactory/factories/globalParameters",
22+
"properties": {
23+
"waitTime": {
24+
"value": 10,
25+
"type": "Int"
26+
}
27+
},
28+
"etag": "72001a6a-0000-0400-0000-623d058f0000"
29+
}
30+
}
31+
}
32+
}

0 commit comments

Comments
 (0)