Skip to content

Instantly share code, notes, and snippets.

View weidongxu-microsoft's full-sized avatar

Weidong Xu weidongxu-microsoft

View GitHub Profile
@weidongxu-microsoft
weidongxu-microsoft / operation_group.md
Last active August 29, 2024 09:08
Follow-up about grouping operations
@weidongxu-microsoft
weidongxu-microsoft / operation_group.md
Last active June 21, 2024 09:06
Discussion about grouping operations

TCGC

TCGC, by default, groups operations via TypeSpec Interfaces.

If @operationGroup is specified in client.tsp, it would group operations from Interfaces with @operationGroup in client.tsp instead.

Management - brownfield

Swagger in Management usually groups many different resources in a single resource group, via "operationId".

@weidongxu-microsoft
weidongxu-microsoft / devbox.md
Last active February 1, 2024 09:04
DevBox method signature issue (DevCenter)
@weidongxu-microsoft
weidongxu-microsoft / service_operation_signature_discussion.md
Last active January 15, 2024 02:33
service_operation_signature_discussion

Generate client method signature which follow the serivce operation signature.

Different language may have different interpretation of the signature, based on best practise of that language.

Interprecate model as class

Model ClientOptions

@resource("resource-collection")
@weidongxu-microsoft
weidongxu-microsoft / lro_discussion.md
Last active April 10, 2023 05:42
LRO discussion for Java

Information and runtime behavior of the new design can be found at cadl-ranch PR

Runtime

Major difference in PUT.

  1. Response of the PUT is the Resource object, not the OperationStatus object.
  2. The last GET on Resource URL preferred to be omitted. The Resource object from the PUT is already the final result.

Major difference in POST.

@weidongxu-microsoft
weidongxu-microsoft / CustomizedApplicationTokenCredentials.java
Last active April 13, 2021 06:46
subclass of ApplicationTokenCredentials, with added method `clearCache`
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.azuresdktest;
import com.google.common.io.BaseEncoding;
import com.microsoft.aad.adal4j.AsymmetricKeyCredential;