Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlc2NoZWR1bGUvbG9jYXRpb25zL3t9L3ZpcnR1YWxtYWNoaW5lc3N1Ym1pdGhpYmVybmF0ZQ==/2024-10-01.xml (208 lines of code) (raw):
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/providers/microsoft.computeschedule/locations/{}/virtualmachinessubmithibernate" version="2024-10-01" swagger="mgmt-plane/computeschedule/ResourceProviders/Microsoft.ComputeSchedule/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGVTY2hlZHVsZS9sb2NhdGlvbnMve2xvY2F0aW9ucGFyYW1ldGVyfS92aXJ0dWFsTWFjaGluZXNTdWJtaXRIaWJlcm5hdGU=/V/MjAyNC0xMC0wMQ=="/>
<commandGroup name="computeschedule">
<command name="vm-submit-hibernate" version="2024-10-01" confirmation="">
<resource id="/subscriptions/{}/providers/microsoft.computeschedule/locations/{}/virtualmachinessubmithibernate" version="2024-10-01" swagger="mgmt-plane/computeschedule/ResourceProviders/Microsoft.ComputeSchedule/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGVTY2hlZHVsZS9sb2NhdGlvbnMve2xvY2F0aW9ucGFyYW1ldGVyfS92aXJ0dWFsTWFjaGluZXNTdWJtaXRIaWJlcm5hdGU=/V/MjAyNC0xMC0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.locationparameter" options="location" required="True" group="" idPart="name">
<help short="The location of the azure resources."/>
<prompt msg="Please enter location of azure resources:"/>
<format minLength="1"/>
</arg>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" group="" idPart="subscription">
<help short="SubscriptionId associated with the azure resources"/>
</arg>
</argGroup>
<argGroup name="RequestBody">
<arg type="string" var="$requestBody.correlationid" options="correlationid" required="True" group="RequestBody">
<help short="CorrelationId item"/>
</arg>
<arg type="object" var="$requestBody.executionParameters" options="execution-parameters" required="True" group="RequestBody">
<help short="The execution parameters for the request" lines="Optional parameters for the request including the retry policy"/>
<arg type="string" var="$requestBody.executionParameters.optimizationPreference" options="optimization-preference" hide="True" group="">
<help short="Details that could optimize the user's request"/>
<enum>
<item name="Availability" value=""Availability""/>
<item name="Cost" value=""Cost""/>
<item name="CostAvailabilityBalanced" value=""CostAvailabilityBalanced""/>
</enum>
</arg>
<arg type="object" var="$requestBody.executionParameters.retryPolicy" options="retry-policy" group="">
<help short="Optional retry policy the user can pass" lines="The retry policy object is an optional parameter the user can pass to control the retry count or retry window in minutes of each request, when either or none of these values are passed, Computeschedule will use default values for this"/>
<arg type="integer32" var="$requestBody.executionParameters.retryPolicy.retryCount" options="retry-count">
<help short="Retry count for user request"/>
</arg>
<arg type="integer32" var="$requestBody.executionParameters.retryPolicy.retryWindowInMinutes" options="retry-window-in-minutes">
<help short="Retry window in minutes for user request"/>
</arg>
</arg>
</arg>
<arg type="object" var="$requestBody.resources" options="resources" required="True" group="RequestBody">
<help short="The resources for the request"/>
<arg type="array<ResourceId>" var="$requestBody.resources.ids" options="ids" required="True" group="">
<help short="The resource armids used for the request"/>
<item type="ResourceId"/>
</arg>
</arg>
<arg type="object" var="$requestBody.schedule" options="schedule" required="True" group="RequestBody">
<help short="The schedule for the request"/>
<arg type="dateTime" var="$requestBody.schedule.deadLine" options="dead-line" hide="True" group="">
<help short="The deadline for the operation"/>
</arg>
<arg type="dateTime" var="$requestBody.schedule.deadline" options="deadline" group="">
<help short="The deadline for the operation"/>
<prompt msg="Please enter a valid deadline:"/>
</arg>
<arg type="string" var="$requestBody.schedule.deadlineType" options="deadline-type" required="True">
<help short="The deadlinetype of the operation, this can either be InitiateAt or CompleteBy"/>
<default value=""Unknown""/>
<enum>
<item name="CompleteBy" value=""CompleteBy""/>
<item name="InitiateAt" value=""InitiateAt""/>
<item name="Unknown" value=""Unknown""/>
</enum>
</arg>
<arg type="string" var="$requestBody.schedule.timeZone" options="time-zone" hide="True" group="">
<help short="The timezone for the operation"/>
</arg>
<arg type="string" var="$requestBody.schedule.timezone" options="timezone" group="">
<help short="The timezone for the operation" lines="Computeschedule only supports UTC timezone presently"/>
<prompt msg="Please enter timezone value:"/>
</arg>
</arg>
</argGroup>
<operation operationId="ScheduledActions_VirtualMachinesSubmitHibernate">
<http path="/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitHibernate">
<request method="post">
<path>
<param type="string" name="locationparameter" arg="$Path.locationparameter" required="True">
<format minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value=""2024-10-01""/>
<format minLength="1"/>
</const>
</query>
<body>
<json>
<schema type="object" name="requestBody" required="True" clientFlatten="True">
<prop type="string" name="correlationid" arg="$requestBody.correlationid" required="True"/>
<prop type="object" name="executionParameters" arg="$requestBody.executionParameters" required="True">
<prop type="string" name="optimizationPreference" arg="$requestBody.executionParameters.optimizationPreference">
<enum>
<item value=""Availability""/>
<item value=""Cost""/>
<item value=""CostAvailabilityBalanced""/>
</enum>
</prop>
<prop type="object" name="retryPolicy" arg="$requestBody.executionParameters.retryPolicy">
<prop type="integer32" name="retryCount" arg="$requestBody.executionParameters.retryPolicy.retryCount"/>
<prop type="integer32" name="retryWindowInMinutes" arg="$requestBody.executionParameters.retryPolicy.retryWindowInMinutes"/>
</prop>
</prop>
<prop type="object" name="resources" arg="$requestBody.resources" required="True">
<prop type="array<ResourceId>" name="ids" arg="$requestBody.resources.ids" required="True">
<item type="ResourceId"/>
</prop>
</prop>
<prop type="object" name="schedule" arg="$requestBody.schedule" required="True">
<prop type="dateTime" name="deadLine" arg="$requestBody.schedule.deadLine"/>
<prop type="dateTime" name="deadline" arg="$requestBody.schedule.deadline"/>
<prop type="string" name="deadlineType" arg="$requestBody.schedule.deadlineType" required="True">
<default value=""Unknown""/>
<enum>
<item value=""CompleteBy""/>
<item value=""InitiateAt""/>
<item value=""Unknown""/>
</enum>
</prop>
<prop type="string" name="timeZone" arg="$requestBody.schedule.timeZone"/>
<prop type="string" name="timezone" arg="$requestBody.schedule.timezone"/>
</prop>
</schema>
</json>
</body>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="description" required="True"/>
<prop type="string" name="location" required="True"/>
<prop type="array<object>" name="results">
<item type="object">
<prop type="string" name="errorCode"/>
<prop type="string" name="errorDetails"/>
<prop type="object" name="operation">
<prop type="dateTime" name="completedAt"/>
<prop type="dateTime" name="deadline"/>
<prop type="string" name="deadlineType">
<default value=""Unknown""/>
<enum>
<item value=""CompleteBy""/>
<item value=""InitiateAt""/>
<item value=""Unknown""/>
</enum>
</prop>
<prop type="string" name="opType">
<default value=""Unknown""/>
<enum>
<item value=""Deallocate""/>
<item value=""Hibernate""/>
<item value=""Start""/>
<item value=""Unknown""/>
</enum>
</prop>
<prop type="string" name="operationId" required="True"/>
<prop type="ResourceId" name="resourceId"/>
<prop type="object" name="resourceOperationError">
<prop type="string" name="errorCode" required="True"/>
<prop type="string" name="errorDetails" required="True"/>
</prop>
<prop type="object" name="retryPolicy">
<prop type="integer32" name="retryCount"/>
<prop type="integer32" name="retryWindowInMinutes"/>
</prop>
<prop type="string" name="state">
<default value=""Unknown""/>
<enum>
<item value=""Blocked""/>
<item value=""Cancelled""/>
<item value=""Executing""/>
<item value=""Failed""/>
<item value=""PendingExecution""/>
<item value=""PendingScheduling""/>
<item value=""Scheduled""/>
<item value=""Succeeded""/>
<item value=""Unknown""/>
</enum>
</prop>
<prop type="string" name="subscriptionId"/>
<prop type="string" name="timeZone"/>
<prop type="string" name="timezone"/>
</prop>
<prop type="ResourceId" name="resourceId"/>
</item>
</prop>
<prop type="string" name="type" required="True"/>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema readOnly="True" type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="object" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>