Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
markcowl committed Jun 27, 2024
1 parent cf9c9d5 commit aa29222
Show file tree
Hide file tree
Showing 23 changed files with 201 additions and 39 deletions.
8 changes: 7 additions & 1 deletion specification/apicenter/ApiCenter.Management/Service.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ interface Services {
@doc("Creates new or updates existing API.")
createOrUpdate is Azure.ResourceManager.ArmResourceCreateOrReplaceSync<Service>;
@doc("Updates existing service.")
update is ArmCustomPatchSync<Service, Azure.ResourceManager.Foundations.ResourceUpdateModel<Service, ServiceProperties>>;
update is ArmCustomPatchSync<
Service,
Azure.ResourceManager.Foundations.ResourceUpdateModel<
Service,
ServiceProperties
>
>;
@doc("Deletes specified service.")
delete is ArmResourceDeleteSync<Service>;
@doc("Returns a collection of services within the resource group.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ interface CommunityTrainings {
>;
update is ArmCustomPatchAsync<
CommunityTraining,
Azure.ResourceManager.Foundations.ResourceUpdateModel<CommunityTraining, CommunityTrainingProperties>
Azure.ResourceManager.Foundations.ResourceUpdateModel<
CommunityTraining,
CommunityTrainingProperties
>
>;
delete is ArmResourceDeleteAsync<CommunityTraining>;
listByResourceGroup is ArmResourceListByParent<CommunityTraining>;
Expand Down
10 changes: 8 additions & 2 deletions specification/containerservice/Fleet.Management/fleetmember.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ interface FleetMembers {
@removed(Versions.v2023_06_15_preview)
update is ArmCustomPatchSync<
FleetMember,
Azure.ResourceManager.Foundations.ResourceUpdateModel<FleetMember, FleetMemberProperties>,
Azure.ResourceManager.Foundations.ResourceUpdateModel<
FleetMember,
FleetMemberProperties
>,
Azure.ResourceManager.Foundations.BaseParameters<FleetMember> &
IfMatchParameters<FleetMember>
>;
Expand All @@ -109,7 +112,10 @@ interface FleetMembers {
)
updateAsync is ArmCustomPatchAsync<
FleetMember,
Azure.ResourceManager.Foundations.ResourceUpdateModel<FleetMember, FleetMemberProperties>,
Azure.ResourceManager.Foundations.ResourceUpdateModel<
FleetMember,
FleetMemberProperties
>,
Azure.ResourceManager.Foundations.BaseParameters<FleetMember> &
IfMatchParameters<FleetMember>
>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ interface Pools {
LroHeaders = Azure.Core.Foundations.RetryAfterHeader
>;
delete is ArmResourceDeleteWithoutOkAsync<Pool>;
update is ArmCustomPatchAsync<Pool, Azure.ResourceManager.Foundations.ResourceUpdateModel<Pool, PoolProperties>>;
update is ArmCustomPatchAsync<
Pool,
Azure.ResourceManager.Foundations.ResourceUpdateModel<Pool, PoolProperties>
>;
listByResourceGroup is ArmResourceListByParent<Pool>;
listBySubscription is ArmListBySubscription<Pool>;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ interface Volumes {
LroHeaders = Azure.Core.Foundations.RetryAfterHeader
>;
delete is ArmResourceDeleteWithoutOkAsync<Volume>;
update is ArmCustomPatchAsync<Volume, Azure.ResourceManager.Foundations.ResourceUpdateModel<Volume, VolumeProperties>>;
update is ArmCustomPatchAsync<
Volume,
Azure.ResourceManager.Foundations.ResourceUpdateModel<
Volume,
VolumeProperties
>
>;
listByPool is ArmResourceListByParent<Volume>;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,13 @@ interface Watchers {
Watcher,
LroHeaders = Azure.Core.Foundations.RetryAfterHeader
>;
update is ArmCustomPatchAsync<Watcher, Azure.ResourceManager.Foundations.ResourceUpdateModel<Watcher, WatcherProperties>>;
update is ArmCustomPatchAsync<
Watcher,
Azure.ResourceManager.Foundations.ResourceUpdateModel<
Watcher,
WatcherProperties
>
>;
delete is ArmResourceDeleteWithoutOkAsync<Watcher>;
listByResourceGroup is ArmResourceListByParent<Watcher>;
listBySubscription is ArmListBySubscription<Watcher>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ interface AssetEndpointProfiles {

update is ArmCustomPatchAsync<
AssetEndpointProfile,
Azure.ResourceManager.Foundations.ResourceUpdateModel<AssetEndpointProfile, AssetEndpointProfileProperties>
Azure.ResourceManager.Foundations.ResourceUpdateModel<
AssetEndpointProfile,
AssetEndpointProfileProperties
>
>;

delete is ArmResourceDeleteWithoutOkAsync<AssetEndpointProfile>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,13 @@ interface Assets {
LroHeaders = Azure.Core.Foundations.RetryAfterHeader
>;

update is ArmCustomPatchAsync<Asset, Azure.ResourceManager.Foundations.ResourceUpdateModel<Asset, AssetProperties>>;
update is ArmCustomPatchAsync<
Asset,
Azure.ResourceManager.Foundations.ResourceUpdateModel<
Asset,
AssetProperties
>
>;

delete is ArmResourceDeleteWithoutOkAsync<Asset>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,10 @@ interface Pools {
Pool,
LroHeaders = Azure.Core.Foundations.RetryAfterHeader
>;
update is ArmCustomPatchAsync<Pool, Azure.ResourceManager.Foundations.ResourceUpdateModel<Pool, PoolProperties>>;
update is ArmCustomPatchAsync<
Pool,
Azure.ResourceManager.Foundations.ResourceUpdateModel<Pool, PoolProperties>
>;
delete is ArmResourceDeleteWithoutOkAsync<Pool>;
listByResourceGroup is ArmResourceListByParent<Pool>;
listBySubscription is ArmListBySubscription<Pool>;
Expand Down
66 changes: 54 additions & 12 deletions specification/iotoperationsmq/IoTOperationsMQ.Management/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ interface Mq {
MqResource,
LroHeaders = Azure.Core.Foundations.RetryAfterHeader
>;
update is ArmCustomPatchSync<MqResource, Azure.ResourceManager.Foundations.ResourceUpdateModel<MqResource, MqProperties>>;
update is ArmCustomPatchSync<
MqResource,
Azure.ResourceManager.Foundations.ResourceUpdateModel<
MqResource,
MqProperties
>
>;
delete is ArmResourceDeleteWithoutOkAsync<MqResource>;
listByResourceGroup is ArmResourceListByParent<MqResource>;
listBySubscription is ArmListBySubscription<MqResource>;
Expand All @@ -60,7 +66,13 @@ interface Broker {
BrokerResource,
LroHeaders = Azure.Core.Foundations.RetryAfterHeader
>;
update is ArmCustomPatchSync<BrokerResource, Azure.ResourceManager.Foundations.ResourceUpdateModel<BrokerResource, BrokerProperties>>;
update is ArmCustomPatchSync<
BrokerResource,
Azure.ResourceManager.Foundations.ResourceUpdateModel<
BrokerResource,
BrokerProperties
>
>;
delete is ArmResourceDeleteWithoutOkAsync<BrokerResource>;
listByResourceGroup is ArmResourceListByParent<BrokerResource>;
}
Expand All @@ -77,7 +89,10 @@ interface BrokerListener {
>;
update is ArmCustomPatchSync<
BrokerListenerResource,
Azure.ResourceManager.Foundations.ResourceUpdateModel<BrokerListenerResource, BrokerListenerProperties>
Azure.ResourceManager.Foundations.ResourceUpdateModel<
BrokerListenerResource,
BrokerListenerProperties
>
>;
delete is ArmResourceDeleteWithoutOkAsync<BrokerListenerResource>;
listByResourceGroup is ArmResourceListByParent<BrokerListenerResource>;
Expand All @@ -95,7 +110,10 @@ interface BrokerAuthentication {
>;
update is ArmCustomPatchSync<
BrokerAuthenticationResource,
Azure.ResourceManager.Foundations.ResourceUpdateModel<BrokerAuthenticationResource, BrokerAuthenticationProperties>
Azure.ResourceManager.Foundations.ResourceUpdateModel<
BrokerAuthenticationResource,
BrokerAuthenticationProperties
>
>;
delete is ArmResourceDeleteWithoutOkAsync<BrokerAuthenticationResource>;
listByResourceGroup is ArmResourceListByParent<BrokerAuthenticationResource>;
Expand All @@ -113,7 +131,10 @@ interface BrokerAuthorization {
>;
update is ArmCustomPatchSync<
BrokerAuthorizationResource,
Azure.ResourceManager.Foundations.ResourceUpdateModel<BrokerAuthorizationResource, BrokerAuthorizationProperties>
Azure.ResourceManager.Foundations.ResourceUpdateModel<
BrokerAuthorizationResource,
BrokerAuthorizationProperties
>
>;
delete is ArmResourceDeleteWithoutOkAsync<BrokerAuthorizationResource>;
listByResourceGroup is ArmResourceListByParent<BrokerAuthorizationResource>;
Expand All @@ -131,7 +152,10 @@ interface MqttBridgeConnector {
>;
update is ArmCustomPatchSync<
MqttBridgeConnectorResource,
Azure.ResourceManager.Foundations.ResourceUpdateModel<MqttBridgeConnectorResource, MqttBridgeConnectorProperties>
Azure.ResourceManager.Foundations.ResourceUpdateModel<
MqttBridgeConnectorResource,
MqttBridgeConnectorProperties
>
>;
delete is ArmResourceDeleteWithoutOkAsync<MqttBridgeConnectorResource>;
listByResourceGroup is ArmResourceListByParent<MqttBridgeConnectorResource>;
Expand All @@ -149,7 +173,10 @@ interface MqttBridgeTopicMap {
>;
update is ArmCustomPatchSync<
MqttBridgeTopicMapResource,
Azure.ResourceManager.Foundations.ResourceUpdateModel<MqttBridgeTopicMapResource, MqttBridgeTopicMapProperties>
Azure.ResourceManager.Foundations.ResourceUpdateModel<
MqttBridgeTopicMapResource,
MqttBridgeTopicMapProperties
>
>;
delete is ArmResourceDeleteWithoutOkAsync<MqttBridgeTopicMapResource>;
listByResourceGroup is ArmResourceListByParent<MqttBridgeTopicMapResource>;
Expand All @@ -167,7 +194,10 @@ interface DiagnosticService {
>;
update is ArmCustomPatchSync<
DiagnosticServiceResource,
Azure.ResourceManager.Foundations.ResourceUpdateModel<DiagnosticServiceResource, DiagnosticServiceProperties>
Azure.ResourceManager.Foundations.ResourceUpdateModel<
DiagnosticServiceResource,
DiagnosticServiceProperties
>
>;
delete is ArmResourceDeleteWithoutOkAsync<DiagnosticServiceResource>;
listByResourceGroup is ArmResourceListByParent<DiagnosticServiceResource>;
Expand All @@ -185,7 +215,10 @@ interface DataLakeConnector {
>;
update is ArmCustomPatchSync<
DataLakeConnectorResource,
Azure.ResourceManager.Foundations.ResourceUpdateModel<DataLakeConnectorResource, DataLakeConnectorProperties>
Azure.ResourceManager.Foundations.ResourceUpdateModel<
DataLakeConnectorResource,
DataLakeConnectorProperties
>
>;
delete is ArmResourceDeleteWithoutOkAsync<DataLakeConnectorResource>;
listByResourceGroup is ArmResourceListByParent<DataLakeConnectorResource>;
Expand All @@ -203,7 +236,10 @@ interface DataLakeConnectorTopicMap {
>;
update is ArmCustomPatchSync<
DataLakeTopicMapResource,
Azure.ResourceManager.Foundations.ResourceUpdateModel<DataLakeTopicMapResource, DataLakeConnectorTopicMapProperties>
Azure.ResourceManager.Foundations.ResourceUpdateModel<
DataLakeTopicMapResource,
DataLakeConnectorTopicMapProperties
>
>;
delete is ArmResourceDeleteWithoutOkAsync<DataLakeTopicMapResource>;
listByResourceGroup is ArmResourceListByParent<DataLakeTopicMapResource>;
Expand All @@ -221,7 +257,10 @@ interface KafkaConnector {
>;
update is ArmCustomPatchSync<
KafkaConnectorResource,
Azure.ResourceManager.Foundations.ResourceUpdateModel<KafkaConnectorResource, KafkaConnectorProperties>
Azure.ResourceManager.Foundations.ResourceUpdateModel<
KafkaConnectorResource,
KafkaConnectorProperties
>
>;
delete is ArmResourceDeleteWithoutOkAsync<KafkaConnectorResource>;
listByResourceGroup is ArmResourceListByParent<KafkaConnectorResource>;
Expand All @@ -239,7 +278,10 @@ interface KafkaConnectorTopicMap {
>;
update is ArmCustomPatchSync<
KafkaTopicMapResource,
Azure.ResourceManager.Foundations.ResourceUpdateModel<KafkaTopicMapResource, KafkaTopicMapProperties>
Azure.ResourceManager.Foundations.ResourceUpdateModel<
KafkaTopicMapResource,
KafkaTopicMapProperties
>
>;
delete is ArmResourceDeleteWithoutOkAsync<KafkaTopicMapResource>;
listByResourceGroup is ArmResourceListByParent<KafkaTopicMapResource>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@ interface Organizations {
OrganizationResource,
LroHeaders = Azure.Core.Foundations.RetryAfterHeader
>;
update is ArmCustomPatchAsync<OrganizationResource, Azure.ResourceManager.Foundations.ResourceUpdateModel<OrganizationResource, OrganizationProperties>>;
update is ArmCustomPatchAsync<
OrganizationResource,
Azure.ResourceManager.Foundations.ResourceUpdateModel<
OrganizationResource,
OrganizationProperties
>
>;
delete is ArmResourceDeleteWithoutOkAsync<OrganizationResource>;
listByResourceGroup is ArmResourceListByParent<OrganizationResource>;
listBySubscription is ArmListBySubscription<OrganizationResource>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ interface LoadTests {
#suppress "@azure-tools/typespec-azure-resource-manager/lro-location-header" "Existing API"
update is ArmCustomPatchAsync<
LoadTestResource,
Azure.ResourceManager.Foundations.ResourceUpdateModel<LoadTestResource, LoadTestProperties>,
Azure.ResourceManager.Foundations.ResourceUpdateModel<
LoadTestResource,
LoadTestProperties
>,
LroHeaders = ArmAsyncOperationHeader &
ArmLroLocationHeader &
Azure.Core.Foundations.RetryAfterHeader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ interface MongoClusters {
LroHeaders = Azure.Core.Foundations.RetryAfterHeader
>;
/** Updates an existing mongo cluster. The request body can contain one to many of the properties present in the normal mongo cluster definition. */
update is ArmCustomPatchAsync<MongoCluster, Azure.ResourceManager.Foundations.ResourceUpdateModel<MongoCluster, MongoClusterProperties>>;
update is ArmCustomPatchAsync<
MongoCluster,
Azure.ResourceManager.Foundations.ResourceUpdateModel<
MongoCluster,
MongoClusterProperties
>
>;
/** Deletes a mongo cluster. */
delete is ArmResourceDeleteWithoutOkAsync<MongoCluster>;
/** List all the mongo clusters in a given resource group. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ interface AzureMonitorWorkspaces {
@doc("Updates part of a workspace")
update is ArmCustomPatchSync<
AzureMonitorWorkspace,
Azure.ResourceManager.Foundations.ResourceUpdateModel<AzureMonitorWorkspace, AzureMonitorWorkspaceProperties>
Azure.ResourceManager.Foundations.ResourceUpdateModel<
AzureMonitorWorkspace,
AzureMonitorWorkspaceProperties
>
>;
@doc("Delete a workspace")
delete is ArmResourceDeleteWithoutOkAsync<AzureMonitorWorkspace>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,13 @@ interface PipelineGroups {
delete is ArmResourceDeleteWithoutOkAsync<PipelineGroup>;

@doc("Updates a pipeline group instance")
update is ArmCustomPatchAsync<PipelineGroup, Azure.ResourceManager.Foundations.ResourceUpdateModel<PipelineGroup, PipelineGroupProperties>>;
update is ArmCustomPatchAsync<
PipelineGroup,
Azure.ResourceManager.Foundations.ResourceUpdateModel<
PipelineGroup,
PipelineGroupProperties
>
>;

@doc("Lists all workspaces in the specified resource group")
listByResourceGroup is ArmResourceListByParent<PipelineGroup>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,13 @@ interface DataTypes {
get is ArmResourceRead<DataType>;

@doc("Update data type resource.")
update is ArmCustomPatchAsync<DataType, Azure.ResourceManager.Foundations.ResourceUpdateModel<DataType, DataTypeProperties>>;
update is ArmCustomPatchAsync<
DataType,
Azure.ResourceManager.Foundations.ResourceUpdateModel<
DataType,
DataTypeProperties
>
>;

@doc("Delete data type resource.")
delete is ArmResourceDeleteWithoutOkAsync<DataType>;
Expand Down Expand Up @@ -579,7 +585,13 @@ interface DataProducts {
get is ArmResourceRead<DataProduct>;

@doc("Update data product resource.")
update is ArmCustomPatchAsync<DataProduct, Azure.ResourceManager.Foundations.ResourceUpdateModel<DataProduct, DataProductProperties>>;
update is ArmCustomPatchAsync<
DataProduct,
Azure.ResourceManager.Foundations.ResourceUpdateModel<
DataProduct,
DataProductProperties
>
>;

@doc("Delete data product resource.")
delete is ArmResourceDeleteWithoutOkAsync<DataProduct>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ interface AutonomousDatabaseBackups
)
update is ArmCustomPatchAsync<
AutonomousDatabaseBackup,
Azure.ResourceManager.Foundations.ResourceUpdateModel<AutonomousDatabaseBackup, AutonomousDatabaseBackupProperties>
Azure.ResourceManager.Foundations.ResourceUpdateModel<
AutonomousDatabaseBackup,
AutonomousDatabaseBackupProperties
>
>;

@example(
Expand Down
Loading

0 comments on commit aa29222

Please sign in to comment.