Skip to content

Commit

Permalink
Merge pull request #4402 from hashicorp/data/regeneration-from-d24ce0…
Browse files Browse the repository at this point in the history
…45d9afb5897a5cf1f6d74951093a28ad4d-rest-api-specs

Data: Rest Api Specs - regenerating based on d24ce04
  • Loading branch information
katbyte authored Sep 10, 2024
2 parents d24ce04 + ed0e69b commit b18ed37
Show file tree
Hide file tree
Showing 102 changed files with 3,506 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"apiVersion": "2024-07-01",
"isPreview": false,
"generate": true,
"resources": [
"FirewallRules",
"MongoClusters",
"PrivateEndpointConnections",
"PrivateLinks",
"Replicas"
],
"source": "Azure/azure-rest-api-specs"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "ProvisioningState",
"type": "String",
"values": [
{
"key": "Canceled",
"value": "Canceled"
},
{
"key": "Dropping",
"value": "Dropping"
},
{
"key": "Failed",
"value": "Failed"
},
{
"key": "InProgress",
"value": "InProgress"
},
{
"key": "Succeeded",
"value": "Succeeded"
},
{
"key": "Updating",
"value": "Updating"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"name": "FirewallRule",
"fields": [
{
"containsDiscriminatedTypeValue": false,
"jsonName": "id",
"name": "Id",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"readOnly": false,
"required": false,
"sensitive": false
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "name",
"name": "Name",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"readOnly": false,
"required": false,
"sensitive": false
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "properties",
"name": "Properties",
"objectDefinition": {
"type": "Reference",
"referenceName": "FirewallRuleProperties"
},
"optional": true,
"readOnly": false,
"required": false,
"sensitive": false
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "systemData",
"name": "SystemData",
"objectDefinition": {
"type": "SystemData",
"referenceName": null
},
"optional": true,
"readOnly": false,
"required": false,
"sensitive": false
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "type",
"name": "Type",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"readOnly": false,
"required": false,
"sensitive": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "FirewallRuleProperties",
"fields": [
{
"containsDiscriminatedTypeValue": false,
"jsonName": "endIpAddress",
"name": "EndIPAddress",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": false,
"readOnly": false,
"required": true,
"sensitive": false
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "provisioningState",
"name": "ProvisioningState",
"objectDefinition": {
"type": "Reference",
"referenceName": "ProvisioningState"
},
"optional": true,
"readOnly": false,
"required": false,
"sensitive": false
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "startIpAddress",
"name": "StartIPAddress",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": false,
"readOnly": false,
"required": true,
"sensitive": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "CreateOrUpdate",
"contentType": "application/json; charset=utf-8",
"expectedStatusCodes": [
200,
201,
202
],
"longRunning": true,
"httpMethod": "PUT",
"resourceIdName": "FirewallRuleId",
"requestObject": {
"type": "Reference",
"referenceName": "FirewallRule"
},
"responseObject": {
"type": "Reference",
"referenceName": "FirewallRule"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "Delete",
"contentType": "application/json; charset=utf-8",
"expectedStatusCodes": [
202,
204
],
"longRunning": true,
"httpMethod": "DELETE",
"resourceIdName": "FirewallRuleId"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "Get",
"contentType": "application/json; charset=utf-8",
"expectedStatusCodes": [
200
],
"longRunning": false,
"httpMethod": "GET",
"resourceIdName": "FirewallRuleId",
"responseObject": {
"type": "Reference",
"referenceName": "FirewallRule"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "ListByMongoCluster",
"contentType": "application/json; charset=utf-8",
"expectedStatusCodes": [
200
],
"fieldContainingPaginationDetails": "nextLink",
"longRunning": false,
"httpMethod": "GET",
"resourceIdName": "MongoClusterId",
"responseObject": {
"type": "Reference",
"referenceName": "FirewallRule"
},
"uriSuffix": "/firewallRules"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "FirewallRuleId",
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName}/firewallRules/{firewallRuleName}",
"segments": [
{
"name": "staticSubscriptions",
"type": "Static",
"value": "subscriptions"
},
{
"name": "subscriptionId",
"type": "SubscriptionId"
},
{
"name": "staticResourceGroups",
"type": "Static",
"value": "resourceGroups"
},
{
"name": "resourceGroupName",
"type": "ResourceGroup"
},
{
"name": "staticProviders",
"type": "Static",
"value": "providers"
},
{
"name": "staticMicrosoftDocumentDB",
"type": "ResourceProvider",
"value": "Microsoft.DocumentDB"
},
{
"name": "staticMongoClusters",
"type": "Static",
"value": "mongoClusters"
},
{
"name": "mongoClusterName",
"type": "UserSpecified"
},
{
"name": "staticFirewallRules",
"type": "Static",
"value": "firewallRules"
},
{
"name": "firewallRuleName",
"type": "UserSpecified"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "MongoClusterId",
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/mongoClusters/{mongoClusterName}",
"segments": [
{
"name": "staticSubscriptions",
"type": "Static",
"value": "subscriptions"
},
{
"name": "subscriptionId",
"type": "SubscriptionId"
},
{
"name": "staticResourceGroups",
"type": "Static",
"value": "resourceGroups"
},
{
"name": "resourceGroupName",
"type": "ResourceGroup"
},
{
"name": "staticProviders",
"type": "Static",
"value": "providers"
},
{
"name": "staticMicrosoftDocumentDB",
"type": "ResourceProvider",
"value": "Microsoft.DocumentDB"
},
{
"name": "staticMongoClusters",
"type": "Static",
"value": "mongoClusters"
},
{
"name": "mongoClusterName",
"type": "UserSpecified"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "CheckNameAvailabilityReason",
"type": "String",
"values": [
{
"key": "AlreadyExists",
"value": "AlreadyExists"
},
{
"key": "Invalid",
"value": "Invalid"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "CreateMode",
"type": "String",
"values": [
{
"key": "Default",
"value": "Default"
},
{
"key": "GeoReplica",
"value": "GeoReplica"
},
{
"key": "PointInTimeRestore",
"value": "PointInTimeRestore"
},
{
"key": "Replica",
"value": "Replica"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "HighAvailabilityMode",
"type": "String",
"values": [
{
"key": "Disabled",
"value": "Disabled"
},
{
"key": "SameZone",
"value": "SameZone"
},
{
"key": "ZoneRedundantPreferred",
"value": "ZoneRedundantPreferred"
}
]
}
Loading

0 comments on commit b18ed37

Please sign in to comment.