Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
b675ffe
convert
mcgallan Aug 5, 2025
b241f30
compile
mcgallan Aug 5, 2025
3503187
diff
mcgallan Aug 5, 2025
4344680
update
mcgallan Aug 6, 2025
00e11dc
Merge remote-tracking branch 'upstream/main' into convert-dbforpostgr…
mcgallan Aug 6, 2025
62a8f6d
update
mcgallan Aug 6, 2025
2a4aff0
update
mcgallan Aug 6, 2025
dbbf5e3
Merge remote-tracking branch 'upstream/main' into convert-dbforpostgr…
mcgallan Aug 7, 2025
0d7e561
Merge remote-tracking branch 'upstream/main' into convert-dbforpostgr…
mcgallan Aug 8, 2025
a7a2bfa
update
mcgallan Aug 8, 2025
4d1759f
update
mcgallan Aug 8, 2025
b56652a
foramt update
mcgallan Aug 8, 2025
14e5f5b
update spell check
mcgallan Aug 8, 2025
f60e2ab
Merge remote-tracking branch 'upstream/main' into convert-dbforpostgr…
mcgallan Aug 11, 2025
c8feeaa
update
mcgallan Aug 11, 2025
553655f
delete operationid
mcgallan Aug 11, 2025
adfe878
delete diff folder
mcgallan Aug 11, 2025
9f91a9f
update tspconfig
mcgallan Aug 11, 2025
038be54
update
mcgallan Aug 11, 2025
5842903
update readme
mcgallan Aug 12, 2025
5534cd5
Merge branch 'main' into convert-dbforpostgressql
mcgallan Aug 12, 2025
36332ae
remove consumes
mcgallan Aug 12, 2025
85dd257
fix empty files
mcgallan Aug 15, 2025
ffd460b
Merge remote-tracking branch 'upstream/main' into convert-dbforpostgr…
mcgallan Aug 18, 2025
f76048e
update
mcgallan Aug 18, 2025
b3521dc
Merge branch 'main' into convert-dbforpostgressql
mcgallan Aug 22, 2025
8571851
update PrivateEndpointConnection.tsp
mcgallan Aug 22, 2025
8a22137
Merge branch 'main' into convert-dbforpostgressql
mcgallan Sep 24, 2025
70f5ef6
remove Foundations.ArmCreateOperation in AdministratorMicrosoftEntra
mcgallan Sep 24, 2025
0b5d994
remove legacy.tsp
mcgallan Sep 24, 2025
c3adb5f
fix
mcgallan Sep 25, 2025
72a2dfe
update tspconfig
mcgallan Sep 25, 2025
37a0c23
fix description and headers
mcgallan Sep 25, 2025
fbcb2a4
delete
mcgallan Sep 25, 2025
300668a
remove private decorator
mcgallan Sep 25, 2025
a7ceb32
Merge branch 'main' into convert-dbforpostgressql
mcgallan Oct 13, 2025
72716c6
generate08-01
mcgallan Oct 14, 2025
e247b42
update
mcgallan Oct 14, 2025
b5c3180
update
mcgallan Oct 14, 2025
064b7d6
prettier check
mcgallan Oct 15, 2025
849fcff
delete
mcgallan Oct 15, 2025
8f69d06
Merge branch 'main' into convert-dbforpostgressql
mcgallan Oct 21, 2025
8b2a4a6
update readme
mcgallan Oct 21, 2025
821fefa
fix enum and secret problem
mcgallan Oct 23, 2025
4820efe
fix java config
weidongxu-microsoft Oct 24, 2025
f02374b
fix java config
weidongxu-microsoft Oct 24, 2025
441142c
no point to customize
weidongxu-microsoft Oct 24, 2025
69d061d
Merge branch 'main' into convert-dbforpostgressql
mcgallan Nov 4, 2025
88ce525
Merge branch 'convert-dbforpostgressql' of https://github.com/mcgalla…
mcgallan Nov 4, 2025
222efc5
Merge branch 'convert-dbforpostgressql' of https://github.com/mcgalla…
mcgallan Nov 4, 2025
974f60f
mitigate breaking changes
jliusan Nov 4, 2025
34c2367
Merge branch 'convert-dbforpostgressql' of https://github.com/mcgalla…
jliusan Nov 4, 2025
22f2750
update
mcgallan Nov 4, 2025
b7e17bc
fix comments
mcgallan Nov 7, 2025
a0a5958
fix conflict
jliusan Nov 10, 2025
89c65ac
Merge remote-tracking branch 'upstream/main' into convert-dbforpostgr…
mcgallan Nov 11, 2025
e975002
update
mcgallan Nov 11, 2025
69be6fa
Update client.tsp
ChenxiJiang333 Nov 18, 2025
de1c013
Merge remote-tracking branch 'upstream/main' into convert-dbforpostgr…
mcgallan Nov 27, 2025
0557478
update
mcgallan Nov 28, 2025
d129f48
Update tspconfig.yaml
weidongxu-microsoft Nov 28, 2025
b8c684f
update js sdk client name
v-jiaodi Nov 28, 2025
d59336a
Merge branch 'convert-dbforpostgressql' of https://github.com/mcgalla…
v-jiaodi Nov 28, 2025
12221d5
Merge branch 'main' into convert-dbforpostgressql
weidongxu-microsoft Dec 3, 2025
fc6c9fd
fix
weidongxu-microsoft Dec 3, 2025
e7998ad
Merge branch 'main' into convert-dbforpostgressql
pshao25 Dec 11, 2025
ba169e5
add suppress
mcgallan Dec 11, 2025
929be76
delete tags
mcgallan Dec 11, 2025
2748fb0
update client name
v-jiaodi Dec 12, 2025
bc11717
update
v-jiaodi Dec 12, 2025
b7f9e94
update
v-jiaodi Dec 12, 2025
44be184
Revert "delete tags"
mcgallan Dec 15, 2025
724e7ff
Merge branch 'main' into convert-dbforpostgressql
pshao25 Dec 17, 2025
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-azure-resource-manager";
import "@typespec/openapi";
import "@typespec/rest";
import "./models.tsp";
import "./Server.tsp";

