Skip to content

Latest commit

 

History

History
427 lines (305 loc) · 13.1 KB

File metadata and controls

427 lines (305 loc) · 13.1 KB

HybridCompute

see https://aka.ms/autorest

This is the AutoRest configuration file for HybridCompute RP.


Getting Started

To build the SDK for HybridCompute, simply Install AutoRest and in this folder, run:

autorest

To see additional help and options, run:

autorest --help


Configuration

Basic Information

These are the global settings for the HybridCompute API.

openapi-type: arm
tag: package-preview-2024-11
directive:
  - from: HybridCompute.json
    where: $.definitions.MachineInstallPatchesParameters.properties.maximumDuration
    transform: '$[''format''] = ''duration'''
  - from: HybridCompute.json
    where: $.definitions.MachineUpdateProperties.properties.privateLinkScopeResourceId
    transform: '$[''format''] = ''arm-id'''
  - from: HybridCompute.json
    where: $.definitions.MachineProperties.properties.privateLinkScopeResourceId
    transform: '$[''format''] = ''arm-id'''
  - from: HybridCompute.json
    where: $.definitions.AgentUpgrade.properties.correlationId
    transform: '$[''format''] = ''uuid'''
  - from: HybridCompute.json
    where: $.definitions.AgentUpgrade.properties.lastAttemptTimestamp
    transform: '$[''format''] = ''date-time'''
  - from: HybridCompute.json
    where: $.definitions.MachineProperties.properties.vmUuid
    transform: '$[''format''] = ''uuid'''
  - from: HybridCompute.json
    where: $.definitions.MachineProperties.properties.vmId
    transform: '$[''format''] = ''uuid'''
  - from: HybridCompute.json
    where: $.definitions.MachineUpdateProperties.properties.parentClusterResourceId
    transform: '$[''format''] = ''arm-id'''
  - from: HybridCompute.json
    where: $.definitions.MachineProperties.properties.parentClusterResourceId
    transform: '$[''format''] = ''arm-id'''
  - from: HybridCompute.json
    where: $.definitions.MachineAssessPatchesResult.properties.assessmentActivityId
    transform: '$[''format''] = ''uuid'''
  - where:
      subject: NetworkProfile
    remove: true


  # internal operations
  - remove-operation: AgentVersion_List
  - remove-operation: AgentVersion_Get
  # we don't use them, remove in the future
  - remove-operation: HybridIdentityMetadata_Get
  - remove-operation: HybridIdentityMetadata_ListByMachines
  # we want to retire them and use setting operations instead
  - remove-operation: NetworkConfigurations_Get
  - remove-operation: NetworkConfigurations_Update
  - remove-operation: NetworkConfigurations_CreateOrUpdate
  # we don't want enable PATCH for run command
  - remove-operation: MachineRunCommands_Update

Tag: package-preview-2024-11

These settings apply only when --tag=package-preview-2024-11 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/preview/2024-11-10-preview/HybridCompute.json
  - Microsoft.HybridCompute/preview/2024-11-10-preview/privateLinkScopes.json

Tag: package-preview-2024-09

These settings apply only when --tag=package-preview-2024-09 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/preview/2024-09-10-preview/HybridCompute.json
  - Microsoft.HybridCompute/preview/2024-09-10-preview/privateLinkScopes.json

Tag: package-preview-2024-07

These settings apply only when --tag=package-preview-2024-07 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/preview/2024-07-31-preview/HybridCompute.json
  - Microsoft.HybridCompute/preview/2024-07-31-preview/privateLinkScopes.json

Tag: package-2024-07

These settings apply only when --tag=package-2024-07 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/stable/2024-07-10/HybridCompute.json
  - Microsoft.HybridCompute/stable/2024-07-10/privateLinkScopes.json

Tag: package-preview-2024-05

These settings apply only when --tag=package-preview-2024-05 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/preview/2024-05-20-preview/HybridCompute.json
  - Microsoft.HybridCompute/preview/2024-05-20-preview/privateLinkScopes.json

Tag: package-preview-2024-03

These settings apply only when --tag=package-preview-2024-03 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/preview/2024-03-31-preview/HybridCompute.json
  - Microsoft.HybridCompute/preview/2024-03-31-preview/privateLinkScopes.json

Tag: package-preview-2023-10

These settings apply only when --tag=package-preview-2023-10 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/preview/2023-10-03-preview/HybridCompute.json
  - Microsoft.HybridCompute/preview/2023-10-03-preview/privateLinkScopes.json

Tag: package-preview-2023-06

These settings apply only when --tag=package-preview-2023-06 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/preview/2023-06-20-preview/HybridCompute.json
  - Microsoft.HybridCompute/preview/2023-06-20-preview/privateLinkScopes.json

Tag: package-preview-2023-03

These settings apply only when --tag=package-preview-2023-03 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/preview/2023-03-15-preview/HybridCompute.json
  - Microsoft.HybridCompute/preview/2023-03-15-preview/privateLinkScopes.json

Tag: package-2022-12

These settings apply only when --tag=package-2022-12 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/stable/2022-12-27/HybridCompute.json
  - Microsoft.HybridCompute/stable/2022-12-27/privateLinkScopes.json

Tag: package-preview-2022-12

These settings apply only when --tag=package-preview-2022-12 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/preview/2022-12-27-preview/HybridCompute.json
  - Microsoft.HybridCompute/preview/2022-12-27-preview/privateLinkScopes.json

Tag: package-2022-11

