From 298d226f7d10e66a53bdcd36e113c858030689cb Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 18 Nov 2021 02:37:01 +0000 Subject: [PATCH] CodeGen from PR 16781 in Azure/azure-rest-api-specs [Hub Generated] Public private branch 'dev-orbital-Microsoft.Orbital-2021-04-04-preview' (#16781) * New Swagger Spec File * New Swagger Example Spec File * New Readme Config File * New Azure AZ Readme Config File * New Azure CLI Readme Config File * New Go Language Readme Config File * New Python Language Readme Config File * New Typescript Language Readme Config File * New C# Language Readme Config File * Orbital sdk 2021 04 04 preview (#5253) * New Readme Config File * New Go Language Readme Config File * New Typescript Language Readme Config File * New Python Language Readme Config File * New C# Language Readme Config File * New Ruby Language Readme Config File * New Swagger Spec File * New Swagger Example Spec File * Added orbital.json file * Passed linting using AutoRest for 2020-09-01 Azure Orbital Private Privew * Updated Operation object under Azure Orbital 2020-09-01 preview. * Updated Operation object under Azure Orbital 2020-09-01 preview. * Updated Satellites object for Azure Orbital 2020-09-01 preview * Updated examples for Azure Orbital Private Preview 2020-09-01 * Updated examples for Azure Orbital Private Preview 2020-09-01 * Updated examples for Azure Orbital Private Preview 2020-09-01 * Addressed feedback from ARMChangesRequested * Updated the GetAvailableContacts api to add long running operation * Updated the api version * Updated the objects based on discussion with PM. * list available ground station made a POST request (#2521) * list available ground station made a POST request * Swagger LintDiff fix Co-authored-by: Devanshu Singh * swagger specs for version-20210404-preview * removed cross version references. Copied over unchanged examples from the previous API version 2021-09-01-preview * removed availableGroundStations API * New Readme Config File New Go Language Readme Config File New Typescript Language Readme Config File New Python Language Readme Config File New C# Language Readme Config File New Ruby Language Readme Config File New Swagger Spec File New Swagger Example Spec File Added orbital.json file Passed linting using AutoRest for 2020-09-01 Azure Orbital Private Privew Updated Operation object under Azure Orbital 2020-09-01 preview. Updated Operation object under Azure Orbital 2020-09-01 preview. Updated Satellites object for Azure Orbital 2020-09-01 preview Updated examples for Azure Orbital Private Preview 2020-09-01 Updated examples for Azure Orbital Private Preview 2020-09-01 Updated examples for Azure Orbital Private Preview 2020-09-01 Addressed feedback from ARMChangesRequested Updated the GetAvailableContacts api to add long running operation Updated the api version Updated the objects based on discussion with PM. list available ground station made a POST request (#2521) * list available ground station made a POST request * Swagger LintDiff fix Co-authored-by: Devanshu Singh * validation check changes. Avocado, SpellCheck and prettier * validation checks changes * Modify readme.md for sdk generation * added system data * sdk pre namer validation changes * lintdiff warning changes * add comms scenario swagger (#3794) * add comms scenario swagger * remove unused example * fix some validation errors * fix style issues * update spec based on feedback * add updated example files * fix CI errors * change endpoints/connections list APIs to posts from gets * connections lists from endpoints return resource IDs rather than full objects. * update examples files for endpoints connections list APIs * fix operationIds and add descriptions * fix more op ids and add descriptions for real * fix typos, add constraints, and remove kbps/gbps from bandwidth (#4023) * Updates to Resource Types (Modifications and Renames) (#4294) * update orbital.json * update examples * prettier fix * unfix old api version * fix ci issues * make more fields immutable * update provisioning states * swagger specs for Available groundstation APIs, version 2021-preview (#4920) * swagger specs for Available groundstation APIs, version 2021-preview * npm prettier check * added type object * removed capability and global comms info from responses * prettier fix * changed AP id response * changes to schema to follow ARM format, resource id update * Spelling check fix * Ground Station spell check * added groundstation to custom words * Revert "added groundstation to custom words" This reverts commit 0d7e18217de98836dcb8ba991685e15436004836. * Revert "Ground Station spell check" This reverts commit ef85b3b26f9ddf81dc1f50a9b677f9d8f115c4cf. * Revert "Spelling check fix" This reverts commit 6bd95c6e013889b6d488703846bbe87bbbb9c494. * word addition * type in response * type definition in swagger * readonly add Co-authored-by: Akanksha Bhattacharyya * removed comms APIs * readme updated * fixed Swagger Avocado errors * swagger lintDiff fix 1 * swagger lintDiff fix 2 * swagger lintDiff fix 3 Co-authored-by: Sunny Patel Co-authored-by: Sunny Patel Co-authored-by: Arthur Ning <57385816+akning-ms@users.noreply.github.com> Co-authored-by: Devanshu Singh Co-authored-by: Zhenglai Zhang Co-authored-by: Jim Harris <72156062+MicrosoftJim@users.noreply.github.com> Co-authored-by: Akanksha Bhattacharyya Co-authored-by: Akanksha Bhattacharyya * operation IDs updated (#5461) Co-authored-by: Devanshu Singh * Dev orbital microsoft.orbital 2021 04 04 preview (#5491) * operation IDs updated * updated OperationListResult definition * review points implemented Co-authored-by: Devanshu Singh * Azure Orbital - Review points implemented (#5507) * operation IDs updated * updated OperationListResult definition * review points implemented * referencing CloudError, ApiVersionParameter, ResourceGroupNameParameter, SubscriptionIdParameter from common-types * reverting cloudError refs * prettify json * reorder some parameters Co-authored-by: Devanshu Singh Co-authored-by: ArcturusZhang * Removed Empty allOf (#5510) * operation IDs updated * updated OperationListResult definition * review points implemented * referencing CloudError, ApiVersionParameter, ResourceGroupNameParameter, SubscriptionIdParameter from common-types * reverting cloudError refs * prettify json * removed empty allOf * validation checks Co-authored-by: Devanshu Singh * readme.go.md fixed (#5512) * operation IDs updated * updated OperationListResult definition * review points implemented * referencing CloudError, ApiVersionParameter, ResourceGroupNameParameter, SubscriptionIdParameter from common-types * reverting cloudError refs * prettify json * removed empty allOf * validation checks * readme.go.md fixed Co-authored-by: Devanshu Singh * Remove last empty allOf (#5513) * operation IDs updated * updated OperationListResult definition * review points implemented * referencing CloudError, ApiVersionParameter, ResourceGroupNameParameter, SubscriptionIdParameter from common-types * reverting cloudError refs * prettify json * removed empty allOf * validation checks * readme.go.md fixed * remove one last empty allOf Co-authored-by: Devanshu Singh Co-authored-by: Sunny Patel Co-authored-by: Sunny Patel Co-authored-by: Arthur Ning <57385816+akning-ms@users.noreply.github.com> Co-authored-by: Devanshu Singh Co-authored-by: Zhenglai Zhang Co-authored-by: Jim Harris <72156062+MicrosoftJim@users.noreply.github.com> Co-authored-by: Akanksha Bhattacharyya Co-authored-by: Akanksha Bhattacharyya Co-authored-by: ArcturusZhang --- .../2021-04-04-preview/Microsoft.Orbital.json | 602 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 9 + 2 files changed, 611 insertions(+) create mode 100644 schemas/2021-04-04-preview/Microsoft.Orbital.json diff --git a/schemas/2021-04-04-preview/Microsoft.Orbital.json b/schemas/2021-04-04-preview/Microsoft.Orbital.json new file mode 100644 index 0000000000..220da0e140 --- /dev/null +++ b/schemas/2021-04-04-preview/Microsoft.Orbital.json @@ -0,0 +1,602 @@ +{ + "id": "https://schema.management.azure.com/schemas/2021-04-04-preview/Microsoft.Orbital.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Orbital", + "description": "Microsoft Orbital Resource Types", + "resourceDefinitions": { + "contactProfiles": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-04-04-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "Contact Profile Name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ContactProfilesProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of Contact Profile Resource Properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Orbital/contactProfiles" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Orbital/contactProfiles" + }, + "spacecrafts": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-04-04-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "Spacecraft ID" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/SpacecraftsProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of Spacecraft Resource Properties." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/spacecrafts_contacts_childResource" + } + ] + } + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Orbital/spacecrafts" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Orbital/spacecrafts" + }, + "spacecrafts_contacts": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-04-04-preview" + ] + }, + "name": { + "type": "string", + "description": "Contact Name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ContactsProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the Contact Resource." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Orbital/spacecrafts/contacts" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Orbital/spacecrafts/contacts" + } + }, + "definitions": { + "ContactProfileLink": { + "type": "object", + "properties": { + "channels": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ContactProfileLinkChannel" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Contact Profile Link Channel" + }, + "direction": { + "oneOf": [ + { + "type": "string", + "enum": [ + "uplink", + "downlink" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Direction (uplink or downlink)." + }, + "eirpdBW": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Effective Isotropic Radiated Power (EIRP) in dBW." + }, + "gainOverTemperature": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Gain To Noise Temperature in db/K." + }, + "polarization": { + "oneOf": [ + { + "type": "string", + "enum": [ + "RHCP", + "LHCP", + "dualRhcpLhcp", + "linearVertical", + "linearHorizontal" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "polarization. eg (RHCP, LHCP)." + } + }, + "required": [ + "channels", + "direction", + "polarization" + ], + "description": "Contact Profile link" + }, + "ContactProfileLinkChannel": { + "type": "object", + "properties": { + "bandwidthMHz": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Bandwidth in MHz" + }, + "centerFrequencyMHz": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Center Frequency in MHz" + }, + "decodingConfiguration": { + "type": "string", + "description": "Configuration for decoding" + }, + "demodulationConfiguration": { + "type": "string", + "description": "Configuration for demodulation" + }, + "encodingConfiguration": { + "type": "string", + "description": "Configuration for encoding" + }, + "endPoint": { + "oneOf": [ + { + "$ref": "#/definitions/EndPoint" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Customer End point to store/retrieve data during a contact." + }, + "modulationConfiguration": { + "type": "string", + "description": "Configuration for modulation" + } + }, + "required": [ + "bandwidthMHz", + "centerFrequencyMHz", + "endPoint" + ], + "description": "Contact Profile Link Channel" + }, + "ContactProfilesProperties": { + "type": "object", + "properties": { + "autoTrackingConfiguration": { + "oneOf": [ + { + "type": "string", + "enum": [ + "disabled", + "xBand", + "sBand" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Auto track configuration." + }, + "links": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ContactProfileLink" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Links of the Contact Profile" + }, + "minimumElevationDegrees": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Minimum viable elevation for the contact in decimal degrees." + }, + "minimumViableContactDuration": { + "type": "string", + "description": "Minimum viable contact duration in ISO 8601 format." + } + }, + "required": [ + "links" + ], + "description": "List of Contact Profile Resource Properties." + }, + "ContactsProperties": { + "type": "object", + "properties": { + "contactProfile": { + "oneOf": [ + { + "$ref": "#/definitions/ResourceReference" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource Reference" + }, + "groundStationName": { + "type": "string", + "description": "Azure Ground Station name." + }, + "reservationEndTime": { + "type": "string", + "format": "date-time", + "description": "Reservation end time of a contact." + }, + "reservationStartTime": { + "type": "string", + "format": "date-time", + "description": "Reservation start time of a contact." + } + }, + "required": [ + "contactProfile", + "groundStationName", + "reservationEndTime", + "reservationStartTime" + ], + "description": "Properties of the Contact Resource." + }, + "EndPoint": { + "type": "object", + "properties": { + "endPointName": { + "type": "string", + "description": "Name of an end point." + }, + "ipAddress": { + "type": "string", + "description": "IP Address." + }, + "port": { + "type": "string", + "description": "TCP port to listen on to receive data." + }, + "protocol": { + "oneOf": [ + { + "type": "string", + "enum": [ + "TCP", + "UDP" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Protocol either UDP or TCP." + } + }, + "required": [ + "endPointName", + "ipAddress", + "port", + "protocol" + ], + "description": "Customer End point to store/retrieve data during a contact." + }, + "ResourceReference": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Resource ID." + } + }, + "description": "Resource Reference" + }, + "SpacecraftLink": { + "type": "object", + "properties": { + "bandwidthMHz": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Bandwidth in MHz" + }, + "centerFrequencyMHz": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Center Frequency in MHz" + }, + "direction": { + "oneOf": [ + { + "type": "string", + "enum": [ + "uplink", + "downlink" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Direction (uplink or downlink)." + }, + "polarization": { + "oneOf": [ + { + "type": "string", + "enum": [ + "RHCP", + "LHCP", + "dualRhcpLhcp", + "linearVertical", + "linearHorizontal" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "polarization. eg (RHCP, LHCP)." + } + }, + "required": [ + "bandwidthMHz", + "centerFrequencyMHz", + "direction", + "polarization" + ], + "description": "Spacecraft Link" + }, + "SpacecraftsProperties": { + "type": "object", + "properties": { + "links": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/SpacecraftLink" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Links of the Spacecraft" + }, + "noradId": { + "type": "string", + "description": "NORAD ID of the spacecraft." + }, + "titleLine": { + "type": "string", + "description": "Title line of Two Line Element (TLE)." + }, + "tleLine1": { + "type": "string", + "description": "Line 1 of Two Line Element (TLE)." + }, + "tleLine2": { + "type": "string", + "description": "Line 1 of Two Line Element (TLE)." + } + }, + "required": [ + "noradId" + ], + "description": "List of Spacecraft Resource Properties." + }, + "spacecrafts_contacts_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-04-04-preview" + ] + }, + "name": { + "type": "string", + "description": "Contact Name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ContactsProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the Contact Resource." + }, + "type": { + "type": "string", + "enum": [ + "contacts" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Orbital/spacecrafts/contacts" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 6ca5bb66e4..9edeb7dd0c 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -9817,6 +9817,15 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-06-01/Microsoft.OperationalInsights.json#/resourceDefinitions/workspaces_tables" }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-04-04-preview/Microsoft.Orbital.json#/resourceDefinitions/contactProfiles" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-04-04-preview/Microsoft.Orbital.json#/resourceDefinitions/spacecrafts" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-04-04-preview/Microsoft.Orbital.json#/resourceDefinitions/spacecrafts_contacts" + }, { "$ref": "https://schema.management.azure.com/schemas/2019-08-01-preview/Microsoft.Peering.json#/resourceDefinitions/peerings" },