using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;

namespace Microsoft.DBforPostgreSQL;
/**
* Server administrator associated to a Microsoft Entra principal.
*/
@parentResource(Server)
model AdministratorMicrosoftEntra
is Azure.ResourceManager.ProxyResource<
AdministratorMicrosoftEntraProperties,
false
> {
...ResourceNameParameter<
Resource = AdministratorMicrosoftEntra,
KeyName = "objectId",
SegmentName = "administrators",
NamePattern = ""
>;
}

@armResourceOperations
interface AdministratorMicrosoftEntras {
/**
* Gets information about a server administrator associated to a Microsoft Entra principal.
*/
get is ArmResourceRead<AdministratorMicrosoftEntra>;

/**
* Creates a new server administrator associated to a Microsoft Entra principal.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@Azure.Core.useFinalStateVia("azure-async-operation")
@put
createOrUpdate is Legacy.CreateOrReplaceAsync<
AdministratorMicrosoftEntra,
Request = AdministratorMicrosoftEntraAdd,
Response = ArmAcceptedLroResponse<LroHeaders = ArmCombinedLroHeaders<FinalResult = AdministratorMicrosoftEntra> &
Azure.Core.Foundations.RetryAfterHeader>
>;

/**
* Deletes an existing server administrator associated to a Microsoft Entra principal.
*/
delete is ArmResourceDeleteWithoutOkAsync<
AdministratorMicrosoftEntra,
Response = ArmDeleteAcceptedLroResponse<LroHeaders = ArmCombinedLroHeaders &
Azure.Core.Foundations.RetryAfterHeader> | ArmDeletedNoContentResponse
>;

/**
* List all server administrators associated to a Microsoft Entra principal.
*/
listByServer is ArmResourceListByParent<
AdministratorMicrosoftEntra,
Response = ArmResponse<AdministratorMicrosoftEntraList>
>;
}

