Merge pull request #584 from skadhiresan/skadhiresan/dataBoundary

DataBoundaries Changes
This commit is contained in:
necusjz 2024-12-04 10:49:44 +08:00 коммит произвёл GitHub
Родитель 64a34d8145 8e727dd7b8
Коммит 4b2b070fe0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
10 изменённых файлов: 483 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,16 @@
# [Command] _data-boundary create_
Create tenant to data boundary.
## Versions
### [2024-08-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQucmVzb3VyY2VzL2RhdGFib3VuZGFyaWVzL3t9/2024-08-01.xml) **Stable**
<!-- mgmt-plane /providers/microsoft.resources/databoundaries/{} 2024-08-01 -->
#### examples
- Opt-in to data boundary
```bash
data-boundary create --data-boundary EU --default default
```

Просмотреть файл

@ -0,0 +1,16 @@
# [Command] _data-boundary show-tenant_
Get data boundary of tenant.
## Versions
### [2024-08-01](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQucmVzb3VyY2VzL2RhdGFib3VuZGFyaWVzL3t9/2024-08-01.xml) **Stable**
<!-- mgmt-plane /providers/microsoft.resources/databoundaries/{} 2024-08-01 -->
#### examples
- Get data boundary for tenant
```bash
data-boundary show-tenant --default default
```

Просмотреть файл

@ -0,0 +1,17 @@
# [Command] _data-boundary show_
Get data boundary at specified scope
## Versions
### [2024-08-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5yZXNvdXJjZXMvZGF0YWJvdW5kYXJpZXMve30=/2024-08-01.xml) **Stable**
<!-- mgmt-plane /{scope}/providers/microsoft.resources/databoundaries/{} 2024-08-01 -->
#### examples
- Get data boundary at scope
```bash
data-boundary show --scope subscriptions/11111111-1111-1111-1111-111111111111 --default default
data-boundary show --scope subscriptions/11111111-1111-1111-1111-111111111111/resourcegroups/my-resource-group --default default
```

Просмотреть файл

@ -0,0 +1,14 @@
# [Group] _data-boundary_
data boundary operations
## Commands
- [create](/Commands/data-boundary/_create.md)
: Create tenant to data boundary.
- [show](/Commands/data-boundary/_show.md)
: Get data boundary at specified scope
- [show-tenant](/Commands/data-boundary/_show-tenant.md)
: Get data boundary of tenant.

Просмотреть файл

@ -104,6 +104,9 @@
- [costmanagement](/Commands/costmanagement/readme.md)
: costmanagement
- [data-boundary](/Commands/data-boundary/readme.md)
: data boundary operations
- [databox](/Commands/databox/readme.md)
: Manage data box

Просмотреть файл

