forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into broken-links-12-19-23
- Loading branch information
Showing
1,964 changed files
with
279,836 additions
and
2,940 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 108 additions & 0 deletions
108
specification/azurelargeinstance/AzureLargeInstance.Management/AzureLargeInstance.tsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
import "@azure-tools/typespec-azure-core"; | ||
import "@azure-tools/typespec-azure-resource-manager"; | ||
import "@typespec/rest"; | ||
import "./models.tsp"; | ||
|
||
using TypeSpec.Rest; | ||
using Azure.ResourceManager; | ||
using Azure.ResourceManager.Foundations; | ||
using TypeSpec.Http; | ||
|
||
namespace Microsoft.AzureLargeInstance; | ||
@doc(""" | ||
Azure Large Instance info on Azure (ARM properties and AzureLargeInstance | ||
properties) | ||
""") | ||
model AzureLargeInstance is TrackedResource<AzureLargeInstanceProperties> { | ||
@doc("Name of the AzureLargeInstance.") | ||
@pattern(".*") | ||
@path | ||
@key("azureLargeInstanceName") | ||
@segment("azureLargeInstances") | ||
name: string; | ||
} | ||
|
||
@armResourceOperations | ||
@projectedName("client", "AzureLargeInstance") | ||
interface AzureLargeInstances { | ||
@doc(""" | ||
Gets an Azure Large Instance for the specified subscription, resource group, | ||
and instance name. | ||
""") | ||
get is ArmResourceRead<AzureLargeInstance>; | ||
|
||
@doc(""" | ||
Patches the Tags field of an Azure Large Instance for the specified | ||
subscription, resource group, and instance name. | ||
""") | ||
update is ArmCustomPatchSync<AzureLargeInstance>; | ||
|
||
@doc(""" | ||
Gets a list of Azure Large Instances in the specified subscription and resource | ||
group. The operations returns various properties of each Azure Large Instance. | ||
""") | ||
listByResourceGroup is ArmResourceListByParent<AzureLargeInstance>; | ||
|
||
@doc(""" | ||
Gets a list of Azure Large Instances in the specified subscription. The | ||
operations returns various properties of each Azure Large Instance. | ||
""") | ||
listBySubscription is ArmListBySubscription<AzureLargeInstance>; | ||
|
||
@doc("The operation to start an Azure Large Instance (only for compute instances)") | ||
start is ArmResourceActionNoBody< | ||
AzureLargeInstance, | ||
{}, | ||
OperationStatusResult | ||
>; | ||
|
||
@doc("The operation to restart an Azure Large Instance (only for compute instances)") | ||
restart is ArmResourceActionNoBody< | ||
AzureLargeInstance, | ||
{ | ||
/** When set to 'active', this parameter empowers the server with the ability to forcefully terminate and halt any existing processes that may be running on the server */ | ||
@body forceParameter?: ForceState; | ||
}, | ||
OperationStatusResult | ||
>; | ||
|
||
@doc("The operation to shutdown an Azure Large Instance (only for compute instances)") | ||
shutdown is ArmResourceActionNoBody< | ||
AzureLargeInstance, | ||
{}, | ||
OperationStatusResult | ||
>; | ||
} | ||
|
||
/** | ||
* A long-running resource action. | ||
* @template TResource The resource being acted upon | ||
* @template TRequest The request model for the action | ||
* @template TResponse The response type for the action | ||
* @template TBaseParameters Optional. Allows overriding the parameters for the operation | ||
*/ | ||
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "Template for optional body" | ||
@autoRoute | ||
@OpenAPI.extension("x-ms-long-running-operation", true) | ||
@OpenAPI.extension( | ||
"x-ms-long-running-operation-options", | ||
{ | ||
`final-state-via`: "location", | ||
} | ||
) | ||
@armResourceAction(TResource) | ||
@post | ||
op ArmResourceActionNoBody< | ||
TResource extends Azure.ResourceManager.Foundations.ArmResource, | ||
TRequest extends TypeSpec.Reflection.Model, | ||
TResponse extends TypeSpec.Reflection.Model | void, | ||
TBaseParameters extends TypeSpec.Reflection.Model = Azure.ResourceManager.Foundations.BaseParameters<AzureLargeInstance> | ||
>( | ||
...ResourceInstanceParameters<TResource, TBaseParameters>, | ||
...TRequest, | ||
): ArmAcceptedLroResponse | TResponse | ErrorResponse; | ||
|
||
@@projectedName(AzureLargeInstances.update::parameters.properties, | ||
"json", | ||
"tagsParameter" | ||
); |
55 changes: 55 additions & 0 deletions
55
specification/azurelargeinstance/AzureLargeInstance.Management/AzureLargeStorageInstance.tsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import "@azure-tools/typespec-azure-core"; | ||
import "@azure-tools/typespec-azure-resource-manager"; | ||
import "@typespec/rest"; | ||
import "./models.tsp"; | ||
|
||
using TypeSpec.Rest; | ||
using Azure.ResourceManager; | ||
using Azure.ResourceManager.Foundations; | ||
using TypeSpec.Http; | ||
|
||
namespace Microsoft.AzureLargeInstance; | ||
@doc(""" | ||
AzureLargeStorageInstance info on Azure (ARM properties and | ||
AzureLargeStorageInstance properties) | ||
""") | ||
model AzureLargeStorageInstance | ||
is TrackedResource<AzureLargeStorageInstanceProperties> { | ||
@doc("Name of the AzureLargeStorageInstance.") | ||
@pattern(".*") | ||
@path | ||
@key("azureLargeStorageInstanceName") | ||
@segment("azureLargeStorageInstances") | ||
name: string; | ||
} | ||
|
||
@armResourceOperations | ||
@projectedName("client", "AzureLargeStorageInstance") | ||
interface AzureLargeStorageInstances { | ||
@doc(""" | ||
Gets an Azure Large Storage instance for the specified subscription, resource | ||
group, and instance name. | ||
""") | ||
get is ArmResourceRead<AzureLargeStorageInstance>; | ||
@doc(""" | ||
Patches the Tags field of a Azure Large Storage Instance for the specified | ||
subscription, resource group, and instance name. | ||
""") | ||
update is ArmCustomPatchSync<AzureLargeStorageInstance>; | ||
@doc(""" | ||
Gets a list of AzureLargeStorageInstances in the specified subscription and | ||
resource group. The operations returns various properties of each Azure | ||
LargeStorage instance. | ||
""") | ||
listByResourceGroup is ArmResourceListByParent<AzureLargeStorageInstance>; | ||
@doc(""" | ||
Gets a list of AzureLargeStorageInstances in the specified subscription. The | ||
operations returns various properties of each Azure LargeStorage instance. | ||
""") | ||
listBySubscription is ArmListBySubscription<AzureLargeStorageInstance>; | ||
} | ||
|
||
@@projectedName(AzureLargeStorageInstances.update::parameters.properties, | ||
"json", | ||
"tagsParameter" | ||
); |
35 changes: 35 additions & 0 deletions
35
...rgeInstance.Management/examples/2023-07-20-preview/AzureLargeInstanceOperations_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"operationId": "Operations_List", | ||
"title": "Operations_List", | ||
"parameters": { | ||
"api-version": "2023-07-20-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.AzureLargeInstance/read", | ||
"display": { | ||
"provider": "Microsoft Azure Large Instance", | ||
"resource": "AzureLargeInstance", | ||
"operation": "Read AzureLargeInstance", | ||
"description": "Read any AzureLargeInstance" | ||
}, | ||
"isDataAction": false | ||
}, | ||
{ | ||
"name": "Microsoft.AzureLargeInstance", | ||
"display": { | ||
"provider": "Microsoft Azure Large Instance", | ||
"resource": "AzureLargeInstance", | ||
"operation": "Start AzureLargeInstance", | ||
"description": "Start any AzureLargeInstance" | ||
}, | ||
"isDataAction": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.