Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Expand Up @@ -50,6 +50,22 @@ alias CertificateNameQuery2 = {
`certificate.name`?: string;
};

alias CertificateNameQuery3 = {
/**
* Time the certificate is created.
*/
@query("certificate.created")
certificateCreated?: utcDateTime;
};

alias CertificateNameQuery4 = {
/**
* Certificate last updated time.
*/
@query("certificate.lastUpdated")
certificateLastUpdated?: utcDateTime;
};

@armResourceOperations
interface CertificateResponses {
/**
Expand All @@ -61,9 +77,8 @@ interface CertificateResponses {
/**
* ETag of the certificate.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@header("If-Match")
`If-Match`?: string;
ifMatch?: string;
},
Error = ErrorDetails
>;
Expand All @@ -78,9 +93,8 @@ interface CertificateResponses {
/**
* ETag of the certificate. This is required to update an existing certificate, and ignored while creating a brand new certificate.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@header("If-Match")
`If-Match`?: string;
ifMatch?: string;
},
Response = ArmResourceUpdatedResponse<CertificateResponse>,
Error = ErrorDetails
Expand All @@ -95,60 +109,43 @@ interface CertificateResponses {
/**
* ETag of the certificate
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@header("If-Match")
`If-Match`: string;
ifMatch: string;

...CertificateNameQuery2;

/**
* Raw data within the certificate.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.rawBytes")
`certificate.rawBytes`?: bytes;
certificateRawBytes?: bytes;

/**
* Indicates if certificate has been verified by owner of the private key.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.isVerified")
`certificate.isVerified`?: boolean;
certificateIsVerified?: boolean;

/**
* A description that mentions the purpose of the certificate.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.purpose")
`certificate.purpose`?: CertificatePurpose;
certificatePurpose?: CertificatePurpose;

/**
* Time the certificate is created.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.created")
`certificate.created`?: utcDateTime;

/**
* Time the certificate is last updated.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.lastUpdated")
`certificate.lastUpdated`?: utcDateTime;
...CertificateNameQuery3;
...CertificateNameQuery4;

/**
* Indicates if the certificate contains a private key.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.hasPrivateKey")
`certificate.hasPrivateKey`?: boolean;
certificateHasPrivateKey?: boolean;

/**
* Random number generated to indicate Proof of Possession.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.nonce")
`certificate.nonce`?: string;
certificateNonce?: string;
},
Error = ErrorDetails
>;
Expand All @@ -173,60 +170,43 @@ interface CertificateResponses {
/**
* ETag of the certificate. This is required to update an existing certificate, and ignored while creating a brand new certificate.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@header("If-Match")
`If-Match`: string;
ifMatch: string;

...CertificateNameQuery1;

/**
* Raw data of certificate.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.rawBytes")
`certificate.rawBytes`?: bytes;
certificateRawBytes?: bytes;

/**
* Indicates if the certificate has been verified by owner of the private key.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.isVerified")
`certificate.isVerified`?: boolean;
certificateIsVerified?: boolean;

/**
* Description mentioning the purpose of the certificate.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.purpose")
`certificate.purpose`?: CertificatePurpose;

/**
* Certificate creation time.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.created")
`certificate.created`?: utcDateTime;
certificatePurpose?: CertificatePurpose;

/**
* Certificate last updated time.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.lastUpdated")
`certificate.lastUpdated`?: utcDateTime;
...CertificateNameQuery3;
...CertificateNameQuery4;

/**
* Indicates if the certificate contains private key.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.hasPrivateKey")
`certificate.hasPrivateKey`?: boolean;
certificateHasPrivateKey?: boolean;

/**
* Random number generated to indicate Proof of Possession.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.nonce")
`certificate.nonce`?: string;
certificateNonce?: string;
},
Error = ErrorDetails
>;
Expand All @@ -243,60 +223,43 @@ interface CertificateResponses {
/**
* ETag of the certificate.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@header("If-Match")
`If-Match`: string;
ifMatch: string;

...CertificateNameQuery1;

/**
* Raw data of certificate.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.rawBytes")
`certificate.rawBytes`?: bytes;
certificateRawBytes?: bytes;

/**
* Indicates if the certificate has been verified by owner of the private key.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.isVerified")
`certificate.isVerified`?: boolean;
certificateIsVerified?: boolean;

/**
* Describe the purpose of the certificate.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.purpose")
`certificate.purpose`?: CertificatePurpose;
certificatePurpose?: CertificatePurpose;

/**
* Certificate creation time.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.created")
`certificate.created`?: utcDateTime;

/**
* Certificate last updated time.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.lastUpdated")
`certificate.lastUpdated`?: utcDateTime;
...CertificateNameQuery3;
...CertificateNameQuery4;

/**
* Indicates if the certificate contains private key.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.hasPrivateKey")
`certificate.hasPrivateKey`?: boolean;
certificateHasPrivateKey?: boolean;

/**
* Random number generated to indicate Proof of Possession.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@query("certificate.nonce")
`certificate.nonce`?: string;
certificateNonce?: string;
},
Error = ErrorDetails
>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,54 +29,86 @@ using Microsoft.Devices;
// These ensure consistent operationId generation in the output

// CertificateResponses interface operations
@@clientLocation(CertificateResponses.get, "DpsCertificate");
@@clientLocation(CertificateResponses.createOrUpdate, "DpsCertificate");
@@clientLocation(CertificateResponses.delete, "DpsCertificate");
@@clientLocation(CertificateResponses.list, "DpsCertificate");
@@clientLocation(CertificateResponses.get, "DpsCertificate", "!csharp");
@@clientLocation(CertificateResponses.createOrUpdate,
"DpsCertificate",
"!csharp"
);
@@clientLocation(CertificateResponses.delete, "DpsCertificate", "!csharp");
@@clientLocation(CertificateResponses.list, "DpsCertificate", "!csharp");
@@clientLocation(CertificateResponses.generateVerificationCode,
"DpsCertificate"
"DpsCertificate",
"!csharp"
);
@@clientLocation(CertificateResponses.verifyCertificate,
"DpsCertificate",
"!csharp"
);
@@clientLocation(CertificateResponses.verifyCertificate, "DpsCertificate");

// GroupIdInformations interface operations
@@clientLocation(GroupIdInformations.getPrivateLinkResources, "IotDpsResource");
@@clientLocation(GroupIdInformations.getPrivateLinkResources,
"IotDpsResource",
"!csharp"
);
@@clientLocation(GroupIdInformations.listPrivateLinkResources,
"IotDpsResource"
"IotDpsResource",
"!csharp"
);

// PrivateEndpointConnections interface operations
@@clientLocation(PrivateEndpointConnections.getPrivateEndpointConnection,
"IotDpsResource"
"IotDpsResource",
"!csharp"
);
@@clientLocation(PrivateEndpointConnections.createOrUpdatePrivateEndpointConnection,
"IotDpsResource"
"IotDpsResource",
"!csharp"
);
@@clientLocation(PrivateEndpointConnections.deletePrivateEndpointConnection,
"IotDpsResource"
"IotDpsResource",
"!csharp"
);
@@clientLocation(PrivateEndpointConnections.listPrivateEndpointConnections,
"IotDpsResource"
"IotDpsResource",
"!csharp"
);

// ProvisioningServiceDescriptions interface operations
@@clientLocation(ProvisioningServiceDescriptions.get, "IotDpsResource");
@@clientLocation(ProvisioningServiceDescriptions.get,
"IotDpsResource",
"!csharp"
);
@@clientLocation(ProvisioningServiceDescriptions.createOrUpdate,
"IotDpsResource"
"IotDpsResource",
"!csharp"
);
@@clientLocation(ProvisioningServiceDescriptions.update,
"IotDpsResource",
"!csharp"
);
@@clientLocation(ProvisioningServiceDescriptions.delete,
"IotDpsResource",
"!csharp"
);
@@clientLocation(ProvisioningServiceDescriptions.update, "IotDpsResource");
@@clientLocation(ProvisioningServiceDescriptions.delete, "IotDpsResource");
@@clientLocation(ProvisioningServiceDescriptions.listByResourceGroup,
"IotDpsResource"
"IotDpsResource",
"!csharp"
);
@@clientLocation(ProvisioningServiceDescriptions.listBySubscription,
"IotDpsResource"
"IotDpsResource",
"!csharp"
);
@@clientLocation(ProvisioningServiceDescriptions.listValidSkus,
"IotDpsResource"
"IotDpsResource",
"!csharp"
);
@@clientLocation(ProvisioningServiceDescriptions.listKeys,
"IotDpsResource",
"!csharp"
);
@@clientLocation(ProvisioningServiceDescriptions.listKeys, "IotDpsResource");
@@clientLocation(ProvisioningServiceDescriptions.listKeysForKeyName,
"IotDpsResource"
"IotDpsResource",
"!csharp"
);

// ProvisioningServiceDescriptionOperations interface operations
Expand All @@ -88,13 +120,3 @@ using Microsoft.Devices;
@@clientLocation(IotDpsResourceOperationGroup.checkProvisioningServiceNameAvailability,
"IotDpsResource"
);

@@clientName(Microsoft.Devices.CertificateNameQuery1.`certificate.name`,
"certificate_name1",
"python"
);

@@clientName(Microsoft.Devices.CertificateNameQuery2.`certificate.name`,
"certificate_name1",
"python"
);
Loading
Loading