Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
tadelesh committed Oct 23, 2023
1 parent 0287500 commit 1865c40
Show file tree
Hide file tree
Showing 15 changed files with 820 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ model SpaceResourceProperties {
description?: string;
}

@doc("The updatable properties of the Space.")
model SpaceUpdateProperties {
@doc("The description of the resource.")
description?: string;
}

@doc("The properties of application.")
model ApplicationProperties {
@doc("The status of the last operation.")
Expand Down Expand Up @@ -74,6 +80,15 @@ model TrackingDataStore {
dataStoreIngestionUri: string;
}

@doc("The updatable properties of the Application.")
model ApplicationUpdateProperties {
@doc("The description of the resource.")
description?: string;

@doc("The tracking data stores.")
trackingDataStores?: Record<TrackingDataStore>;
}

@doc("The properties of business process.")
model BusinessProcessProperties {
@doc("The status of the last operation.")
Expand Down Expand Up @@ -142,6 +157,27 @@ model BusinessProcessMappingItem {
operationType?: string;
}

@doc("The updatable properties of the BusinessProcess.")
model BusinessProcessUpdateProperties {
@doc("The description of the business process.")
description?: string;

@doc("The table name of the business process.")
tableName?: string;

@doc("The tracking data store reference name.")
trackingDataStoreReferenceName?: string;

@doc("The business process identifier.")
identifier?: BusinessProcessIdentifier;

@doc("The business process stages.")
businessProcessStages?: Record<BusinessProcessStage>;

@doc("The business process mapping.")
businessProcessMapping?: Record<BusinessProcessMappingItem>;
}

@doc("The business process development artifact get or delete request.")
model GetOrDeleteBusinessProcessDevelopmentArtifactRequest {
@doc("The name of the business process development artifact.")
Expand Down Expand Up @@ -315,3 +351,12 @@ model InfrastructureResourceProperties {
@doc("The id of the infrastructure resource.")
resourceId: string;
}

@doc("The updatable properties of the InfrastructureResource.")
model InfrastructureResourceUpdateProperties {
@doc("The type of the infrastructure resource.")
resourceType?: string;

@doc("The id of the infrastructure resource.")
resourceId?: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,29 @@ interface AvailabilitySets {
list is ArmResourceListByParent<AvailabilitySet>;
@doc("Lists all availability sets in a subscription.")
listBySubscription is ArmListBySubscription<AvailabilitySet>;
@doc("""
Lists all available virtual machine sizes that can be used to create a new
virtual machine in an existing availability set.
""")
@route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes")
@get
ListAvailableSizes is Azure.Core.Foundations.Operation<
{
@doc("The name of the resource group.")
@path
resourceGroupName: string;

@doc("The name of the availability set.")
@path
availabilitySetName: string;

@doc("""
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
""")
@path
subscriptionId: string;
},
VirtualMachineSizeListResult
>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,84 @@ Role Instances.
rebuild is ArmResourceActionAsync<CloudService, RoleInstances, {}>;
@doc("Deletes role instances in a cloud service.")
deleteInstances is ArmResourceActionAsync<CloudService, RoleInstances, {}>;
@doc("Gets the status of a cloud service.")
@route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView")
@get
GetInstanceView is Azure.Core.Foundations.Operation<
{
@doc("Name of the resource group.")
@path
resourceGroupName: string;

@doc("Name of the cloud service.")
@path
cloudServiceName: string;

@doc("""
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
""")
@path
subscriptionId: string;
},
CloudServiceInstanceView
>;

@doc("""
Gets the specified update domain of a cloud service. Use nextLink property in
the response to get the next page of update domains. Do this till nextLink is
null to fetch all the update domains.
""")
@route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}")
@get
GetUpdateDomain is Azure.Core.Foundations.Operation<
{
@doc("Name of the resource group.")
@path
resourceGroupName: string;

@doc("Name of the cloud service.")
@path
cloudServiceName: string;

@doc("""
Specifies an integer value that identifies the update domain. Update domains
are identified with a zero-based index: the first update domain has an ID of 0,
the second has an ID of 1, and so on.
""")
@path
updateDomain: int32;

@doc("""
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
""")
@path
subscriptionId: string;
},
UpdateDomain
>;

@doc("Gets a list of all update domains in a cloud service.")
@route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains")
@get
ListUpdateDomains is Azure.Core.Foundations.Operation<
{
@doc("Name of the resource group.")
@path
resourceGroupName: string;

@doc("Name of the cloud service.")
@path
cloudServiceName: string;

@doc("""
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
""")
@path
subscriptionId: string;
},
UpdateDomainListResult
>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,10 @@ https://docs.microsoft.com/azure/service-health/resource-health-overview for
more details.
""")
restart is ArmResourceActionAsync<DedicatedHost, {}, {}>;
@doc("""
Lists all available dedicated host sizes to which the specified dedicated host
can be resized. NOTE: The dedicated host sizes provided can be used to only
scale up the existing dedicated host.
""")
ListAvailableSizes is Azure.Core.ResourceList<string>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,30 @@ interface DiskAccesses {
listByResourceGroup is ArmResourceListByParent<DiskAccess>;
@doc("Lists all the disk access resources under a subscription.")
list is ArmListBySubscription<DiskAccess>;
@doc("Gets the private link resources possible under disk access resource")
@route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateLinkResources")
@get
GetPrivateLinkResources is Azure.Core.Foundations.Operation<
{
@doc("""
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
""")
@path
subscriptionId: string;

@doc("The name of the resource group.")
@path
resourceGroupName: string;

@doc("""
The name of the disk access resource that is being created. The name can't be
changed after the disk encryption set is created. Supported characters for the
name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
""")
@path
diskAccessName: string;
},
PrivateLinkResourceListResult
>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ interface DiskEncryptionSets {
listByResourceGroup is ArmResourceListByParent<DiskEncryptionSet>;
@doc("Lists all the disk encryption sets under a subscription.")
list is ArmListBySubscription<DiskEncryptionSet>;
@doc("Lists all resources that are encrypted with this disk encryption set.")
ListAssociatedResources is Azure.Core.ResourceList<string>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,64 @@ resources that are used by them. If you do not want to initialize storage
resources, you can use Reimage Role Instance.
""")
rebuild is ArmResourceActionAsync<RoleInstance, {}, {}>;
@doc("""
Retrieves information about the run-time state of a role instance in a cloud
service.
""")
@route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView")
@get
GetInstanceView is Azure.Core.Foundations.Operation<
{
@doc("Name of the role instance.")
@path
roleInstanceName: string;

@doc("Name of the resource group.")
@path
resourceGroupName: string;

@doc("Name of the cloud service.")
@path
cloudServiceName: string;

@doc("""
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
""")
@path
subscriptionId: string;
},
RoleInstanceInstanceView
>;

@doc("Gets a remote desktop file for a role instance in a cloud service.")
@route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/remoteDesktopFile")
@get
GetRemoteDesktopFile is Azure.Core.Foundations.Operation<
{
@doc("Name of the role instance.")
@path
roleInstanceName: string;

@doc("Name of the resource group.")
@path
resourceGroupName: string;

@doc("Name of the cloud service.")
@path
cloudServiceName: string;

@doc("""
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
""")
@path
subscriptionId: string;

@doc("Accept header")
@header
accept: "application/x-rdp";
},
void
>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,52 @@ expiration duration of 120 minutes.
RunCommandInput,
RunCommandResult
>;
@doc("Retrieves information about the run-time state of a virtual machine.")
@route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView")
@get
InstanceView is Azure.Core.Foundations.Operation<
{
@doc("The name of the resource group.")
@path
resourceGroupName: string;

@doc("The name of the virtual machine.")
@path
vmName: string;

@doc("""
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
""")
@path
subscriptionId: string;
},
VirtualMachineInstanceView
>;

@doc("""
Lists all available virtual machine sizes to which the specified virtual
machine can be resized.
""")
@route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes")
@get
ListAvailableSizes is Azure.Core.Foundations.Operation<
{
@doc("The name of the resource group.")
@path
resourceGroupName: string;

@doc("The name of the virtual machine.")
@path
vmName: string;

@doc("""
Subscription credentials which uniquely identify Microsoft Azure subscription.
The subscription ID forms part of the URI for every service call.
""")
@path
subscriptionId: string;
},
VirtualMachineSizeListResult
>;
}
Loading

0 comments on commit 1865c40

Please sign in to comment.