Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change model for capacity reservation group #249

Merged
merged 2 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,60 +2,41 @@
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}" version="2022-08-01" swagger="mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9jYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBzL3tjYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBOYW1lfQ==/V/MjAyMi0wOC0wMQ=="/>
<commandGroup name="capacity reservation group">
<command name="create" version="2022-08-01" confirmation="">
<command name="show" version="2022-08-01">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}" version="2022-08-01" swagger="mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9jYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBzL3tjYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBOYW1lfQ==/V/MjAyMi0wOC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.capacityReservationGroupName" options="capacity-reservation-group-name capacity-reservation-group n" required="True" group="" idPart="name">
<help short="The name of the capacity reservation group."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<argGroup name="Parameters">
<arg type="ResourceLocation" var="$parameters.location" options="location l" required="True" group="Parameters">
<help short="Resource location"/>
</arg>
<arg type="object" var="$parameters.tags" options="tags" group="Parameters">
<help short="Resource tags"/>
<additionalProp>
<item type="string"/>
</additionalProp>
</arg>
<arg type="array<string>" var="$parameters.zones" options="zones" group="Parameters">
<help short="Availability Zones to use for this capacity reservation group. The zones can be assigned only during creation. If not provided, the group supports only regional resources in the region. If provided, enforces each capacity reservation in the group to be in one of the zones."/>
<item type="string"/>
<arg type="string" var="$Query.expand" options="expand">
<help short="The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the capacity reservations under the capacity reservation group which is a snapshot of the runtime properties of a capacity reservation that is managed by the platform and can change outside of control plane operations."/>
<enum>
<item name="instanceView" value="&quot;instanceView&quot;"/>
</enum>
</arg>
</argGroup>
<operation operationId="CapacityReservationGroups_CreateOrUpdate">
<operation operationId="CapacityReservationGroups_Get">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}">
<request method="put">
<request method="get">
<path>
<param type="string" name="capacityReservationGroupName" arg="$Path.capacityReservationGroupName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"/>
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<param type="string" name="$expand" arg="$Query.expand">
<enum>
<item value="&quot;instanceView&quot;"/>
</enum>
</param>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2022-08-01&quot;"/>
</const>
</query>
<body>
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="ResourceLocation" name="location" arg="$parameters.location" required="True"/>
<prop type="object" name="tags" arg="$parameters.tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="array<string>" name="zones" arg="$parameters.zones">
<item type="string"/>
</prop>
</schema>
</json>
</body>
</request>
<response statusCode="200 201">
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
Expand All @@ -71,7 +52,7 @@
</item>
</prop>
<prop type="object" name="instanceView">
<prop readOnly="True" type="array<object>" name="capacityReservations">
<prop readOnly="True" type="array<object>" name="capacityReservations" identifiers="name">
<item type="object">
<prop readOnly="True" type="string" name="name"/>
<prop type="array<object>" name="statuses">
Expand Down Expand Up @@ -126,41 +107,96 @@
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
<command name="show" version="2022-08-01" confirmation="">
<command name="delete" version="2022-08-01" confirmation="Are you sure you want to perform this operation?">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}" version="2022-08-01" swagger="mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9jYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBzL3tjYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBOYW1lfQ==/V/MjAyMi0wOC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.capacityReservationGroupName" options="capacity-reservation-group-name capacity-reservation-group n" required="True" group="" idPart="name">
<help short="The name of the capacity reservation group."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Query.expand" options="expand">
<help short="The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the capacity reservations under the capacity reservation group which is a snapshot of the runtime properties of a capacity reservation that is managed by the platform and can change outside of control plane operations."/>
<enum>
<item name="instanceView" value="&quot;instanceView&quot;"/>
</enum>
</argGroup>
<operation operationId="CapacityReservationGroups_Delete">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}">
<request method="delete">
<path>
<param type="string" name="capacityReservationGroupName" arg="$Path.capacityReservationGroupName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"/>
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2022-08-01&quot;"/>
</const>
</query>
</request>
<response statusCode="200"/>
<response statusCode="202"/>
<response statusCode="204"/>
<response isError="True">
<body>
<json>
<schema type="@ODataV4Format"/>
</json>
</body>
</response>
</http>
</operation>
</command>
<command name="create" version="2022-08-01">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}" version="2022-08-01" swagger="mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9jYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBzL3tjYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBOYW1lfQ==/V/MjAyMi0wOC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.capacityReservationGroupName" options="capacity-reservation-group-name capacity-reservation-group n" required="True" group="" idPart="name">
<help short="The name of the capacity reservation group."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<operation operationId="CapacityReservationGroups_Get">
<argGroup name="Parameters">
<arg type="ResourceLocation" var="$parameters.location" options="location l" required="True" group="Parameters">
<help short="Resource location"/>
</arg>
<arg type="object" var="$parameters.tags" options="tags" group="Parameters">
<help short="Space-separated tags: key[=value] [key[=value] ...]."/>
<additionalProp>
<item type="string"/>
</additionalProp>
</arg>
<arg type="array<string>" var="$parameters.zones" options="zones" group="Parameters">
<help short="Availability Zones to use for this capacity reservation group. The zones can be assigned only during creation. If not provided, the group supports only regional resources in the region. If provided, enforces each capacity reservation in the group to be in one of the zones."/>
<item type="string"/>
</arg>
</argGroup>
<operation operationId="CapacityReservationGroups_CreateOrUpdate">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}">
<request method="get">
<request method="put">
<path>
<param type="string" name="capacityReservationGroupName" arg="$Path.capacityReservationGroupName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"/>
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<param type="string" name="$expand" arg="$Query.expand">
<enum>
<item value="&quot;instanceView&quot;"/>
</enum>
</param>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2022-08-01&quot;"/>
</const>
</query>
<body>
<json>
<schema type="object" name="parameters" required="True" clientFlatten="True">
<prop type="ResourceLocation" name="location" arg="$parameters.location" required="True"/>
<prop type="object" name="tags" arg="$parameters.tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop type="array<string>" name="zones" arg="$parameters.zones">
<item type="string"/>
</prop>
</schema>
</json>
</body>
</request>
<response statusCode="200">
<response statusCode="200 201">
<body>
<json var="$Instance">
<schema type="object">
Expand All @@ -176,7 +212,7 @@
</item>
</prop>
<prop type="object" name="instanceView">
<prop readOnly="True" type="array<object>" name="capacityReservations">
<prop readOnly="True" type="array<object>" name="capacityReservations" identifiers="name">
<item type="object">
<prop readOnly="True" type="string" name="name"/>
<prop type="array<object>" name="statuses">
Expand Down Expand Up @@ -231,7 +267,7 @@
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
<command name="update" version="2022-08-01" confirmation="">
<command name="update" version="2022-08-01">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}" version="2022-08-01" swagger="mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9jYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBzL3tjYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBOYW1lfQ==/V/MjAyMi0wOC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.capacityReservationGroupName" options="capacity-reservation-group-name capacity-reservation-group n" required="True" group="" idPart="name">
Expand All @@ -245,7 +281,7 @@
<help short="Resource location"/>
</arg>
<arg nullable="True" type="object" var="$parameters.tags" options="tags" group="Parameters">
<help short="Resource tags"/>
<help short="Space-separated tags: key[=value] [key[=value] ...]."/>
<additionalProp>
<item nullable="True" type="string"/>
</additionalProp>
Expand Down Expand Up @@ -285,7 +321,7 @@
</item>
</prop>
<prop type="object" name="instanceView">
<prop readOnly="True" type="array<object>" name="capacityReservations">
<prop readOnly="True" type="array<object>" name="capacityReservations" identifiers="name">
<item type="object">
<prop readOnly="True" type="string" name="name"/>
<prop type="array<object>" name="statuses">
Expand Down Expand Up @@ -390,40 +426,5 @@
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
<command name="delete" version="2022-08-01" confirmation="Are you sure you want to perform this operation?">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/capacityreservationgroups/{}" version="2022-08-01" swagger="mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29tcHV0ZS9jYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBzL3tjYXBhY2l0eVJlc2VydmF0aW9uR3JvdXBOYW1lfQ==/V/MjAyMi0wOC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.capacityReservationGroupName" options="capacity-reservation-group-name capacity-reservation-group n" required="True" group="" idPart="name">
<help short="The name of the capacity reservation group."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<operation operationId="CapacityReservationGroups_Delete">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}">
<request method="delete">
<path>
<param type="string" name="capacityReservationGroupName" arg="$Path.capacityReservationGroupName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"/>
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2022-08-01&quot;"/>
</const>
</query>
</request>
<response statusCode="200"/>
<response statusCode="204"/>
<response isError="True">
<body>
<json>
<schema type="@ODataV4Format"/>
</json>
</body>
</response>
</http>
</operation>
</command>
</commandGroup>
</CodeGen>
Loading