Skip to content

Commit

Permalink
Add additional bucket properties to new api version
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Nov 5, 2021
1 parent 306ab93 commit 04977f9
Show file tree
Hide file tree
Showing 8 changed files with 767 additions and 46 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
{
"swagger": "2.0",
"info": {
"version": "2022-01-01-preview",
"title": "Common types and definitions",
"description": "Definitions and parameters common for all resource types of KubernetesConfiguration RP"
},
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {},
"definitions": {
"ProvisioningStateDefinition": {
"type": "string",
"readOnly": true,
"description": "The provisioning state of the resource.",
"enum": [
"Succeeded",
"Failed",
"Canceled",
"Creating",
"Updating",
"Deleting"
],
"x-ms-enum": {
"name": "ProvisioningState",
"modelAsString": true
}
},
"OperationStatusResult": {
"description": "The current status of an async operation.",
"type": "object",
"required": [
"status"
],
"properties": {
"id": {
"description": "Fully qualified ID for the async operation.",
"type": "string"
},
"name": {
"description": "Name of the async operation.",
"type": "string"
},
"status": {
"description": "Operation status.",
"type": "string"
},
"properties": {
"description": "Additional information, if available.",
"type": "object",
"x-nullable": true,
"additionalProperties": {
"type": "string"
}
},
"error": {
"description": "If present, details of the operation error.",
"type": "object",
"readOnly": true,
"x-nullable": true,
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail"
}
}
},
"OperationStatusList": {
"description": "The async operations in progress, in the cluster.",
"type": "object",
"readOnly": true,
"properties": {
"value": {
"type": "array",
"readOnly": true,
"items": {
"$ref": "#/definitions/OperationStatusResult"
},
"description": "List of async operations in progress, in the cluster."
},
"nextLink": {
"type": "string",
"readOnly": true,
"description": "URL to get the next set of Operation Result objects, if any."
}
}
},
"ResourceProviderOperation": {
"description": "Supported operation of this resource provider.",
"type": "object",
"readOnly": true,
"properties": {
"name": {
"description": "Operation name, in format of {provider}/{resource}/{operation}",
"type": "string"
},
"display": {
"description": "Display metadata associated with the operation.",
"type": "object",
"properties": {
"provider": {
"description": "Resource provider: Microsoft KubernetesConfiguration.",
"type": "string"
},
"resource": {
"description": "Resource on which the operation is performed.",
"type": "string"
},
"operation": {
"description": "Type of operation: get, read, delete, etc.",
"type": "string"
},
"description": {
"description": "Description of this operation.",
"type": "string"
}
}
},
"isDataAction": {
"description": "The flag that indicates whether the operation applies to data plane.",
"type": "boolean",
"readOnly": true
},
"origin": {
"description": "Origin of the operation",
"type": "string",
"readOnly": true
}
}
},
"ResourceProviderOperationList": {
"description": "Result of the request to list operations.",
"type": "object",
"readOnly": true,
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/ResourceProviderOperation"
},
"description": "List of operations supported by this resource provider."
},
"nextLink": {
"type": "string",
"readOnly": true,
"description": "URL to the next set of results, if any."
}
}
}
},
"parameters": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"swagger": "2.0",
"info": {
"version": "2022-01-01-preview",
"title": "Common types and definitions",
"description": "Definitions and parameters common for all resource types of KubernetesConfiguration RP"
},
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {},
"definitions": {},
"parameters": {
"ClusterRpParameter": {
"name": "clusterRp",
"in": "path",
"required": true,
"type": "string",
"enum": [
"Microsoft.ContainerService",
"Microsoft.Kubernetes"
],
"description": "The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).",
"x-ms-parameter-location": "method"
},
"ClusterResourceNameParameter": {
"name": "clusterResourceName",
"in": "path",
"required": true,
"type": "string",
"enum": [
"managedClusters",
"connectedClusters"
],
"description": "The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).",
"x-ms-parameter-location": "method"
},
"ClusterNameParameter": {
"name": "clusterName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the kubernetes cluster.",
"x-ms-parameter-location": "method"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@
"repositoryRef": {
"branch": "master"
},
"httpsCAFile": "ZXhhbXBsZWNlcnRpZmljYXRl"
"httpsCACert": "ZXhhbXBsZWNlcnRpZmljYXRl"
},
"kustomizations": {
"srs-kustomization1": {
"path": "./test/path",
"dependsOn": [],
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600,
"validation": "none"
"syncIntervalInSeconds": 600
},
"srs-kustomization2": {
"path": "./other/test/path",
Expand All @@ -40,8 +39,7 @@
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600,
"retryIntervalInSeconds": 600,
"prune": false,
"validation": "none"
"prune": false
}
}
}
Expand Down Expand Up @@ -81,15 +79,14 @@
"semver": null,
"commit": null
},
"httpsCAFile": "ZXhhbXBsZWNlcnRpZmljYXRl"
"httpsCACert": "ZXhhbXBsZWNlcnRpZmljYXRl"
},
"kustomizations": {
"srs-kustomization1": {
"path": "./test/path",
"dependsOn": [],
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600,
"validation": "none"
"syncIntervalInSeconds": 600
},
"srs-kustomization2": {
"path": "./other/test/path",
Expand All @@ -101,8 +98,7 @@
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600,
"retryIntervalInSeconds": 600,
"prune": false,
"validation": "none"
"prune": false
}
},
"statuses": [
Expand Down Expand Up @@ -215,15 +211,14 @@
"semver": null,
"commit": null
},
"httpsCAFile": "ZXhhbXBsZWNlcnRpZmljYXRl"
"httpsCACert": "ZXhhbXBsZWNlcnRpZmljYXRl"
},
"kustomizations": {
"srs-kustomization1": {
"path": "./test/path",
"dependsOn": [],
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600,
"validation": "none"
"syncIntervalInSeconds": 600
},
"srs-kustomization2": {
"path": "./other/test/path",
Expand All @@ -235,8 +230,7 @@
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600,
"retryIntervalInSeconds": 600,
"prune": false,
"validation": "none"
"prune": false
}
},
"statuses": [
Expand Down
Loading

0 comments on commit 04977f9

Please sign in to comment.