Skip to content

Commit

Permalink
data: regenerating based on the latest Swagger (#4495)
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 Oct 16, 2024
1 parent 49620ca commit 3ba0bd9
Show file tree
Hide file tree
Showing 108 changed files with 4,681 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "AdminKeyKind",
"type": "String",
"values": [
{
"key": "Primary",
"value": "primary"
},
{
"key": "Secondary",
"value": "secondary"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "AdminKeyResult",
"fields": [
{
"containsDiscriminatedTypeValue": false,
"jsonName": "primaryKey",
"name": "PrimaryKey",
"objectDefinition": {
"type": "String",
"nullable": false,
"referenceName": null,
"referenceNameIsCommonType": null
},
"optional": true,
"readOnly": false,
"required": false,
"sensitive": false
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "secondaryKey",
"name": "SecondaryKey",
"objectDefinition": {
"type": "String",
"nullable": false,
"referenceName": null,
"referenceNameIsCommonType": null
},
"optional": true,
"readOnly": false,
"required": false,
"sensitive": false
}
],
"IsParent": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "Get",
"contentType": "application/json; charset=utf-8",
"description": "",
"expectedStatusCodes": [
200
],
"longRunning": false,
"httpMethod": "POST",
"options": [
{
"type": "Data",
"headerName": "x-ms-client-request-id",
"optional": true,
"required": false,
"field": "XMsClientRequestId",
"optionsObjectDefinition": {
"type": "String",
"referenceName": null
}
}
],
"resourceIdName": "SearchServiceId",
"responseObject": {
"type": "Reference",
"nullable": false,
"referenceName": "AdminKeyResult",
"referenceNameIsCommonType": null
},
"uriSuffix": "/listAdminKeys"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "Regenerate",
"contentType": "application/json; charset=utf-8",
"description": "",
"expectedStatusCodes": [
200
],
"longRunning": false,
"httpMethod": "POST",
"options": [
{
"type": "Data",
"headerName": "x-ms-client-request-id",
"optional": true,
"required": false,
"field": "XMsClientRequestId",
"optionsObjectDefinition": {
"type": "String",
"referenceName": null
}
}
],
"resourceIdName": "KeyKindId",
"responseObject": {
"type": "Reference",
"nullable": false,
"referenceName": "AdminKeyResult",
"referenceNameIsCommonType": null
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"name": "KeyKindId",
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdminKey/{keyKind}",
"segments": [
{
"exampleValue": "",
"name": "staticSubscriptions",
"type": "Static",
"value": "subscriptions"
},
{
"exampleValue": "",
"name": "subscriptionId",
"type": "SubscriptionId"
},
{
"exampleValue": "",
"name": "staticResourceGroups",
"type": "Static",
"value": "resourceGroups"
},
{
"exampleValue": "",
"name": "resourceGroupName",
"type": "ResourceGroup"
},
{
"exampleValue": "",
"name": "staticProviders",
"type": "Static",
"value": "providers"
},
{
"exampleValue": "",
"name": "staticMicrosoftSearch",
"type": "ResourceProvider",
"value": "Microsoft.Search"
},
{
"exampleValue": "",
"name": "staticSearchServices",
"type": "Static",
"value": "searchServices"
},
{
"exampleValue": "searchServiceName",
"name": "searchServiceName",
"type": "UserSpecified"
},
{
"exampleValue": "",
"name": "staticRegenerateAdminKey",
"type": "Static",
"value": "regenerateAdminKey"
},
{
"constantName": "AdminKeyKind",
"exampleValue": "",
"name": "keyKind",
"type": "Constant"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "SearchServiceId",
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
"segments": [
{
"exampleValue": "",
"name": "staticSubscriptions",
"type": "Static",
"value": "subscriptions"
},
{
"exampleValue": "",
"name": "subscriptionId",
"type": "SubscriptionId"
},
{
"exampleValue": "",
"name": "staticResourceGroups",
"type": "Static",
"value": "resourceGroups"
},
{
"exampleValue": "",
"name": "resourceGroupName",
"type": "ResourceGroup"
},
{
"exampleValue": "",
"name": "staticProviders",
"type": "Static",
"value": "providers"
},
{
"exampleValue": "",
"name": "staticMicrosoftSearch",
"type": "ResourceProvider",
"value": "Microsoft.Search"
},
{
"exampleValue": "",
"name": "staticSearchServices",
"type": "Static",
"value": "searchServices"
},
{
"exampleValue": "searchServiceName",
"name": "searchServiceName",
"type": "UserSpecified"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"apiVersion": "2024-06-01-preview",
"isPreview": true,
"generate": true,
"resources": [
"AdminKeys",
"NetworkSecurityPerimeterConfigurations",
"PrivateEndpointConnections",
"PrivateLinkResources",
"QueryKeys",
"Services",
"SharedPrivateLinkResources",
"Usages"
],
"source": "Azure/azure-rest-api-specs"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "NSPConfigAccessRule",
"fields": [
{
"containsDiscriminatedTypeValue": false,
"jsonName": "name",
"name": "Name",
"objectDefinition": {
"type": "String",
"nullable": false,
"referenceName": null,
"referenceNameIsCommonType": null
},
"optional": true,
"readOnly": false,
"required": false,
"sensitive": false
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "properties",
"name": "Properties",
"objectDefinition": {
"type": "Reference",
"nullable": false,
"referenceName": "NSPConfigAccessRuleProperties",
"referenceNameIsCommonType": null
},
"optional": true,
"readOnly": false,
"required": false,
"sensitive": false
}
],
"IsParent": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"name": "NSPConfigAccessRuleProperties",
"fields": [
{
"containsDiscriminatedTypeValue": false,
"jsonName": "addressPrefixes",
"name": "AddressPrefixes",
"objectDefinition": {
"type": "List",
"nullable": false,
"referenceName": null,
"referenceNameIsCommonType": null,
"nestedItem": {
"type": "String",
"nullable": false,
"referenceName": null,
"referenceNameIsCommonType": null
}
},
"optional": true,
"readOnly": false,
"required": false,
"sensitive": false
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "direction",
"name": "Direction",
"objectDefinition": {
"type": "String",
"nullable": false,
"referenceName": null,
"referenceNameIsCommonType": null
},
"optional": true,
"readOnly": false,
"required": false,
"sensitive": false
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "fullyQualifiedDomainNames",
"name": "FullyQualifiedDomainNames",
"objectDefinition": {
"type": "List",
"nullable": false,
"referenceName": null,
"referenceNameIsCommonType": null,
"nestedItem": {
"type": "String",
"nullable": false,
"referenceName": null,
"referenceNameIsCommonType": null
}
},
"optional": true,
"readOnly": false,
"required": false,
"sensitive": false
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "networkSecurityPerimeters",
"name": "NetworkSecurityPerimeters",
"objectDefinition": {
"type": "List",
"nullable": false,
"referenceName": null,
"referenceNameIsCommonType": null,
"nestedItem": {
"type": "Reference",
"nullable": false,
"referenceName": "NSPConfigNetworkSecurityPerimeterRule",
"referenceNameIsCommonType": null
}
},
"optional": true,
"readOnly": false,
"required": false,
"sensitive": false
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "subscriptions",
"name": "Subscriptions",
"objectDefinition": {
"type": "List",
"nullable": false,
"referenceName": null,
"referenceNameIsCommonType": null,
"nestedItem": {
"type": "String",
"nullable": false,
"referenceName": null,
"referenceNameIsCommonType": null
}
},
"optional": true,
"readOnly": false,
"required": false,
"sensitive": false
}
],
"IsParent": false
}
Loading

0 comments on commit 3ba0bd9

Please sign in to comment.