@ -25937,6 +25937,104 @@
"costmanagement"
]
},
"data-boundary": {
"commands": {
"create": {
"help": {
"short": "Create tenant to data boundary."
},
"names": [
"data-boundary",
"create"
],
"versions": [
{
"examples": [
{
"commands": [
"data-boundary create --data-boundary EU --default default"
],
"name": "Opt-in to data boundary"
}
],
"name": "2024-08-01",
"resources": [
{
"id": "/providers/microsoft.resources/databoundaries/{}",
"plane": "mgmt-plane",
"version": "2024-08-01"
}
]
}
]
},
"show": {
"help": {
"short": "Get data boundary at specified scope"
},
"names": [
"data-boundary",
"show"
],
"versions": [
{
"examples": [
{
"commands": [
"data-boundary show --scope subscriptions/11111111-1111-1111-1111-111111111111 --default default",
"data-boundary show --scope subscriptions/11111111-1111-1111-1111-111111111111/resourcegroups/my-resource-group --default default"
],
"name": "Get data boundary at scope"
}
],
"name": "2024-08-01",
"resources": [
{
"id": "/{scope}/providers/microsoft.resources/databoundaries/{}",
"plane": "mgmt-plane",
"version": "2024-08-01"
}
]
}
]
},
"show-tenant": {
"help": {
"short": "Get data boundary of tenant."
},
"names": [
"data-boundary",
"show-tenant"
],
"versions": [
{
"examples": [
{
"commands": [
"data-boundary show-tenant --default default"
],
"name": "Get data boundary for tenant"
}
],
"name": "2024-08-01",
"resources": [
{
"id": "/providers/microsoft.resources/databoundaries/{}",
"plane": "mgmt-plane",
"version": "2024-08-01"
}
]
}
]
}
},
"help": {
"short": "data boundary operations"
},
"names": [
"data-boundary"
]
},
"databox": {
"commandGroups": {
"job": {

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,213 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/providers/microsoft.resources/databoundaries/{}" version="2024-08-01" swagger="mgmt-plane/resources/ResourceProviders/Microsoft.Resources/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzL2RhdGFCb3VuZGFyaWVzL3tkZWZhdWx0fQ==/V/MjAyNC0wOC0wMQ=="/>
<commandGroup name="data-boundary">
<command name="create" version="2024-08-01">
<resource id="/providers/microsoft.resources/databoundaries/{}" version="2024-08-01" swagger="mgmt-plane/resources/ResourceProviders/Microsoft.Resources/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzL2RhdGFCb3VuZGFyaWVzL3tkZWZhdWx0fQ==/V/MjAyNC0wOC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.default" options="default" required="True">
<help short="Default string modeled as parameter for auto generation to work correctly."/>
<enum>
<item name="default" value="&quot;default&quot;"/>
</enum>
</arg>
</argGroup>
<argGroup name="Properties">
<arg type="string" var="$dataBoundaryDefinition.properties.dataBoundary" options="data-boundary" group="Properties">
<help short="The data boundary definition."/>
<enum>
<item name="EU" value="&quot;EU&quot;"/>
<item name="Global" value="&quot;Global&quot;"/>
<item name="NotDefined" value="&quot;NotDefined&quot;"/>
</enum>
</arg>
</argGroup>
<operation operationId="DataBoundaries_Put">
<http path="/providers/Microsoft.Resources/dataBoundaries/{default}">
<request method="put">
<path>
<param type="string" name="default" arg="$Path.default" required="True">
<enum>
<item value="&quot;default&quot;"/>
</enum>
</param>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-08-01&quot;"/>
<format minLength="1"/>
</const>
</query>
<body>
<json>
<schema type="object" name="dataBoundaryDefinition" required="True" clientFlatten="True">
<prop type="object" name="properties">
<prop type="string" name="dataBoundary" arg="$dataBoundaryDefinition.properties.dataBoundary">
<enum>
<item value="&quot;EU&quot;"/>
<item value="&quot;Global&quot;"/>
<item value="&quot;NotDefined&quot;"/>
</enum>
</prop>
</prop>
</schema>
</json>
</body>
</request>
<response statusCode="200 201">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="ResourceId" name="id"/>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="string" name="dataBoundary">
<enum>
<item value="&quot;EU&quot;"/>
<item value="&quot;Global&quot;"/>
<item value="&quot;NotDefined&quot;"/>
</enum>
</prop>
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value="&quot;Accepted&quot;"/>
<item value="&quot;Canceled&quot;"/>
<item value="&quot;Creating&quot;"/>
<item value="&quot;Failed&quot;"/>
<item value="&quot;Running&quot;"/>
<item value="&quot;Succeeded&quot;"/>
<item value="&quot;Updating&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
<command name="show-tenant" version="2024-08-01" confirmation="">
<resource id="/providers/microsoft.resources/databoundaries/{}" version="2024-08-01" swagger="mgmt-plane/resources/ResourceProviders/Microsoft.Resources/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuUmVzb3VyY2VzL2RhdGFCb3VuZGFyaWVzL3tkZWZhdWx0fQ==/V/MjAyNC0wOC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.default" options="default" required="True">
<help short="Default string modeled as parameter for auto generation to work correctly."/>
<enum>
<item name="default" value="&quot;default&quot;"/>
</enum>
</arg>
</argGroup>
<operation operationId="DataBoundaries_GetTenant">
<http path="/providers/Microsoft.Resources/dataBoundaries/{default}">
<request method="get">
<path>
<param type="string" name="default" arg="$Path.default" required="True">
<enum>
<item value="&quot;default&quot;"/>
</enum>
</param>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-08-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="ResourceId" name="id"/>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="string" name="dataBoundary">
<enum>
<item value="&quot;EU&quot;"/>
<item value="&quot;Global&quot;"/>
<item value="&quot;NotDefined&quot;"/>
</enum>
</prop>
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value="&quot;Accepted&quot;"/>
<item value="&quot;Canceled&quot;"/>
<item value="&quot;Creating&quot;"/>
<item value="&quot;Failed&quot;"/>
<item value="&quot;Running&quot;"/>
<item value="&quot;Succeeded&quot;"/>
<item value="&quot;Updating&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>

Просмотреть файл

@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/{scope}/providers/microsoft.resources/databoundaries/{}", "version": "2024-08-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Resources/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5SZXNvdXJjZXMvZGF0YUJvdW5kYXJpZXMve2RlZmF1bHR9/V/MjAyNC0wOC0wMQ=="}], "commandGroups": [{"name": "data-boundary", "commands": [{"name": "show", "version": "2024-08-01", "resources": [{"id": "/{scope}/providers/microsoft.resources/databoundaries/{}", "version": "2024-08-01", "swagger": "mgmt-plane/resources/ResourceProviders/Microsoft.Resources/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5SZXNvdXJjZXMvZGF0YUJvdW5kYXJpZXMve2RlZmF1bHR9/V/MjAyNC0wOC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.default", "options": ["default"], "required": true, "help": {"short": "Default string modeled as parameter for auto generation to work correctly."}, "enum": {"items": [{"name": "default", "value": "default"}]}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "help": {"short": "The scope at which the operation is performed."}, "format": {"minLength": 1}}]}], "operations": [{"operationId": "DataBoundaries_GetScope", "http": {"path": "/{scope}/providers/Microsoft.Resources/dataBoundaries/{default}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "default", "arg": "$Path.default", "required": true, "enum": {"items": [{"value": "default"}]}}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-08-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "dataBoundary", "enum": {"items": [{"value": "EU"}, {"value": "Global"}, {"value": "NotDefined"}]}}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Accepted"}, {"value": "Canceled"}, {"value": "Creating"}, {"value": "Failed"}, {"value": "Running"}, {"value": "Succeeded"}, {"value": "Updating"}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]}

Просмотреть файл

@ -0,0 +1,104 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/{scope}/providers/microsoft.resources/databoundaries/{}" version="2024-08-01" swagger="mgmt-plane/resources/ResourceProviders/Microsoft.Resources/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5SZXNvdXJjZXMvZGF0YUJvdW5kYXJpZXMve2RlZmF1bHR9/V/MjAyNC0wOC0wMQ=="/>
<commandGroup name="data-boundary">
<command name="show" version="2024-08-01">
<resource id="/{scope}/providers/microsoft.resources/databoundaries/{}" version="2024-08-01" swagger="mgmt-plane/resources/ResourceProviders/Microsoft.Resources/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5SZXNvdXJjZXMvZGF0YUJvdW5kYXJpZXMve2RlZmF1bHR9/V/MjAyNC0wOC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.default" options="default" required="True">
<help short="Default string modeled as parameter for auto generation to work correctly."/>
<enum>
<item name="default" value="&quot;default&quot;"/>
</enum>
</arg>
<arg type="string" var="$Path.scope" options="scope" required="True">
<help short="The scope at which the operation is performed."/>
<format minLength="1"/>
</arg>
</argGroup>
<operation operationId="DataBoundaries_GetScope">
<http path="/{scope}/providers/Microsoft.Resources/dataBoundaries/{default}">
<request method="get">
<path>
<param type="string" name="default" arg="$Path.default" required="True">
<enum>
<item value="&quot;default&quot;"/>
</enum>
</param>
<param type="string" name="scope" arg="$Path.scope" required="True" skipUrlEncoding="True">
<format minLength="1"/>
</param>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-08-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="ResourceId" name="id"/>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="string" name="dataBoundary">
<enum>
<item value="&quot;EU&quot;"/>
<item value="&quot;Global&quot;"/>
<item value="&quot;NotDefined&quot;"/>
</enum>
</prop>
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value="&quot;Accepted&quot;"/>
<item value="&quot;Canceled&quot;"/>
<item value="&quot;Creating&quot;"/>
<item value="&quot;Failed&quot;"/>
<item value="&quot;Running&quot;"/>
<item value="&quot;Succeeded&quot;"/>
<item value="&quot;Updating&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt"/>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt"/>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>