Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
d804a8d
- Convert OpenAPI v2 JSON to typespec + rearrange models to not all b…
May 13, 2025
c10c9f6
- Update 201 Created to not be Async.
May 13, 2025
efa5e0a
- Fix all doc warnings
May 13, 2025
262fec4
- Suppress no-response-body linter rules to match prior OpenAPI spec
May 13, 2025
297e08b
- Update provider actions + supress resource opreations lint rule sin…
May 13, 2025
b87bdda
- Supress patch envelope linter rule as to match prior api spec
May 13, 2025
1bc1e7b
- Revert tspconfig back to its original output file
May 13, 2025
93ea139
- Include typespec output updates
May 13, 2025
7f7ae8a
- remove resources.json
May 13, 2025
638ef34
Fix openapi operationids being changed
May 13, 2025
8fd3e42
Reset examples
May 13, 2025
1f593fc
Revert files to be based on what the autogenerated code does
May 14, 2025
536a03e
Update spec based on generated code to reduce braking changes.
May 14, 2025
130d195
Remove temp json
May 14, 2025
bca2522
Update operation ids
May 14, 2025
f2fe391
Update the json
May 14, 2025
fc0efc9
Remove lintdiff violations since the underlying model is readOnly
May 14, 2025
b87c941
Vibe code my problems away
May 14, 2025
04884aa
Vibe code my problems away -- breaking changes for model names (sans …
May 14, 2025
8dd69b3
Change everything to make use of the proper Schemas object
May 14, 2025
bd09f50
Undo name change of schemas object.
May 15, 2025
3e4724d
Fix spreading of Flow/Connection Properties + Non templated Tracked R…
May 15, 2025
b321151
Rerun typespec compile to include changes in OpenAPI Spec v2
May 15, 2025
025bcc6
Pendingflow use flow not connection.
May 15, 2025
382abe8
Switch over some Enums to match their old types.
May 15, 2025
0a697d8
Switch over more enums to match their old type names.
May 15, 2025
7275eb1
Switch over the rest of the possible enums to match their old type na…
May 15, 2025
8e098e0
Update docs.
May 16, 2025
a4a03d6
Update examples to have one for every operation.
May 16, 2025
d41a0b7
Prettier the examples.
May 16, 2025
7f1aa17
Remove some more ref changes
May 16, 2025
658fbcd
Remove some more ref changes2
May 16, 2025
905ccd3
Remove extra version file from prior breakout.
May 16, 2025
5509df2
Prettier the resources.json
May 16, 2025
b58f25f
Remove resources.json
May 16, 2025
fef92e6
Suppress LintDiff violation since an inline model became a ref'd defi…
May 16, 2025
704be0e
Maybe figured out the correct way to suppress this.
May 16, 2025
9e7050a
Add newline at EOF to ensure git diff matches
May 16, 2025
58f609b
Maybe figured out the correct way to suppress this. try 2
May 16, 2025
018c955
Update verbiage of supression description
May 16, 2025
0a4641d
Fix double newline at EOF
May 16, 2025
754c33d
Remove extra json path
May 16, 2025
9badf34
Remove fixes for caps.
May 19, 2025
72c6998
Correct PipelineConnection model to ensure that things are ReadOnly
May 19, 2025
c6ccd56
Update supression to match new names with Typespec visibility templates.
May 19, 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
Prev Previous commit
Next Next commit
Fix spreading of Flow/Connection Properties + Non templated Tracked R…
…esource. + Update Sync operation to be LRO (as it was prior).
  • Loading branch information
Alex Riedel committed May 15, 2025
commit 3e4724dfd6bd939456aa84c85f8fe1342ea6894a
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ interface Connections {
/**
* Creates or updates the connection resource.
*/
createOrUpdate is ArmResourceCreateOrReplaceSync<Connection>;
createOrUpdate is ArmResourceCreateOrReplaceAsync<Connection>;

/**
* Updates the connection resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ interface Flows {
/**
* Creates or updates the flow resource.
*/
createOrUpdate is ArmResourceCreateOrReplaceSync<Flow>;
createOrUpdate is ArmResourceCreateOrReplaceAsync<Flow>;

/**
* Updates the flow resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1181,366 +1181,21 @@ model SetSourceAddresses {
/**
* Pending connection object
*/
// TODO: Next version can spread ...ConnectionProperties, cannot spread in this version due to "BreakingChange" in models.
// TODO: Next version can possibly spread ...Azure.ResourceManager.TrackedResource<Connection>, cannot spread in this version due to "BreakingChange" in models.
model PendingConnection {
/**
* Pipeline to use to transfer data
*/
pipeline: string;

/**
* Direction of data movement
*/
direction?: Direction;

/**
* Justification for the connection request
*/
justification?: string;

/**
* Status of the connection
*/
@visibility(Lifecycle.Read)
status?: ConnectionStatus;

/**
* Force disablement status of the current connection
*/
@visibility(Lifecycle.Read)
forceDisabledStatus?: ForceDisabledStatus[];

/**
* Reason for status
*/
@visibility(Lifecycle.Read)
statusReason?: string;

/**
* Link status of the current connection
*/
@visibility(Lifecycle.Read)
linkStatus?: LinkStatus;

/**
* Resource ID of the linked connection
*/
@visibility(Lifecycle.Read)
linkedConnectionId?: string;

/**
* The flow types being requested for this connection
*/
flowTypes?: FlowType[];

/**
* Requirement ID of the connection
*/
requirementId?: string;

/**
* Subscription ID to link cloud subscriptions together
*/
remoteSubscriptionId?: string;

/**
* Approver of this connection request
*/
@visibility(Lifecycle.Read)
approver?: string;

/**
* PIN to link requests together
*/
pin?: string;

/**
* The timestamp that this connection request was submitted at
*/
@visibility(Lifecycle.Read)
dateSubmitted?: utcDateTime;

/**
* The primary contact for this connection request
*/
primaryContact?: string;

/**
* The secondary contacts for this connection request
*/
secondaryContacts?: string[];

/**
* Provisioning state of the connection
*/
@visibility(Lifecycle.Read)
provisioningState?: ProvisioningState;

/**
* The policies for this connection
*/
policies?: string[];

/**
* The schemas for this connection
*/
schemas?: Schema[];

/**
* The schema URIs for this connection
*/
schemaUris?: url[];

/**
* The resource-specific properties for this resource.
*/
properties?: Connection;

...ArmTagsProperty;

/**
* The geo-location where the resource lives
*/
@visibility(Lifecycle.Read, Lifecycle.Create)
location: string;

/**
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
@visibility(Lifecycle.Read)
id?: Azure.Core.armResourceIdentifier;

/**
* The name of the resource
*/
@visibility(Lifecycle.Read)
name?: string;

/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
@visibility(Lifecycle.Read)
type?: string;

/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@visibility(Lifecycle.Read)
systemData?: SystemData;

/**
* Subscription ID of the pending connection.
*/
@visibility(Lifecycle.Read)
subscriptionId?: string;

...ConnectionProperties;
...Azure.ResourceManager.CommonTypes.TrackedResource;
}

/**
* Pending flow object
*/
// TODO: Next version can spread ...ConnectionProperties, cannot spread in this version due to "BreakingChange" in models.
// TODO: Next version can possibly spread ...Azure.ResourceManager.TrackedResource<Flow>, cannot spread in this version due to "BreakingChange" in models.
model PendingFlow {
/**
* The connection associated with this flow
*/
connection?: SelectedResource;

/**
* Dataflow GUID associated with this flow
*/
@visibility(Lifecycle.Read)
flowId?: string;

/**
* AME, PME, or TORUS only! AKV Chain Containing SAS Token
*/
keyVaultUri?: string;

/**
* Link status of the current flow
*/
@visibility(Lifecycle.Read)
linkStatus?: LinkStatus;

/**
* Resource ID of the linked flow
*/
@visibility(Lifecycle.Read)
linkedFlowId?: string;

/**
* Status of the current flow
*/
status?: FlowStatus;

/**
* Force disablement status of the current flow
*/
@visibility(Lifecycle.Read)
forceDisabledStatus?: ForceDisabledStatus[];

/**
* Storage Account
*/
storageAccountName?: string;

/**
* Storage Account ID
*/
storageAccountId?: Azure.Core.armResourceIdentifier<[
{
type: "Microsoft.Storage/storageAccounts";
}
]>;

/**
* Storage Container Name
*/
storageContainerName?: string;

/**
* Storage Table Name
*/
storageTableName?: string;

/**
* Service Bus Queue ID
*/
serviceBusQueueId?: Azure.Core.armResourceIdentifier<[
{
type: "Microsoft.Storage/namespaces/queues";
}
]>;

/**
* The flow type for this flow
*/
flowType?: FlowType;

/**
* Transfer Storage Blobs or Tables
*/
dataType?: DataType;

/**
* Provisioning state of the flow
*/
@visibility(Lifecycle.Read)
provisioningState?: ProvisioningState;

/**
* The policies for this flow
*/
policies?: string[];

/**
* The selected schema for this flow
*/
schema?: Schema;

/**
* The messaging options for this flow
*/
messagingOptions?: MessagingOptions;

/**
* The API Flow configuration options for Azure Data Transfer API Flow type.
*/
apiFlowOptions?: ApiFlowOptions;

/**
* The URI to the customer managed key for this flow
*/
customerManagedKeyVaultUri?: url;

/**
* The flow stream identifier
*/
streamId?: string;

/**
* The protocol of the stream
*/
streamProtocol?: StreamProtocol;

/**
* The latency of the stream in milliseconds
*/
streamLatency?: int64;

/**
* The passphrase used for SRT streams
*/
passphrase?: string;

/**
* The source IP address and CIDR ranges of the stream
*/
sourceAddresses?: StreamSourceAddresses;

/**
* The destination endpoints of the stream
*/
destinationEndpoints?: string[];

/**
* The destination endpoint ports of the stream
*/
destinationEndpointPorts?: int64[];

/**
* Event Hub ID
*/
eventHubId?: Azure.Core.armResourceIdentifier<[
{
type: "Microsoft.EventHub/namespaces/eventhubs";
}
]>;

/**
* Event Hub Consumer Group
*/
consumerGroup?: string;

/**
* The resource-specific properties for this resource.
*/
properties?: Flow;

...ArmTagsProperty;

/**
* The geo-location where the resource lives
*/
@visibility(Lifecycle.Read, Lifecycle.Create)
location: string;

/**
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
@visibility(Lifecycle.Read)
id?: Azure.Core.armResourceIdentifier;

/**
* The name of the resource
*/
@visibility(Lifecycle.Read)
name?: string;

/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
@visibility(Lifecycle.Read)
type?: string;

/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@visibility(Lifecycle.Read)
systemData?: SystemData;

/**
* Subscription ID of the pending flow.
*/
Expand All @@ -1552,6 +1207,9 @@ model PendingFlow {
*/
@visibility(Lifecycle.Read)
connectionId?: string;

...ConnectionProperties;
...Azure.ResourceManager.CommonTypes.TrackedResource;
}

/**
Expand Down
Loading
Loading