@@doc(AdministratorMicrosoftEntra.name,
"Object identifier of the Microsoft Entra principal."
);
@@doc(AdministratorMicrosoftEntra.properties,
"Properties of a server administrator associated to a Microsoft Entra principal."
);
@@doc(AdministratorMicrosoftEntras.createOrUpdate::parameters.resource,
"Required parameters for adding a server administrator associated to a Microsoft Entra principal."
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-azure-resource-manager";
import "@typespec/openapi";
import "@typespec/rest";
import "./models.tsp";
import "./Server.tsp";

using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;

namespace Microsoft.DBforPostgreSQL;
/**
* Advanced threat protection settings of the server.
*/
@parentResource(Server)
model AdvancedThreatProtectionSettingsModel
is Azure.ResourceManager.ProxyResource<AdvancedThreatProtectionSettingsProperties> {
...ResourceNameParameter<
Resource = AdvancedThreatProtectionSettingsModel,
KeyName = "threatProtectionName",
SegmentName = "advancedThreatProtectionSettings",
NamePattern = "",
Type = ThreatProtectionName
>;
}

#suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@armResourceOperations
interface AdvancedThreatProtectionSettingsModels {
/**
* Gets state of advanced threat protection settings for a server.
*/
get is ArmResourceRead<AdvancedThreatProtectionSettingsModel>;

/**
* Creates or updates a server's Advanced Threat Protection settings.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@Azure.Core.useFinalStateVia("azure-async-operation")
createOrUpdate is ArmResourceCreateOrReplaceAsync<
AdvancedThreatProtectionSettingsModel,
Response = ArmAcceptedLroResponse<LroHeaders = ArmCombinedLroHeaders<FinalResult = AdvancedThreatProtectionSettingsModel> &
Azure.Core.Foundations.RetryAfterHeader>
>;

/**
* Lists state of advanced threat protection settings for a server.
*/
listByServer is ArmResourceListByParent<
AdvancedThreatProtectionSettingsModel,
Response = ArmResponse<AdvancedThreatProtectionSettingsList>
>;
}

@@doc(AdvancedThreatProtectionSettingsModel.name,
"Name of the advanced threat protection settings."
);
@@doc(AdvancedThreatProtectionSettingsModel.properties,
"Advanced threat protection properties."
);
@@doc(AdvancedThreatProtectionSettingsModels.createOrUpdate::parameters.resource,
"The Advanced Threat Protection state for the server."
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-azure-resource-manager";
import "@typespec/openapi";
import "@typespec/rest";
import "./models.tsp";
import "./Server.tsp";

using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;

namespace Microsoft.DBforPostgreSQL;
/**
* Properties of a backup.
*/
@parentResource(Server)
model BackupAutomaticAndOnDemand
is Azure.ResourceManager.ProxyResource<BackupAutomaticAndOnDemandProperties> {
...ResourceNameParameter<
Resource = BackupAutomaticAndOnDemand,
KeyName = "backupName",
SegmentName = "backups",
NamePattern = "^[-\\w\\._]+$"
>;
}

@armResourceOperations
interface BackupAutomaticAndOnDemands {
/**
* Gets information of an on demand backup, given its name.
*/
get is ArmResourceRead<BackupAutomaticAndOnDemand>;

// FIXME: (ArmResourceCreateOrReplace): ArmResourceCreateOrReplaceAsync/ArmResourceCreateOrReplaceSync should have a body parameter.
/**
* Creates an on demand backup of a server.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@Azure.Core.useFinalStateVia("azure-async-operation")
create is Legacy.CreateOrReplaceAsync<
BackupAutomaticAndOnDemand,
Request = void,
Response = ArmAcceptedLroResponse<LroHeaders = ArmCombinedLroHeaders<FinalResult = BackupAutomaticAndOnDemand> &
Azure.Core.Foundations.RetryAfterHeader>
>;

/**
* Deletes a specific backup, given its name.
*/
delete is ArmResourceDeleteWithoutOkAsync<
BackupAutomaticAndOnDemand,
Response = ArmDeleteAcceptedLroResponse<LroHeaders = ArmCombinedLroHeaders &
Azure.Core.Foundations.RetryAfterHeader> | ArmDeletedNoContentResponse
>;

/**
* Lists all available backups of a server.
*/
listByServer is ArmResourceListByParent<
BackupAutomaticAndOnDemand,
Response = ArmResponse<BackupAutomaticAndOnDemandList>
>;
}

@@maxLength(BackupAutomaticAndOnDemand.name, 128);
@@minLength(BackupAutomaticAndOnDemand.name, 1);
@@doc(BackupAutomaticAndOnDemand.name, "Name of the backup.");
@@doc(BackupAutomaticAndOnDemand.properties, "Properties of a backup.");
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-azure-resource-manager";
import "@typespec/openapi";
import "@typespec/rest";
import "./models.tsp";
import "./Server.tsp";

using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;

namespace Microsoft.DBforPostgreSQL;
/**
* Response for the LTR backup Operation API call
*/
@parentResource(Server)
model BackupsLongTermRetentionOperation
is Azure.ResourceManager.ProxyResource<LtrBackupOperationResponseProperties> {
...ResourceNameParameter<
Resource = BackupsLongTermRetentionOperation,
KeyName = "backupName",
SegmentName = "ltrBackupOperations",
NamePattern = "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*"
>;
}

alias BackupsLongTermRetentionOperationAlias = Azure.ResourceManager.Legacy.LegacyOperations<
{
...ApiVersionParameter;
...SubscriptionIdParameter;
...ResourceGroupParameter;
...Azure.ResourceManager.Legacy.Provider<BackupsLongTermRetentionOperation>;
...ParentKeysOf<BackupsLongTermRetentionOperation>;
},
{
/**
* The name of the backup.
*/
@path
@segment("ltrBackupOperations")
@minLength(1)
@maxLength(128)
@pattern("^[-\\w\\._]+$")
backupName: string;
},
ErrorType = ErrorResponse
>;

@armResourceOperations
interface BackupsLongTermRetentionOperations {
/**
* Gets the results of a long retention backup operation for a server.
*/
get is BackupsLongTermRetentionOperationAlias.Read<BackupsLongTermRetentionOperation>;

/**
* Lists the results of the long term retention backup operations for a server.
*/
listByServer is ArmResourceListByParent<
BackupsLongTermRetentionOperation,
Response = ArmResponse<LtrServerBackupOperationList>
>;
}

@@doc(BackupsLongTermRetentionOperation.name, "The name of the backup.");
@@doc(BackupsLongTermRetentionOperation.properties,
"Long Term Retention Backup Operation Resource Properties"
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-azure-resource-manager";
import "@typespec/openapi";
import "@typespec/rest";
import "./models.tsp";
import "./Server.tsp";

using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Azure.Core;

namespace Microsoft.DBforPostgreSQL;
/**
* Configuration (also known as server parameter).
*/
@parentResource(Server)
model Configuration
is Azure.ResourceManager.ProxyResource<ConfigurationProperties> {
...ResourceNameParameter<
Resource = Configuration,
KeyName = "configurationName",
SegmentName = "configurations",
NamePattern = "^[-\\w\\._]+$"
>;
}

#suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@armResourceOperations
interface Configurations {
/**
* Gets information about a specific configuration (also known as server parameter) of a server.
*/
get is ArmResourceRead<Configuration>;

/**
* Updates, using Put verb, the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@useFinalStateVia("azure-async-operation")
@put
put is Azure.ResourceManager.Legacy.CreateOrReplaceAsync<
Configuration,
ConfigurationForUpdate,
Response = ArmAcceptedLroResponse<LroHeaders = ArmCombinedLroHeaders<FinalResult = Configuration> &
Azure.Core.Foundations.RetryAfterHeader>
>;

/**
* Updates the value assigned to a specific modifiable configuration (also known as server parameter) of a server.
*/
@patch(#{ implicitOptionality: false })
@useFinalStateVia("azure-async-operation")
update is ArmCustomPatchAsync<
Configuration,
PatchModel = ConfigurationForUpdate,
Response = ArmAcceptedLroResponse<LroHeaders = ArmCombinedLroHeaders<FinalResult = Configuration> &
Azure.Core.Foundations.RetryAfterHeader>
>;

/**
* Lists all configurations (also known as server parameters) of a server.
*/
listByServer is ArmResourceListByParent<
Configuration,
Response = ArmResponse<ConfigurationList>
>;
}

@@maxLength(Configuration.name, 256);
@@minLength(Configuration.name, 1);
@@doc(Configuration.name,
"Name of the configuration (also known as server parameter)."
);
@@doc(Configuration.properties,
"Properties of a configuration (also known as server parameter)."
);
@@doc(Configurations.put::parameters.resource,
"Parameters required to update the value of a specific modifiable configuration (also known as server parameter)."
);
@@doc(Configurations.update::parameters.properties,
"Parameters required to update the value of a specific modifiable configuration (also known as server parameter)."
);
Loading
Loading