These settings apply only when --tag=package-2022-11 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/stable/2022-11-10/HybridCompute.json
  - Microsoft.HybridCompute/stable/2022-11-10/privateLinkScopes.json

Tag: package-preview-2022-08

These settings apply only when --tag=package-preview-2022-08 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/preview/2022-08-11-preview/HybridCompute.json
  - Microsoft.HybridCompute/preview/2022-08-11-preview/privateLinkScopes.json

Tag: package-preview-2022-05

These settings apply only when --tag=package-preview-2022-05 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/preview/2022-05-10-preview/HybridCompute.json
  - Microsoft.HybridCompute/preview/2022-05-10-preview/privateLinkScopes.json

Tag: package-2022-03

These settings apply only when --tag=package-2022-03 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/stable/2022-03-10/HybridCompute.json
  - Microsoft.HybridCompute/stable/2022-03-10/privateLinkScopes.json

Tag: package-preview-2021-12

These settings apply only when --tag=package-preview-2021-12 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/preview/2021-12-10-preview/HybridCompute.json
  - Microsoft.HybridCompute/preview/2021-12-10-preview/privateLinkScopes.json

Tag: package-preview-2021-06

These settings apply only when --tag=package-preview-2021-06 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/preview/2021-06-10-preview/HybridCompute.json
  - Microsoft.HybridCompute/preview/2021-06-10-preview/privateLinkScopes.json

Tag: package-preview-2021-05

These settings apply only when --tag=package-preview-2021-05 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/preview/2021-05-17-preview/HybridCompute.json
  - Microsoft.HybridCompute/preview/2021-05-17-preview/privateLinkScopes.json

Tag: package-2021-05

These settings apply only when --tag=package-2021-05 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/stable/2021-05-20/HybridCompute.json
  - Microsoft.HybridCompute/stable/2021-05-20/privateLinkScopes.json

Tag: package-preview-2021-04

These settings apply only when --tag=package-preview-2021-04 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/preview/2021-04-22-preview/HybridCompute.json
  - Microsoft.HybridCompute/preview/2021-04-22-preview/privateLinkScopes.json

Tag: package-preview-2021-03

These settings apply only when --tag=package-preview-2021-03 is specified on the command line.

input-file:
  - Microsoft.HybridCompute/preview/2021-03-25-preview/HybridCompute.json
  - Microsoft.HybridCompute/preview/2021-03-25-preview/privateLinkScopes.json

Tag: package-preview-2021-01

These settings apply only when --tag=package-preview-2021-01 is specified on the command line.

input-file:
- Microsoft.HybridCompute/preview/2021-01-28-preview/HybridCompute.json
- Microsoft.HybridCompute/preview/2021-01-28-preview/privateLinkScopes.json

Tag: package-preview-2020-08

These settings apply only when --tag=package-preview-2020-08 is specified on the command line.

input-file:
- Microsoft.HybridCompute/preview/2020-08-15-preview/HybridCompute.json
- Microsoft.HybridCompute/preview/2020-08-15-preview/privateLinkScopes.json

Tag: package-2019-03

These settings apply only when --tag=package-2019-03 is specified on the command line.

input-file:
- Microsoft.HybridCompute/preview/2019-03-18/HybridCompute.json

Tag: package-2019-08

These settings apply only when --tag=package-2019-08 is specified on the command line.

input-file:
- Microsoft.HybridCompute/preview/2019-08-02/HybridCompute.json

Tag: package-2019-12

These settings apply only when --tag=package-2019-12 is specified on the command line.

input-file:
- Microsoft.HybridCompute/stable/2019-12-12/HybridCompute.json

Tag: package-2020-07-30-preview

These settings apply only when --tag=package-2020-07-30-preview is specified on the command line.

input-file:
- Microsoft.HybridCompute/preview/2020-07-30-preview/HybridCompute.json

Tag: package-2020-08-02

These settings apply only when --tag=package-2020-08-02 is specified on the command line.

input-file:
- Microsoft.HybridCompute/stable/2020-08-02/HybridCompute.json

Code Generation

Swagger to SDK

This section describes what SDK should be generated by the automatic system. This is not used by Autorest itself.

swagger-to-sdk:
  - repo: azure-sdk-for-net-track2
  - repo: azure-sdk-for-python
  - repo: azure-sdk-for-java
  - repo: azure-sdk-for-go
  - repo: azure-sdk-for-js
  - repo: azure-cli-extensions
  - repo: azure-resource-manager-schemas
  - repo: azure-powershell

az CLI

See configuration in readme.az.md and readme.cli.md

C#

See configuration in readme.csharp.md

Go

See configuration in readme.go.md

Java

See configuration in readme.java.md

PowerShell

See configuration in the Azure PowerShell repo

Python

See configuration in readme.python.md

Ruby

See configuration in readme.ruby.md

TypeScript

See configuration in readme.typescript

Suppress Warnings

suppressions:
  - code: EvenSegmentedPathForPutOperation
    from: privateLinkScopes.json
    reason: False positive
  - code: TagsAreNotAllowedForProxyResources
    from: HybridCompute.json
    reason: False positive
  - code: BodyTopLevelProperties
    from: HybridCompute.json
    where: $.definitions.AgentVersion
    reason: Previously approved and released, would require potentially breaking changes
  - code: GetCollectionResponseSchema
    from: HybridCompute.json
    where: $.paths["/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions"]
    reason: False positive. See https://github.com/Azure/azure-openapi-validator/issues/750