diff --git a/sdk/orbital/azure-resourcemanager-orbital/CHANGELOG.md b/sdk/orbital/azure-resourcemanager-orbital/CHANGELOG.md index 2f0af9811b7b..f0d63f927780 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/CHANGELOG.md +++ b/sdk/orbital/azure-resourcemanager-orbital/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.1 (2023-03-02) + +- Azure Resource Manager orbital client library for Java. This package contains Microsoft Azure SDK for orbital Management SDK. Azure Orbital service. Package tag package-2022-11-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/orbital/azure-resourcemanager-orbital/README.md b/sdk/orbital/azure-resourcemanager-orbital/README.md index 1d3f9bfe894f..f48920bbdbbf 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/README.md +++ b/sdk/orbital/azure-resourcemanager-orbital/README.md @@ -2,7 +2,7 @@ Azure Resource Manager orbital client library for Java. -This package contains Microsoft Azure SDK for orbital Management SDK. Azure Orbital service. Package tag package-2022-03-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for orbital Management SDK. Azure Orbital service. Package tag package-2022-11-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-orbital - 1.0.0-beta.1 + 1.0.0-beta.2 ``` [//]: # ({x-version-update-end}) @@ -41,19 +41,19 @@ Various documentation is available to help you get started Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client. -[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation. +[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation. ### Authentication -By default, Azure Active Directory token authentication depends on correct configure of following environment variables. +By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables. - `AZURE_CLIENT_ID` for Azure client ID. - `AZURE_TENANT_ID` for Azure tenant ID. - `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate. -In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`. +In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. -With above configuration, `azure` client can be authenticated by following code: +With above configuration, `azure` client can be authenticated using the following code: ```java AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); @@ -83,13 +83,13 @@ See [API design][design] for general introduction on design and key concepts on ## Contributing -For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md). +For details on contributing to this repository, see the [contributing guide][cg]. -1. Fork it -1. Create your feature branch (`git checkout -b my-new-feature`) -1. Commit your changes (`git commit -am 'Add some feature'`) -1. Push to the branch (`git push origin my-new-feature`) -1. Create new Pull Request +This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit . + +When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact with any additional questions or comments. [survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS @@ -100,3 +100,6 @@ For details on contributing to this repository, see the [contributing guide](htt [azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty [authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md [design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md +[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md +[coc]: https://opensource.microsoft.com/codeofconduct/ +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/orbital/azure-resourcemanager-orbital/SAMPLE.md b/sdk/orbital/azure-resourcemanager-orbital/SAMPLE.md index f1686511b593..3f3659cd710d 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/SAMPLE.md +++ b/sdk/orbital/azure-resourcemanager-orbital/SAMPLE.md @@ -3,7 +3,6 @@ ## AvailableGroundStations -- [Get](#availablegroundstations_get) - [List](#availablegroundstations_list) ## ContactProfiles @@ -39,37 +38,15 @@ - [ListAvailableContacts](#spacecrafts_listavailablecontacts) - [ListByResourceGroup](#spacecrafts_listbyresourcegroup) - [UpdateTags](#spacecrafts_updatetags) -### AvailableGroundStations_Get - -```java -import com.azure.core.util.Context; - -/** Samples for AvailableGroundStations Get. */ -public final class AvailableGroundStationsGetSamples { - /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/AvailableGroundStationGet.json - */ - /** - * Sample code: Get GroundStation. - * - * @param manager Entry point to OrbitalManager. - */ - public static void getGroundStation(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.availableGroundStations().getWithResponse("EASTUS2_0", Context.NONE); - } -} -``` - ### AvailableGroundStations_List ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.orbital.models.CapabilityParameter; /** Samples for AvailableGroundStations List. */ public final class AvailableGroundStationsListSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/AvailableGroundStationsByCapabilityList.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/AvailableGroundStationsByCapabilityList.json */ /** * Sample code: List of Ground Stations by Capability. @@ -77,7 +54,7 @@ public final class AvailableGroundStationsListSamples { * @param manager Entry point to OrbitalManager. */ public static void listOfGroundStationsByCapability(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.availableGroundStations().list(CapabilityParameter.EARTH_OBSERVATION, Context.NONE); + manager.availableGroundStations().list(CapabilityParameter.EARTH_OBSERVATION, com.azure.core.util.Context.NONE); } } ``` @@ -85,10 +62,21 @@ public final class AvailableGroundStationsListSamples { ### ContactProfiles_CreateOrUpdate ```java +import com.azure.resourcemanager.orbital.models.AutoTrackingConfiguration; +import com.azure.resourcemanager.orbital.models.ContactProfileLink; +import com.azure.resourcemanager.orbital.models.ContactProfileLinkChannel; +import com.azure.resourcemanager.orbital.models.ContactProfileThirdPartyConfiguration; +import com.azure.resourcemanager.orbital.models.ContactProfilesPropertiesNetworkConfiguration; +import com.azure.resourcemanager.orbital.models.Direction; +import com.azure.resourcemanager.orbital.models.EndPoint; +import com.azure.resourcemanager.orbital.models.Polarization; +import com.azure.resourcemanager.orbital.models.Protocol; +import java.util.Arrays; + /** Samples for ContactProfiles CreateOrUpdate. */ public final class ContactProfilesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactProfileCreate.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactProfileCreate.json */ /** * Sample code: Create a contact profile. @@ -101,6 +89,65 @@ public final class ContactProfilesCreateOrUpdateSamples { .define("CONTOSO-CP") .withRegion("eastus2") .withExistingResourceGroup("contoso-Rgp") + .withNetworkConfiguration( + new ContactProfilesPropertiesNetworkConfiguration() + .withSubnetId( + "/subscriptions/c1be1141-a7c9-4aac-9608-3c2e2f1152c3/resourceGroups/contoso-Rgp/providers/Microsoft.Network/virtualNetworks/contoso-vnet/subnets/orbital-delegated-subnet")) + .withLinks( + Arrays + .asList( + new ContactProfileLink() + .withName("contoso-uplink") + .withPolarization(Polarization.LHCP) + .withDirection(Direction.UPLINK) + .withGainOverTemperature(0.0F) + .withEirpdBW(45.0F) + .withChannels( + Arrays + .asList( + new ContactProfileLinkChannel() + .withName("contoso-uplink-channel") + .withCenterFrequencyMHz(2250f) + .withBandwidthMHz(2f) + .withEndPoint( + new EndPoint() + .withIpAddress("10.1.0.4") + .withEndPointName("ContosoTest_Uplink") + .withPort("50000") + .withProtocol(Protocol.TCP)))), + new ContactProfileLink() + .withName("contoso-downlink") + .withPolarization(Polarization.RHCP) + .withDirection(Direction.DOWNLINK) + .withGainOverTemperature(25.0F) + .withEirpdBW(0.0F) + .withChannels( + Arrays + .asList( + new ContactProfileLinkChannel() + .withName("contoso-downlink-channel") + .withCenterFrequencyMHz(8160f) + .withBandwidthMHz(15f) + .withEndPoint( + new EndPoint() + .withIpAddress("10.1.0.5") + .withEndPointName("ContosoTest_Downlink") + .withPort("50001") + .withProtocol(Protocol.UDP)))))) + .withMinimumViableContactDuration("PT1M") + .withMinimumElevationDegrees(5.0F) + .withAutoTrackingConfiguration(AutoTrackingConfiguration.DISABLED) + .withEventHubUri( + "/subscriptions/c1be1141-a7c9-4aac-9608-3c2e2f1152c3/resourceGroups/contoso-Rgp/providers/Microsoft.EventHub/namespaces/contosoHub/eventhubs/contosoHub") + .withThirdPartyConfigurations( + Arrays + .asList( + new ContactProfileThirdPartyConfiguration() + .withProviderName("KSAT") + .withMissionConfiguration("Ksat_MissionConfiguration"), + new ContactProfileThirdPartyConfiguration() + .withProviderName("VIASAT") + .withMissionConfiguration("Viasat_Configuration"))) .create(); } } @@ -109,12 +156,10 @@ public final class ContactProfilesCreateOrUpdateSamples { ### ContactProfiles_Delete ```java -import com.azure.core.util.Context; - /** Samples for ContactProfiles Delete. */ public final class ContactProfilesDeleteSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactProfileDelete.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactProfileDelete.json */ /** * Sample code: Delete Contact Profile. @@ -122,7 +167,7 @@ public final class ContactProfilesDeleteSamples { * @param manager Entry point to OrbitalManager. */ public static void deleteContactProfile(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.contactProfiles().delete("contoso-Rgp", "CONTOSO-CP", Context.NONE); + manager.contactProfiles().delete("contoso-Rgp", "CONTOSO-CP", com.azure.core.util.Context.NONE); } } ``` @@ -130,12 +175,10 @@ public final class ContactProfilesDeleteSamples { ### ContactProfiles_GetByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for ContactProfiles GetByResourceGroup. */ public final class ContactProfilesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactProfileGet.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactProfileGet.json */ /** * Sample code: Get a contact profile. @@ -143,7 +186,9 @@ public final class ContactProfilesGetByResourceGroupSamples { * @param manager Entry point to OrbitalManager. */ public static void getAContactProfile(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.contactProfiles().getByResourceGroupWithResponse("contoso-Rgp", "CONTOSO-CP", Context.NONE); + manager + .contactProfiles() + .getByResourceGroupWithResponse("contoso-Rgp", "CONTOSO-CP", com.azure.core.util.Context.NONE); } } ``` @@ -151,12 +196,10 @@ public final class ContactProfilesGetByResourceGroupSamples { ### ContactProfiles_List ```java -import com.azure.core.util.Context; - /** Samples for ContactProfiles List. */ public final class ContactProfilesListSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactProfilesBySubscriptionList.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactProfilesBySubscriptionList.json */ /** * Sample code: List of Contact Profiles. @@ -164,7 +207,7 @@ public final class ContactProfilesListSamples { * @param manager Entry point to OrbitalManager. */ public static void listOfContactProfiles(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.contactProfiles().list("opaqueString", Context.NONE); + manager.contactProfiles().list("opaqueString", com.azure.core.util.Context.NONE); } } ``` @@ -172,12 +215,10 @@ public final class ContactProfilesListSamples { ### ContactProfiles_ListByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for ContactProfiles ListByResourceGroup. */ public final class ContactProfilesListByResourceGroupSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactProfilesByResourceGroupList.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactProfilesByResourceGroupList.json */ /** * Sample code: List of Contact Profiles by Resource Group. @@ -185,7 +226,7 @@ public final class ContactProfilesListByResourceGroupSamples { * @param manager Entry point to OrbitalManager. */ public static void listOfContactProfilesByResourceGroup(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.contactProfiles().listByResourceGroup("contoso-Rgp", "opaqueString", Context.NONE); + manager.contactProfiles().listByResourceGroup("contoso-Rgp", "opaqueString", com.azure.core.util.Context.NONE); } } ``` @@ -193,7 +234,6 @@ public final class ContactProfilesListByResourceGroupSamples { ### ContactProfiles_UpdateTags ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.orbital.models.ContactProfile; import java.util.HashMap; import java.util.Map; @@ -201,7 +241,7 @@ import java.util.Map; /** Samples for ContactProfiles UpdateTags. */ public final class ContactProfilesUpdateTagsSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactProfileUpdateTag.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactProfileUpdateTag.json */ /** * Sample code: Update Contact Profile tags. @@ -212,7 +252,7 @@ public final class ContactProfilesUpdateTagsSamples { ContactProfile resource = manager .contactProfiles() - .getByResourceGroupWithResponse("contoso-Rgp", "CONTOSO-CP", Context.NONE) + .getByResourceGroupWithResponse("contoso-Rgp", "CONTOSO-CP", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply(); } @@ -239,7 +279,7 @@ import java.time.OffsetDateTime; /** Samples for Contacts Create. */ public final class ContactsCreateSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactCreate.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactCreate.json */ /** * Sample code: Create a contact. @@ -251,8 +291,8 @@ public final class ContactsCreateSamples { .contacts() .define("contact1") .withExistingSpacecraft("contoso-Rgp", "CONTOSO_SAT") - .withReservationStartTime(OffsetDateTime.parse("2022-03-02T10:58:30Z")) - .withReservationEndTime(OffsetDateTime.parse("2022-03-02T11:10:45Z")) + .withReservationStartTime(OffsetDateTime.parse("2023-02-22T10:58:30Z")) + .withReservationEndTime(OffsetDateTime.parse("2023-02-22T11:10:45Z")) .withGroundStationName("EASTUS2_0") .withContactProfile( new ContactsPropertiesContactProfile() @@ -266,12 +306,10 @@ public final class ContactsCreateSamples { ### Contacts_Delete ```java -import com.azure.core.util.Context; - /** Samples for Contacts Delete. */ public final class ContactsDeleteSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactDelete.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactDelete.json */ /** * Sample code: Delete Contact. @@ -279,7 +317,7 @@ public final class ContactsDeleteSamples { * @param manager Entry point to OrbitalManager. */ public static void deleteContact(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.contacts().delete("contoso-Rgp", "CONTOSO_SAT", "contact1", Context.NONE); + manager.contacts().delete("contoso-Rgp", "CONTOSO_SAT", "contact1", com.azure.core.util.Context.NONE); } } ``` @@ -287,12 +325,10 @@ public final class ContactsDeleteSamples { ### Contacts_Get ```java -import com.azure.core.util.Context; - /** Samples for Contacts Get. */ public final class ContactsGetSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactGet.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactGet.json */ /** * Sample code: Get Contact. @@ -300,7 +336,7 @@ public final class ContactsGetSamples { * @param manager Entry point to OrbitalManager. */ public static void getContact(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.contacts().getWithResponse("contoso-Rgp", "CONTOSO_SAT", "contact1", Context.NONE); + manager.contacts().getWithResponse("contoso-Rgp", "CONTOSO_SAT", "contact1", com.azure.core.util.Context.NONE); } } ``` @@ -308,12 +344,10 @@ public final class ContactsGetSamples { ### Contacts_List ```java -import com.azure.core.util.Context; - /** Samples for Contacts List. */ public final class ContactsListSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactsBySpacecraftNameList.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactsBySpacecraftNameList.json */ /** * Sample code: List of Spacecraft. @@ -321,7 +355,7 @@ public final class ContactsListSamples { * @param manager Entry point to OrbitalManager. */ public static void listOfSpacecraft(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.contacts().list("contoso-Rgp", "CONTOSO_SAT", "opaqueString", Context.NONE); + manager.contacts().list("contoso-Rgp", "CONTOSO_SAT", "opaqueString", com.azure.core.util.Context.NONE); } } ``` @@ -329,12 +363,10 @@ public final class ContactsListSamples { ### Operations_List ```java -import com.azure.core.util.Context; - /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/OperationsList.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/OperationsList.json */ /** * Sample code: OperationsList. @@ -342,7 +374,7 @@ public final class OperationsListSamples { * @param manager Entry point to OrbitalManager. */ public static void operationsList(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.operations().list(Context.NONE); + manager.operations().list(com.azure.core.util.Context.NONE); } } ``` @@ -350,12 +382,10 @@ public final class OperationsListSamples { ### OperationsResults_Get ```java -import com.azure.core.util.Context; - /** Samples for OperationsResults Get. */ public final class OperationsResultsGetSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/OperationResultsGet.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/OperationResultsGet.json */ /** * Sample code: KustoOperationResultsGet. @@ -363,7 +393,9 @@ public final class OperationsResultsGetSamples { * @param manager Entry point to OrbitalManager. */ public static void kustoOperationResultsGet(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.operationsResults().get("eastus2", "30972f1b-b61d-4fd8-bd34-3dcfa24670f3", Context.NONE); + manager + .operationsResults() + .get("eastus2", "30972f1b-b61d-4fd8-bd34-3dcfa24670f3", com.azure.core.util.Context.NONE); } } ``` @@ -379,7 +411,7 @@ import java.util.Arrays; /** Samples for Spacecrafts CreateOrUpdate. */ public final class SpacecraftsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/SpacecraftCreate.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/SpacecraftCreate.json */ /** * Sample code: Create a spacecraft. @@ -392,7 +424,6 @@ public final class SpacecraftsCreateOrUpdateSamples { .define("CONTOSO_SAT") .withRegion("eastus2") .withExistingResourceGroup("contoso-Rgp") - .withNoradId("36411") .withTitleLine("CONTOSO_SAT") .withTleLine1("1 27424U 02022A 22167.05119303 .00000638 00000+0 15103-3 0 9994") .withTleLine2("2 27424 98.2477 108.9546 0000928 92.9194 327.0802 14.57300770 69982") @@ -411,6 +442,7 @@ public final class SpacecraftsCreateOrUpdateSamples { .withBandwidthMHz(15f) .withDirection(Direction.DOWNLINK) .withPolarization(Polarization.RHCP))) + .withNoradId("36411") .create(); } } @@ -419,12 +451,10 @@ public final class SpacecraftsCreateOrUpdateSamples { ### Spacecrafts_Delete ```java -import com.azure.core.util.Context; - /** Samples for Spacecrafts Delete. */ public final class SpacecraftsDeleteSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/SpacecraftDelete.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/SpacecraftDelete.json */ /** * Sample code: Delete Spacecraft. @@ -432,7 +462,7 @@ public final class SpacecraftsDeleteSamples { * @param manager Entry point to OrbitalManager. */ public static void deleteSpacecraft(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.spacecrafts().delete("contoso-Rgp", "CONTOSO_SAT", Context.NONE); + manager.spacecrafts().delete("contoso-Rgp", "CONTOSO_SAT", com.azure.core.util.Context.NONE); } } ``` @@ -440,12 +470,10 @@ public final class SpacecraftsDeleteSamples { ### Spacecrafts_GetByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for Spacecrafts GetByResourceGroup. */ public final class SpacecraftsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/SpacecraftGet.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/SpacecraftGet.json */ /** * Sample code: Get Spacecraft. @@ -453,7 +481,9 @@ public final class SpacecraftsGetByResourceGroupSamples { * @param manager Entry point to OrbitalManager. */ public static void getSpacecraft(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.spacecrafts().getByResourceGroupWithResponse("contoso-Rgp", "CONTOSO_SAT", Context.NONE); + manager + .spacecrafts() + .getByResourceGroupWithResponse("contoso-Rgp", "CONTOSO_SAT", com.azure.core.util.Context.NONE); } } ``` @@ -461,12 +491,10 @@ public final class SpacecraftsGetByResourceGroupSamples { ### Spacecrafts_List ```java -import com.azure.core.util.Context; - /** Samples for Spacecrafts List. */ public final class SpacecraftsListSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/SpacecraftsBySubscriptionList.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/SpacecraftsBySubscriptionList.json */ /** * Sample code: List of Spacecraft by Subscription. @@ -474,7 +502,7 @@ public final class SpacecraftsListSamples { * @param manager Entry point to OrbitalManager. */ public static void listOfSpacecraftBySubscription(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.spacecrafts().list("opaqueString", Context.NONE); + manager.spacecrafts().list("opaqueString", com.azure.core.util.Context.NONE); } } ``` @@ -482,7 +510,6 @@ public final class SpacecraftsListSamples { ### Spacecrafts_ListAvailableContacts ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.orbital.models.ContactParameters; import com.azure.resourcemanager.orbital.models.ContactParametersContactProfile; import java.time.OffsetDateTime; @@ -490,7 +517,7 @@ import java.time.OffsetDateTime; /** Samples for Spacecrafts ListAvailableContacts. */ public final class SpacecraftsListAvailableContactsSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/AvailableContactsList.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/AvailableContactsList.json */ /** * Sample code: List of Contact. @@ -509,9 +536,9 @@ public final class SpacecraftsListAvailableContactsSamples { .withId( "/subscriptions/c1be1141-a7c9-4aac-9608-3c2e2f1152c3/resourceGroups/contoso-Rgp/providers/Microsoft.Orbital/contactProfiles/CONTOSO-CP")) .withGroundStationName("EASTUS2_0") - .withStartTime(OffsetDateTime.parse("2022-03-01T11:30:00Z")) - .withEndTime(OffsetDateTime.parse("2022-03-02T11:30:00Z")), - Context.NONE); + .withStartTime(OffsetDateTime.parse("2022-11-01T11:30:00Z")) + .withEndTime(OffsetDateTime.parse("2022-11-02T11:30:00Z")), + com.azure.core.util.Context.NONE); } } ``` @@ -519,12 +546,10 @@ public final class SpacecraftsListAvailableContactsSamples { ### Spacecrafts_ListByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for Spacecrafts ListByResourceGroup. */ public final class SpacecraftsListByResourceGroupSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/SpacecraftsByResourceGroupList.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/SpacecraftsByResourceGroupList.json */ /** * Sample code: List of Spacecraft by Resource Group. @@ -532,7 +557,7 @@ public final class SpacecraftsListByResourceGroupSamples { * @param manager Entry point to OrbitalManager. */ public static void listOfSpacecraftByResourceGroup(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.spacecrafts().listByResourceGroup("contoso-Rgp", "opaqueString", Context.NONE); + manager.spacecrafts().listByResourceGroup("contoso-Rgp", "opaqueString", com.azure.core.util.Context.NONE); } } ``` @@ -540,7 +565,6 @@ public final class SpacecraftsListByResourceGroupSamples { ### Spacecrafts_UpdateTags ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.orbital.models.Spacecraft; import java.util.HashMap; import java.util.Map; @@ -548,7 +572,7 @@ import java.util.Map; /** Samples for Spacecrafts UpdateTags. */ public final class SpacecraftsUpdateTagsSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/SpacecraftUpdateTags.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/SpacecraftUpdateTags.json */ /** * Sample code: Update Spacecraft tags. @@ -557,7 +581,10 @@ public final class SpacecraftsUpdateTagsSamples { */ public static void updateSpacecraftTags(com.azure.resourcemanager.orbital.OrbitalManager manager) { Spacecraft resource = - manager.spacecrafts().getByResourceGroupWithResponse("contoso-Rgp", "CONTOSO_SAT", Context.NONE).getValue(); + manager + .spacecrafts() + .getByResourceGroupWithResponse("contoso-Rgp", "CONTOSO_SAT", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply(); } diff --git a/sdk/orbital/azure-resourcemanager-orbital/pom.xml b/sdk/orbital/azure-resourcemanager-orbital/pom.xml index c2c47f0e5740..7af1d8c8acf9 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/pom.xml +++ b/sdk/orbital/azure-resourcemanager-orbital/pom.xml @@ -1,3 +1,8 @@ + 4.0.0 @@ -13,7 +18,7 @@ jar Microsoft Azure SDK for orbital Management - This package contains Microsoft Azure SDK for orbital Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Orbital service. Package tag package-2022-03-01. + This package contains Microsoft Azure SDK for orbital Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Orbital service. Package tag package-2022-11-01. https://github.com/Azure/azure-sdk-for-java @@ -38,7 +43,8 @@ UTF-8 - true + 0 + 0 diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/AvailableGroundStationsClient.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/AvailableGroundStationsClient.java index 9f44a2f7bdb8..5df147249385 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/AvailableGroundStationsClient.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/AvailableGroundStationsClient.java @@ -7,7 +7,6 @@ import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.orbital.fluent.models.AvailableGroundStationInner; import com.azure.resourcemanager.orbital.models.CapabilityParameter; @@ -40,29 +39,4 @@ public interface AvailableGroundStationsClient { */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(CapabilityParameter capability, Context context); - - /** - * Gets the specified available ground station. - * - * @param groundStationName Ground Station name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified available ground station. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AvailableGroundStationInner get(String groundStationName); - - /** - * Gets the specified available ground station. - * - * @param groundStationName Ground Station name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified available ground station along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String groundStationName, Context context); } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/ContactProfilesClient.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/ContactProfilesClient.java index 7e1ea9db7d46..75494bbb4834 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/ContactProfilesClient.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/ContactProfilesClient.java @@ -21,28 +21,28 @@ public interface ContactProfilesClient { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param contactProfileName Contact Profile name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified contact Profile in a specified resource group. + * @return the specified contact Profile in a specified resource group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ContactProfileInner getByResourceGroup(String resourceGroupName, String contactProfileName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String contactProfileName, Context context); /** * Gets the specified contact Profile in a specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param contactProfileName Contact Profile name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified contact Profile in a specified resource group along with {@link Response}. + * @return the specified contact Profile in a specified resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String contactProfileName, Context context); + ContactProfileInner getByResourceGroup(String resourceGroupName, String contactProfileName); /** * Creates or updates a contact profile. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/ContactsClient.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/ContactsClient.java index 74c9c48a1110..6025217ffc21 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/ContactsClient.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/ContactsClient.java @@ -53,13 +53,15 @@ PagedIterable list( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param spacecraftName Spacecraft ID. * @param contactName Contact name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified contact in a specified resource group. + * @return the specified contact in a specified resource group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ContactInner get(String resourceGroupName, String spacecraftName, String contactName); + Response getWithResponse( + String resourceGroupName, String spacecraftName, String contactName, Context context); /** * Gets the specified contact in a specified resource group. @@ -67,15 +69,13 @@ PagedIterable list( * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param spacecraftName Spacecraft ID. * @param contactName Contact name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified contact in a specified resource group along with {@link Response}. + * @return the specified contact in a specified resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String spacecraftName, String contactName, Context context); + ContactInner get(String resourceGroupName, String spacecraftName, String contactName); /** * Creates a contact. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/SpacecraftsClient.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/SpacecraftsClient.java index 8e64e6d17f00..04f981fd7c44 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/SpacecraftsClient.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/SpacecraftsClient.java @@ -78,28 +78,28 @@ public interface SpacecraftsClient { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param spacecraftName Spacecraft ID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified spacecraft in a specified resource group. + * @return the specified spacecraft in a specified resource group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - SpacecraftInner getByResourceGroup(String resourceGroupName, String spacecraftName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String spacecraftName, Context context); /** * Gets the specified spacecraft in a specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param spacecraftName Spacecraft ID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified spacecraft in a specified resource group along with {@link Response}. + * @return the specified spacecraft in a specified resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String spacecraftName, Context context); + SpacecraftInner getByResourceGroup(String resourceGroupName, String spacecraftName); /** * Creates or updates a spacecraft resource. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/AvailableContactsInner.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/AvailableContactsInner.java index eac7cecadeb6..ca107eda08f5 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/AvailableContactsInner.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/AvailableContactsInner.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.orbital.models.AvailableContactsSpacecraft; import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; /** * Customer retrieves list of Available Contacts for a spacecraft resource. Later, one of the available contact can be @@ -32,6 +33,10 @@ public final class AvailableContactsInner { @JsonProperty(value = "properties") private AvailableContactsProperties innerProperties; + /** Creates an instance of AvailableContactsInner class. */ + public AvailableContactsInner() { + } + /** * Get the spacecraft property: The reference to the spacecraft resource. * @@ -70,6 +75,87 @@ private AvailableContactsProperties innerProperties() { return this.innerProperties; } + /** + * Get the maximumElevationDegrees property: Maximum elevation of the antenna during the contact in decimal degrees. + * + * @return the maximumElevationDegrees value. + */ + public Float maximumElevationDegrees() { + return this.innerProperties() == null ? null : this.innerProperties().maximumElevationDegrees(); + } + + /** + * Get the txStartTime property: Time at which antenna transmit will be enabled (ISO 8601 UTC standard). + * + * @return the txStartTime value. + */ + public OffsetDateTime txStartTime() { + return this.innerProperties() == null ? null : this.innerProperties().txStartTime(); + } + + /** + * Get the txEndTime property: Time at which antenna transmit will be disabled (ISO 8601 UTC standard). + * + * @return the txEndTime value. + */ + public OffsetDateTime txEndTime() { + return this.innerProperties() == null ? null : this.innerProperties().txEndTime(); + } + + /** + * Get the rxStartTime property: Earliest time to receive a signal (ISO 8601 UTC standard). + * + * @return the rxStartTime value. + */ + public OffsetDateTime rxStartTime() { + return this.innerProperties() == null ? null : this.innerProperties().rxStartTime(); + } + + /** + * Get the rxEndTime property: Time to lost receiving a signal (ISO 8601 UTC standard). + * + * @return the rxEndTime value. + */ + public OffsetDateTime rxEndTime() { + return this.innerProperties() == null ? null : this.innerProperties().rxEndTime(); + } + + /** + * Get the startAzimuthDegrees property: Azimuth of the antenna at the start of the contact in decimal degrees. + * + * @return the startAzimuthDegrees value. + */ + public Float startAzimuthDegrees() { + return this.innerProperties() == null ? null : this.innerProperties().startAzimuthDegrees(); + } + + /** + * Get the endAzimuthDegrees property: Azimuth of the antenna at the end of the contact in decimal degrees. + * + * @return the endAzimuthDegrees value. + */ + public Float endAzimuthDegrees() { + return this.innerProperties() == null ? null : this.innerProperties().endAzimuthDegrees(); + } + + /** + * Get the startElevationDegrees property: Spacecraft elevation above the horizon at contact start. + * + * @return the startElevationDegrees value. + */ + public Float startElevationDegrees() { + return this.innerProperties() == null ? null : this.innerProperties().startElevationDegrees(); + } + + /** + * Get the endElevationDegrees property: Spacecraft elevation above the horizon at contact end. + * + * @return the endElevationDegrees value. + */ + public Float endElevationDegrees() { + return this.innerProperties() == null ? null : this.innerProperties().endElevationDegrees(); + } + /** * Validates the instance. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/AvailableContactsProperties.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/AvailableContactsProperties.java index 2d6671ad1437..07ab45f5e92e 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/AvailableContactsProperties.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/AvailableContactsProperties.java @@ -10,6 +10,10 @@ /** Properties of Contact resource. */ @Immutable public final class AvailableContactsProperties extends ContactInstanceProperties { + /** Creates an instance of AvailableContactsProperties class. */ + public AvailableContactsProperties() { + } + /** * Validates the instance. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/AvailableGroundStationInner.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/AvailableGroundStationInner.java index d26ecd5b5068..3eca327c58c4 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/AvailableGroundStationInner.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/AvailableGroundStationInner.java @@ -5,6 +5,8 @@ package com.azure.resourcemanager.orbital.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.orbital.models.ReleaseMode; import com.fasterxml.jackson.annotation.JsonProperty; /** Ground Stations available to schedule Contacts. */ @@ -37,8 +39,12 @@ public final class AvailableGroundStationInner { /* * The properties bag for this resource. */ - @JsonProperty(value = "properties") - private AvailableGroundStationProperties innerProperties; + @JsonProperty(value = "properties", required = true) + private AvailableGroundStationProperties innerProperties = new AvailableGroundStationProperties(); + + /** Creates an instance of AvailableGroundStationInner class. */ + public AvailableGroundStationInner() { + } /** * Get the id property: ID of groundStation. @@ -96,14 +102,159 @@ private AvailableGroundStationProperties innerProperties() { return this.innerProperties; } + /** + * Get the city property: City of ground station. + * + * @return the city value. + */ + public String city() { + return this.innerProperties() == null ? null : this.innerProperties().city(); + } + + /** + * Set the city property: City of ground station. + * + * @param city the city value to set. + * @return the AvailableGroundStationInner object itself. + */ + public AvailableGroundStationInner withCity(String city) { + if (this.innerProperties() == null) { + this.innerProperties = new AvailableGroundStationProperties(); + } + this.innerProperties().withCity(city); + return this; + } + + /** + * Get the providerName property: Ground station provider name. + * + * @return the providerName value. + */ + public String providerName() { + return this.innerProperties() == null ? null : this.innerProperties().providerName(); + } + + /** + * Set the providerName property: Ground station provider name. + * + * @param providerName the providerName value to set. + * @return the AvailableGroundStationInner object itself. + */ + public AvailableGroundStationInner withProviderName(String providerName) { + if (this.innerProperties() == null) { + this.innerProperties = new AvailableGroundStationProperties(); + } + this.innerProperties().withProviderName(providerName); + return this; + } + + /** + * Get the longitudeDegrees property: Longitude of the ground station in decimal degrees. + * + * @return the longitudeDegrees value. + */ + public Float longitudeDegrees() { + return this.innerProperties() == null ? null : this.innerProperties().longitudeDegrees(); + } + + /** + * Set the longitudeDegrees property: Longitude of the ground station in decimal degrees. + * + * @param longitudeDegrees the longitudeDegrees value to set. + * @return the AvailableGroundStationInner object itself. + */ + public AvailableGroundStationInner withLongitudeDegrees(Float longitudeDegrees) { + if (this.innerProperties() == null) { + this.innerProperties = new AvailableGroundStationProperties(); + } + this.innerProperties().withLongitudeDegrees(longitudeDegrees); + return this; + } + + /** + * Get the latitudeDegrees property: Latitude of the ground station in decimal degrees. + * + * @return the latitudeDegrees value. + */ + public Float latitudeDegrees() { + return this.innerProperties() == null ? null : this.innerProperties().latitudeDegrees(); + } + + /** + * Set the latitudeDegrees property: Latitude of the ground station in decimal degrees. + * + * @param latitudeDegrees the latitudeDegrees value to set. + * @return the AvailableGroundStationInner object itself. + */ + public AvailableGroundStationInner withLatitudeDegrees(Float latitudeDegrees) { + if (this.innerProperties() == null) { + this.innerProperties = new AvailableGroundStationProperties(); + } + this.innerProperties().withLatitudeDegrees(latitudeDegrees); + return this; + } + + /** + * Get the altitudeMeters property: Altitude of the ground station. + * + * @return the altitudeMeters value. + */ + public Float altitudeMeters() { + return this.innerProperties() == null ? null : this.innerProperties().altitudeMeters(); + } + + /** + * Set the altitudeMeters property: Altitude of the ground station. + * + * @param altitudeMeters the altitudeMeters value to set. + * @return the AvailableGroundStationInner object itself. + */ + public AvailableGroundStationInner withAltitudeMeters(Float altitudeMeters) { + if (this.innerProperties() == null) { + this.innerProperties = new AvailableGroundStationProperties(); + } + this.innerProperties().withAltitudeMeters(altitudeMeters); + return this; + } + + /** + * Get the releaseMode property: Release Status of a ground station. + * + * @return the releaseMode value. + */ + public ReleaseMode releaseMode() { + return this.innerProperties() == null ? null : this.innerProperties().releaseMode(); + } + + /** + * Set the releaseMode property: Release Status of a ground station. + * + * @param releaseMode the releaseMode value to set. + * @return the AvailableGroundStationInner object itself. + */ + public AvailableGroundStationInner withReleaseMode(ReleaseMode releaseMode) { + if (this.innerProperties() == null) { + this.innerProperties = new AvailableGroundStationProperties(); + } + this.innerProperties().withReleaseMode(releaseMode); + return this; + } + /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerProperties() != null) { + if (innerProperties() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerProperties in model AvailableGroundStationInner")); + } else { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(AvailableGroundStationInner.class); } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/AvailableGroundStationProperties.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/AvailableGroundStationProperties.java index fee216dfc23d..5e56049c4edd 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/AvailableGroundStationProperties.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/AvailableGroundStationProperties.java @@ -11,6 +11,10 @@ /** The properties bag for this resource. */ @Fluent public final class AvailableGroundStationProperties extends AvailableGroundStationPropertiesAutoGenerated { + /** Creates an instance of AvailableGroundStationProperties class. */ + public AvailableGroundStationProperties() { + } + /** {@inheritDoc} */ @Override public AvailableGroundStationProperties withCity(String city) { diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/ContactInner.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/ContactInner.java index 61f715efb2f8..3f6f5d5d22b3 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/ContactInner.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/ContactInner.java @@ -6,6 +6,8 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.orbital.models.ContactsPropertiesAntennaConfiguration; import com.azure.resourcemanager.orbital.models.ContactsPropertiesContactProfile; import com.azure.resourcemanager.orbital.models.ContactsPropertiesProvisioningState; @@ -19,14 +21,18 @@ public final class ContactInner extends ProxyResource { /* * Properties of the Contact Resource. */ - @JsonProperty(value = "properties") - private ContactsProperties innerProperties; + @JsonProperty(value = "properties", required = true) + private ContactsProperties innerProperties = new ContactsProperties(); /* - * A unique read-only string that changes whenever the resource is updated. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + + /** Creates an instance of ContactInner class. */ + public ContactInner() { + } /** * Get the innerProperties property: Properties of the Contact Resource. @@ -38,12 +44,12 @@ private ContactsProperties innerProperties() { } /** - * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * - * @return the etag value. + * @return the systemData value. */ - public String etag() { - return this.etag; + public SystemData systemData() { + return this.systemData; } /** @@ -275,8 +281,14 @@ public ContactInner withContactProfile(ContactsPropertiesContactProfile contactP * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerProperties() != null) { + if (innerProperties() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException("Missing required property innerProperties in model ContactInner")); + } else { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(ContactInner.class); } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/ContactProfileInner.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/ContactProfileInner.java index 8a7205643357..b15e9c4ce73f 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/ContactProfileInner.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/ContactProfileInner.java @@ -7,7 +7,14 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; import com.azure.core.management.SystemData; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.orbital.models.AutoTrackingConfiguration; +import com.azure.resourcemanager.orbital.models.ContactProfileLink; +import com.azure.resourcemanager.orbital.models.ContactProfileThirdPartyConfiguration; +import com.azure.resourcemanager.orbital.models.ContactProfilesPropertiesNetworkConfiguration; +import com.azure.resourcemanager.orbital.models.ContactProfilesPropertiesProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; import java.util.Map; /** @@ -19,22 +26,19 @@ public final class ContactProfileInner extends Resource { /* * Properties of the contact profile resource. */ - @JsonProperty(value = "properties") - private ContactProfileProperties innerProperties; + @JsonProperty(value = "properties", required = true) + private ContactProfileProperties innerProperties = new ContactProfileProperties(); /* - * A unique read-only string that changes whenever the resource is updated. - */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy - * information. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of ContactProfileInner class. */ + public ContactProfileInner() { + } + /** * Get the innerProperties property: Properties of the contact profile resource. * @@ -44,15 +48,6 @@ private ContactProfileProperties innerProperties() { return this.innerProperties; } - /** - * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * @@ -76,14 +71,215 @@ public ContactProfileInner withTags(Map tags) { return this; } + /** + * Get the provisioningState property: The current state of the resource's creation, deletion, or modification. + * + * @return the provisioningState value. + */ + public ContactProfilesPropertiesProvisioningState provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Set the provisioningState property: The current state of the resource's creation, deletion, or modification. + * + * @param provisioningState the provisioningState value to set. + * @return the ContactProfileInner object itself. + */ + public ContactProfileInner withProvisioningState(ContactProfilesPropertiesProvisioningState provisioningState) { + if (this.innerProperties() == null) { + this.innerProperties = new ContactProfileProperties(); + } + this.innerProperties().withProvisioningState(provisioningState); + return this; + } + + /** + * Get the minimumViableContactDuration property: Minimum viable contact duration in ISO 8601 format. Used for + * listing the available contacts with a spacecraft at a given ground station. + * + * @return the minimumViableContactDuration value. + */ + public String minimumViableContactDuration() { + return this.innerProperties() == null ? null : this.innerProperties().minimumViableContactDuration(); + } + + /** + * Set the minimumViableContactDuration property: Minimum viable contact duration in ISO 8601 format. Used for + * listing the available contacts with a spacecraft at a given ground station. + * + * @param minimumViableContactDuration the minimumViableContactDuration value to set. + * @return the ContactProfileInner object itself. + */ + public ContactProfileInner withMinimumViableContactDuration(String minimumViableContactDuration) { + if (this.innerProperties() == null) { + this.innerProperties = new ContactProfileProperties(); + } + this.innerProperties().withMinimumViableContactDuration(minimumViableContactDuration); + return this; + } + + /** + * Get the minimumElevationDegrees property: Minimum viable elevation for the contact in decimal degrees. Used for + * listing the available contacts with a spacecraft at a given ground station. + * + * @return the minimumElevationDegrees value. + */ + public Float minimumElevationDegrees() { + return this.innerProperties() == null ? null : this.innerProperties().minimumElevationDegrees(); + } + + /** + * Set the minimumElevationDegrees property: Minimum viable elevation for the contact in decimal degrees. Used for + * listing the available contacts with a spacecraft at a given ground station. + * + * @param minimumElevationDegrees the minimumElevationDegrees value to set. + * @return the ContactProfileInner object itself. + */ + public ContactProfileInner withMinimumElevationDegrees(Float minimumElevationDegrees) { + if (this.innerProperties() == null) { + this.innerProperties = new ContactProfileProperties(); + } + this.innerProperties().withMinimumElevationDegrees(minimumElevationDegrees); + return this; + } + + /** + * Get the autoTrackingConfiguration property: Auto-tracking configuration. + * + * @return the autoTrackingConfiguration value. + */ + public AutoTrackingConfiguration autoTrackingConfiguration() { + return this.innerProperties() == null ? null : this.innerProperties().autoTrackingConfiguration(); + } + + /** + * Set the autoTrackingConfiguration property: Auto-tracking configuration. + * + * @param autoTrackingConfiguration the autoTrackingConfiguration value to set. + * @return the ContactProfileInner object itself. + */ + public ContactProfileInner withAutoTrackingConfiguration(AutoTrackingConfiguration autoTrackingConfiguration) { + if (this.innerProperties() == null) { + this.innerProperties = new ContactProfileProperties(); + } + this.innerProperties().withAutoTrackingConfiguration(autoTrackingConfiguration); + return this; + } + + /** + * Get the eventHubUri property: ARM resource identifier of the Event Hub used for telemetry. Requires granting + * Orbital Resource Provider the rights to send telemetry into the hub. + * + * @return the eventHubUri value. + */ + public String eventHubUri() { + return this.innerProperties() == null ? null : this.innerProperties().eventHubUri(); + } + + /** + * Set the eventHubUri property: ARM resource identifier of the Event Hub used for telemetry. Requires granting + * Orbital Resource Provider the rights to send telemetry into the hub. + * + * @param eventHubUri the eventHubUri value to set. + * @return the ContactProfileInner object itself. + */ + public ContactProfileInner withEventHubUri(String eventHubUri) { + if (this.innerProperties() == null) { + this.innerProperties = new ContactProfileProperties(); + } + this.innerProperties().withEventHubUri(eventHubUri); + return this; + } + + /** + * Get the networkConfiguration property: Network configuration of customer virtual network. + * + * @return the networkConfiguration value. + */ + public ContactProfilesPropertiesNetworkConfiguration networkConfiguration() { + return this.innerProperties() == null ? null : this.innerProperties().networkConfiguration(); + } + + /** + * Set the networkConfiguration property: Network configuration of customer virtual network. + * + * @param networkConfiguration the networkConfiguration value to set. + * @return the ContactProfileInner object itself. + */ + public ContactProfileInner withNetworkConfiguration( + ContactProfilesPropertiesNetworkConfiguration networkConfiguration) { + if (this.innerProperties() == null) { + this.innerProperties = new ContactProfileProperties(); + } + this.innerProperties().withNetworkConfiguration(networkConfiguration); + return this; + } + + /** + * Get the thirdPartyConfigurations property: Third-party mission configuration of the Contact Profile. Describes RF + * links, modem processing, and IP endpoints. + * + * @return the thirdPartyConfigurations value. + */ + public List thirdPartyConfigurations() { + return this.innerProperties() == null ? null : this.innerProperties().thirdPartyConfigurations(); + } + + /** + * Set the thirdPartyConfigurations property: Third-party mission configuration of the Contact Profile. Describes RF + * links, modem processing, and IP endpoints. + * + * @param thirdPartyConfigurations the thirdPartyConfigurations value to set. + * @return the ContactProfileInner object itself. + */ + public ContactProfileInner withThirdPartyConfigurations( + List thirdPartyConfigurations) { + if (this.innerProperties() == null) { + this.innerProperties = new ContactProfileProperties(); + } + this.innerProperties().withThirdPartyConfigurations(thirdPartyConfigurations); + return this; + } + + /** + * Get the links property: Links of the Contact Profile. Describes RF links, modem processing, and IP endpoints. + * + * @return the links value. + */ + public List links() { + return this.innerProperties() == null ? null : this.innerProperties().links(); + } + + /** + * Set the links property: Links of the Contact Profile. Describes RF links, modem processing, and IP endpoints. + * + * @param links the links value to set. + * @return the ContactProfileInner object itself. + */ + public ContactProfileInner withLinks(List links) { + if (this.innerProperties() == null) { + this.innerProperties = new ContactProfileProperties(); + } + this.innerProperties().withLinks(links); + return this; + } + /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerProperties() != null) { + if (innerProperties() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property innerProperties in model ContactProfileInner")); + } else { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(ContactProfileInner.class); } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/ContactProfileProperties.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/ContactProfileProperties.java index 4b6813e8c4fb..3ba838d6795a 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/ContactProfileProperties.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/ContactProfileProperties.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.orbital.models.AutoTrackingConfiguration; import com.azure.resourcemanager.orbital.models.ContactProfileLink; +import com.azure.resourcemanager.orbital.models.ContactProfileThirdPartyConfiguration; import com.azure.resourcemanager.orbital.models.ContactProfilesProperties; import com.azure.resourcemanager.orbital.models.ContactProfilesPropertiesNetworkConfiguration; import com.azure.resourcemanager.orbital.models.ContactProfilesPropertiesProvisioningState; @@ -15,6 +16,10 @@ /** Properties of the contact profile resource. */ @Fluent public final class ContactProfileProperties extends ContactProfilesProperties { + /** Creates an instance of ContactProfileProperties class. */ + public ContactProfileProperties() { + } + /** {@inheritDoc} */ @Override public ContactProfileProperties withProvisioningState( @@ -59,6 +64,14 @@ public ContactProfileProperties withNetworkConfiguration( return this; } + /** {@inheritDoc} */ + @Override + public ContactProfileProperties withThirdPartyConfigurations( + List thirdPartyConfigurations) { + super.withThirdPartyConfigurations(thirdPartyConfigurations); + return this; + } + /** {@inheritDoc} */ @Override public ContactProfileProperties withLinks(List links) { diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/ContactsProperties.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/ContactsProperties.java index 23ad745e3b23..24e5ada43820 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/ContactsProperties.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/ContactsProperties.java @@ -118,6 +118,10 @@ public final class ContactsProperties { @JsonProperty(value = "contactProfile", required = true) private ContactsPropertiesContactProfile contactProfile; + /** Creates an instance of ContactsProperties class. */ + public ContactsProperties() { + } + /** * Get the provisioningState property: The current state of the resource's creation, deletion, or modification. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/OperationInner.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/OperationInner.java index 1dd02237882b..5debc08bd852 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/OperationInner.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/OperationInner.java @@ -10,20 +10,23 @@ import com.azure.resourcemanager.orbital.models.Origin; import com.fasterxml.jackson.annotation.JsonProperty; -/** REST API Operation Details of a REST API operation, returned from the Resource Provider Operations API. */ +/** + * REST API Operation + * + *

Details of a REST API operation, returned from the Resource Provider Operations API. + */ @Fluent public final class OperationInner { /* - * The name of the operation, as per Resource-Based Access Control (RBAC). - * Examples: "Microsoft.Compute/virtualMachines/write", - * "Microsoft.Compute/virtualMachines/capture/action" + * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: + * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name; /* - * Whether the operation applies to data-plane. This is "true" for - * data-plane operations and "false" for ARM/control-plane operations. + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for + * ARM/control-plane operations. */ @JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY) private Boolean isDataAction; @@ -35,19 +38,22 @@ public final class OperationInner { private OperationDisplay display; /* - * The intended executor of the operation; as in Resource Based Access - * Control (RBAC) and audit logs UX. Default value is "user,system" + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default + * value is "user,system" */ @JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY) private Origin origin; /* - * Enum. Indicates the action type. "Internal" refers to actions that are - * for internal only APIs. + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ @JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY) private ActionType actionType; + /** Creates an instance of OperationInner class. */ + public OperationInner() { + } + /** * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action". diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/OperationResultInner.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/OperationResultInner.java index 9d40f139d82c..2e3c0dc5f5ca 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/OperationResultInner.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/OperationResultInner.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.orbital.models.Status; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; +import java.util.List; /** Operation Result Entity. */ @Fluent @@ -49,6 +50,18 @@ public final class OperationResultInner { @JsonProperty(value = "percentComplete", access = JsonProperty.Access.WRITE_ONLY) private Double percentComplete; + /* + * A list of results when the operation returns multiple results. + */ + @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY) + private List value; + + /* + * The URL to get the next set of results. + */ + @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) + private String nextLink; + /* * Operation result properties. */ @@ -61,6 +74,10 @@ public final class OperationResultInner { @JsonProperty(value = "error") private OperationResultErrorProperties error; + /** Creates an instance of OperationResultInner class. */ + public OperationResultInner() { + } + /** * Get the id property: ID of the resource. * @@ -115,6 +132,24 @@ public Double percentComplete() { return this.percentComplete; } + /** + * Get the value property: A list of results when the operation returns multiple results. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The URL to get the next set of results. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + /** * Get the properties property: Operation result properties. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/SpacecraftInner.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/SpacecraftInner.java index a9207109e0b0..9d89f0f9f95d 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/SpacecraftInner.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/SpacecraftInner.java @@ -6,6 +6,8 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.orbital.models.SpacecraftLink; import com.azure.resourcemanager.orbital.models.SpacecraftsPropertiesProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; @@ -18,14 +20,18 @@ public final class SpacecraftInner extends Resource { /* * Spacecraft Properties */ - @JsonProperty(value = "properties") - private SpacecraftsProperties innerProperties; + @JsonProperty(value = "properties", required = true) + private SpacecraftsProperties innerProperties = new SpacecraftsProperties(); /* - * A unique read-only string that changes whenever the resource is updated. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) - private String etag; + @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) + private SystemData systemData; + + /** Creates an instance of SpacecraftInner class. */ + public SpacecraftInner() { + } /** * Get the innerProperties property: Spacecraft Properties. @@ -37,12 +43,12 @@ private SpacecraftsProperties innerProperties() { } /** - * Get the etag property: A unique read-only string that changes whenever the resource is updated. + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * - * @return the etag value. + * @return the systemData value. */ - public String etag() { - return this.etag; + public SystemData systemData() { + return this.systemData; } /** {@inheritDoc} */ @@ -203,8 +209,14 @@ public SpacecraftInner withLinks(List links) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (innerProperties() != null) { + if (innerProperties() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException("Missing required property innerProperties in model SpacecraftInner")); + } else { innerProperties().validate(); } } + + private static final ClientLogger LOGGER = new ClientLogger(SpacecraftInner.class); } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/SpacecraftsProperties.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/SpacecraftsProperties.java index fc2152ffd582..c2ee347d7d3c 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/SpacecraftsProperties.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/fluent/models/SpacecraftsProperties.java @@ -23,33 +23,37 @@ public final class SpacecraftsProperties { /* * NORAD ID of the spacecraft. */ - @JsonProperty(value = "noradId", required = true) + @JsonProperty(value = "noradId") private String noradId; /* * Title line of the two-line element set (TLE). */ - @JsonProperty(value = "titleLine") + @JsonProperty(value = "titleLine", required = true) private String titleLine; /* * Line 1 of the two-line element set (TLE). */ - @JsonProperty(value = "tleLine1") + @JsonProperty(value = "tleLine1", required = true) private String tleLine1; /* * Line 2 of the two-line element set (TLE). */ - @JsonProperty(value = "tleLine2") + @JsonProperty(value = "tleLine2", required = true) private String tleLine2; /* * Immutable list of Spacecraft links. */ - @JsonProperty(value = "links") + @JsonProperty(value = "links", required = true) private List links; + /** Creates an instance of SpacecraftsProperties class. */ + public SpacecraftsProperties() { + } + /** * Get the provisioningState property: The current state of the resource's creation, deletion, or modification. * @@ -176,12 +180,26 @@ public SpacecraftsProperties withLinks(List links) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { - if (noradId() == null) { + if (titleLine() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException("Missing required property titleLine in model SpacecraftsProperties")); + } + if (tleLine1() == null) { throw LOGGER .logExceptionAsError( - new IllegalArgumentException("Missing required property noradId in model SpacecraftsProperties")); + new IllegalArgumentException("Missing required property tleLine1 in model SpacecraftsProperties")); } - if (links() != null) { + if (tleLine2() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException("Missing required property tleLine2 in model SpacecraftsProperties")); + } + if (links() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException("Missing required property links in model SpacecraftsProperties")); + } else { links().forEach(e -> e.validate()); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AvailableContactsImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AvailableContactsImpl.java index 39f2315c90f4..7ed05683856d 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AvailableContactsImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AvailableContactsImpl.java @@ -7,6 +7,7 @@ import com.azure.resourcemanager.orbital.fluent.models.AvailableContactsInner; import com.azure.resourcemanager.orbital.models.AvailableContacts; import com.azure.resourcemanager.orbital.models.AvailableContactsSpacecraft; +import java.time.OffsetDateTime; public final class AvailableContactsImpl implements AvailableContacts { private AvailableContactsInner innerObject; @@ -27,6 +28,42 @@ public String groundStationName() { return this.innerModel().groundStationName(); } + public Float maximumElevationDegrees() { + return this.innerModel().maximumElevationDegrees(); + } + + public OffsetDateTime txStartTime() { + return this.innerModel().txStartTime(); + } + + public OffsetDateTime txEndTime() { + return this.innerModel().txEndTime(); + } + + public OffsetDateTime rxStartTime() { + return this.innerModel().rxStartTime(); + } + + public OffsetDateTime rxEndTime() { + return this.innerModel().rxEndTime(); + } + + public Float startAzimuthDegrees() { + return this.innerModel().startAzimuthDegrees(); + } + + public Float endAzimuthDegrees() { + return this.innerModel().endAzimuthDegrees(); + } + + public Float startElevationDegrees() { + return this.innerModel().startElevationDegrees(); + } + + public Float endElevationDegrees() { + return this.innerModel().endElevationDegrees(); + } + public AvailableContactsInner innerModel() { return this.innerObject; } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AvailableGroundStationImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AvailableGroundStationImpl.java index bd0e3d2801e5..64c067bd955c 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AvailableGroundStationImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AvailableGroundStationImpl.java @@ -6,6 +6,7 @@ import com.azure.resourcemanager.orbital.fluent.models.AvailableGroundStationInner; import com.azure.resourcemanager.orbital.models.AvailableGroundStation; +import com.azure.resourcemanager.orbital.models.ReleaseMode; public final class AvailableGroundStationImpl implements AvailableGroundStation { private AvailableGroundStationInner innerObject; @@ -34,6 +35,30 @@ public String type() { return this.innerModel().type(); } + public String city() { + return this.innerModel().city(); + } + + public String providerName() { + return this.innerModel().providerName(); + } + + public Float longitudeDegrees() { + return this.innerModel().longitudeDegrees(); + } + + public Float latitudeDegrees() { + return this.innerModel().latitudeDegrees(); + } + + public Float altitudeMeters() { + return this.innerModel().altitudeMeters(); + } + + public ReleaseMode releaseMode() { + return this.innerModel().releaseMode(); + } + public AvailableGroundStationInner innerModel() { return this.innerObject; } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AvailableGroundStationsClientImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AvailableGroundStationsClientImpl.java index 8c610bdcc3f5..09ab50a28e1a 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AvailableGroundStationsClientImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AvailableGroundStationsClientImpl.java @@ -57,7 +57,7 @@ public final class AvailableGroundStationsClientImpl implements AvailableGroundS */ @Host("{$host}") @ServiceInterface(name = "AzureOrbitalAvailabl") - private interface AvailableGroundStationsService { + public interface AvailableGroundStationsService { @Headers({"Content-Type: application/json"}) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Orbital/availableGroundStations") @ExpectedResponses({200}) @@ -70,18 +70,6 @@ Mono> list( @HeaderParam("Accept") String accept, Context context); - @Headers({"Content-Type: application/json"}) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Orbital/availableGroundStations/{groundStationName}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("groundStationName") String groundStationName, - @QueryParam("api-version") String apiVersion, - @HeaderParam("Accept") String accept, - Context context); - @Headers({"Content-Type: application/json"}) @Get("{nextLink}") @ExpectedResponses({200}) @@ -257,138 +245,11 @@ public PagedIterable list(CapabilityParameter capab return new PagedIterable<>(listAsync(capability, context)); } - /** - * Gets the specified available ground station. - * - * @param groundStationName Ground Station name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified available ground station along with {@link Response} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String groundStationName) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (groundStationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter groundStationName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - groundStationName, - this.client.getApiVersion(), - accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets the specified available ground station. - * - * @param groundStationName Ground Station name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified available ground station along with {@link Response} on successful completion of {@link - * Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync( - String groundStationName, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (groundStationName == null) { - return Mono - .error(new IllegalArgumentException("Parameter groundStationName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .get( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - groundStationName, - this.client.getApiVersion(), - accept, - context); - } - - /** - * Gets the specified available ground station. - * - * @param groundStationName Ground Station name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified available ground station on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String groundStationName) { - return getWithResponseAsync(groundStationName).flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets the specified available ground station. - * - * @param groundStationName Ground Station name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified available ground station. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public AvailableGroundStationInner get(String groundStationName) { - return getAsync(groundStationName).block(); - } - - /** - * Gets the specified available ground station. - * - * @param groundStationName Ground Station name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified available ground station along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String groundStationName, Context context) { - return getWithResponseAsync(groundStationName, context).block(); - } - /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -424,7 +285,8 @@ private Mono> listByCapabilityNextSin /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AvailableGroundStationsImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AvailableGroundStationsImpl.java index 3b290a4f98cd..ab1c4c4821e6 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AvailableGroundStationsImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AvailableGroundStationsImpl.java @@ -5,8 +5,6 @@ package com.azure.resourcemanager.orbital.implementation; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.orbital.fluent.AvailableGroundStationsClient; @@ -38,28 +36,6 @@ public PagedIterable list(CapabilityParameter capability return Utils.mapPage(inner, inner1 -> new AvailableGroundStationImpl(inner1, this.manager())); } - public AvailableGroundStation get(String groundStationName) { - AvailableGroundStationInner inner = this.serviceClient().get(groundStationName); - if (inner != null) { - return new AvailableGroundStationImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response getWithResponse(String groundStationName, Context context) { - Response inner = this.serviceClient().getWithResponse(groundStationName, context); - if (inner != null) { - return new SimpleResponse<>( - inner.getRequest(), - inner.getStatusCode(), - inner.getHeaders(), - new AvailableGroundStationImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - private AvailableGroundStationsClient serviceClient() { return this.innerClient; } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AzureOrbitalBuilder.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AzureOrbitalBuilder.java index a7fafa39f730..6f805c36f849 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AzureOrbitalBuilder.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AzureOrbitalBuilder.java @@ -119,24 +119,26 @@ public AzureOrbitalBuilder serializerAdapter(SerializerAdapter serializerAdapter * @return an instance of AzureOrbitalImpl. */ public AzureOrbitalImpl buildClient() { - if (endpoint == null) { - this.endpoint = "https://management.azure.com"; - } - if (environment == null) { - this.environment = AzureEnvironment.AZURE; - } - if (pipeline == null) { - this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); - } - if (defaultPollInterval == null) { - this.defaultPollInterval = Duration.ofSeconds(30); - } - if (serializerAdapter == null) { - this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); - } + String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; + AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; + HttpPipeline localPipeline = + (pipeline != null) + ? pipeline + : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + Duration localDefaultPollInterval = + (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); + SerializerAdapter localSerializerAdapter = + (serializerAdapter != null) + ? serializerAdapter + : SerializerFactory.createDefaultManagementSerializerAdapter(); AzureOrbitalImpl client = new AzureOrbitalImpl( - pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint); + localPipeline, + localSerializerAdapter, + localDefaultPollInterval, + localEnvironment, + subscriptionId, + localEndpoint); return client; } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AzureOrbitalImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AzureOrbitalImpl.java index b73d7e148774..00f04ea3de74 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AzureOrbitalImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/AzureOrbitalImpl.java @@ -207,7 +207,7 @@ public OperationsResultsClient getOperationsResults() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2022-03-01"; + this.apiVersion = "2022-11-01"; this.operations = new OperationsClientImpl(this); this.spacecrafts = new SpacecraftsClientImpl(this); this.contacts = new ContactsClientImpl(this); diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactImpl.java index 247520c781ca..a1b6012026dd 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactImpl.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.orbital.implementation; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.orbital.fluent.models.ContactInner; import com.azure.resourcemanager.orbital.models.Contact; @@ -35,8 +36,8 @@ public String type() { return this.innerModel().type(); } - public String etag() { - return this.innerModel().etag(); + public SystemData systemData() { + return this.innerModel().systemData(); } public ContactsPropertiesProvisioningState provisioningState() { @@ -171,11 +172,6 @@ public Contact refresh(Context context) { return this; } - public ContactImpl withProvisioningState(ContactsPropertiesProvisioningState provisioningState) { - this.innerModel().withProvisioningState(provisioningState); - return this; - } - public ContactImpl withReservationStartTime(OffsetDateTime reservationStartTime) { this.innerModel().withReservationStartTime(reservationStartTime); return this; @@ -195,4 +191,9 @@ public ContactImpl withContactProfile(ContactsPropertiesContactProfile contactPr this.innerModel().withContactProfile(contactProfile); return this; } + + public ContactImpl withProvisioningState(ContactsPropertiesProvisioningState provisioningState) { + this.innerModel().withProvisioningState(provisioningState); + return this; + } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactProfileImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactProfileImpl.java index 85ed0ad1a9c6..f98cc71a1e52 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactProfileImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactProfileImpl.java @@ -8,9 +8,15 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.orbital.fluent.models.ContactProfileInner; +import com.azure.resourcemanager.orbital.models.AutoTrackingConfiguration; import com.azure.resourcemanager.orbital.models.ContactProfile; +import com.azure.resourcemanager.orbital.models.ContactProfileLink; +import com.azure.resourcemanager.orbital.models.ContactProfileThirdPartyConfiguration; +import com.azure.resourcemanager.orbital.models.ContactProfilesPropertiesNetworkConfiguration; +import com.azure.resourcemanager.orbital.models.ContactProfilesPropertiesProvisioningState; import com.azure.resourcemanager.orbital.models.TagsObject; import java.util.Collections; +import java.util.List; import java.util.Map; public final class ContactProfileImpl implements ContactProfile, ContactProfile.Definition, ContactProfile.Update { @@ -43,14 +49,52 @@ public Map tags() { } } - public String etag() { - return this.innerModel().etag(); - } - public SystemData systemData() { return this.innerModel().systemData(); } + public ContactProfilesPropertiesProvisioningState provisioningState() { + return this.innerModel().provisioningState(); + } + + public String minimumViableContactDuration() { + return this.innerModel().minimumViableContactDuration(); + } + + public Float minimumElevationDegrees() { + return this.innerModel().minimumElevationDegrees(); + } + + public AutoTrackingConfiguration autoTrackingConfiguration() { + return this.innerModel().autoTrackingConfiguration(); + } + + public String eventHubUri() { + return this.innerModel().eventHubUri(); + } + + public ContactProfilesPropertiesNetworkConfiguration networkConfiguration() { + return this.innerModel().networkConfiguration(); + } + + public List thirdPartyConfigurations() { + List inner = this.innerModel().thirdPartyConfigurations(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public List links() { + List inner = this.innerModel().links(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + public Region region() { return Region.fromName(this.regionName()); } @@ -167,6 +211,17 @@ public ContactProfileImpl withRegion(String location) { return this; } + public ContactProfileImpl withNetworkConfiguration( + ContactProfilesPropertiesNetworkConfiguration networkConfiguration) { + this.innerModel().withNetworkConfiguration(networkConfiguration); + return this; + } + + public ContactProfileImpl withLinks(List links) { + this.innerModel().withLinks(links); + return this; + } + public ContactProfileImpl withTags(Map tags) { if (isInCreateMode()) { this.innerModel().withTags(tags); @@ -177,6 +232,37 @@ public ContactProfileImpl withTags(Map tags) { } } + public ContactProfileImpl withProvisioningState(ContactProfilesPropertiesProvisioningState provisioningState) { + this.innerModel().withProvisioningState(provisioningState); + return this; + } + + public ContactProfileImpl withMinimumViableContactDuration(String minimumViableContactDuration) { + this.innerModel().withMinimumViableContactDuration(minimumViableContactDuration); + return this; + } + + public ContactProfileImpl withMinimumElevationDegrees(Float minimumElevationDegrees) { + this.innerModel().withMinimumElevationDegrees(minimumElevationDegrees); + return this; + } + + public ContactProfileImpl withAutoTrackingConfiguration(AutoTrackingConfiguration autoTrackingConfiguration) { + this.innerModel().withAutoTrackingConfiguration(autoTrackingConfiguration); + return this; + } + + public ContactProfileImpl withEventHubUri(String eventHubUri) { + this.innerModel().withEventHubUri(eventHubUri); + return this; + } + + public ContactProfileImpl withThirdPartyConfigurations( + List thirdPartyConfigurations) { + this.innerModel().withThirdPartyConfigurations(thirdPartyConfigurations); + return this; + } + private boolean isInCreateMode() { return this.innerModel().id() == null; } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactProfilesClientImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactProfilesClientImpl.java index 4849a0f87b3b..a008a9224382 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactProfilesClientImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactProfilesClientImpl.java @@ -65,7 +65,7 @@ public final class ContactProfilesClientImpl implements ContactProfilesClient { */ @Host("{$host}") @ServiceInterface(name = "AzureOrbitalContactP") - private interface ContactProfilesService { + public interface ContactProfilesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Orbital" @@ -295,14 +295,16 @@ private Mono getByResourceGroupAsync(String resourceGroupNa * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param contactProfileName Contact Profile name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified contact Profile in a specified resource group. + * @return the specified contact Profile in a specified resource group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ContactProfileInner getByResourceGroup(String resourceGroupName, String contactProfileName) { - return getByResourceGroupAsync(resourceGroupName, contactProfileName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String contactProfileName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, contactProfileName, context).block(); } /** @@ -310,16 +312,14 @@ public ContactProfileInner getByResourceGroup(String resourceGroupName, String c * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param contactProfileName Contact Profile name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified contact Profile in a specified resource group along with {@link Response}. + * @return the specified contact Profile in a specified resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String contactProfileName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, contactProfileName, context).block(); + public ContactProfileInner getByResourceGroup(String resourceGroupName, String contactProfileName) { + return getByResourceGroupWithResponse(resourceGroupName, contactProfileName, Context.NONE).getValue(); } /** @@ -501,7 +501,7 @@ private PollerFlux, ContactProfileInner> beginCr @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ContactProfileInner> beginCreateOrUpdate( String resourceGroupName, String contactProfileName, ContactProfileInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, contactProfileName, parameters).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, contactProfileName, parameters).getSyncPoller(); } /** @@ -520,7 +520,9 @@ public SyncPoller, ContactProfileInner> beginCre @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ContactProfileInner> beginCreateOrUpdate( String resourceGroupName, String contactProfileName, ContactProfileInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, contactProfileName, parameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, contactProfileName, parameters, context) + .getSyncPoller(); } /** @@ -749,7 +751,7 @@ private PollerFlux, Void> beginDeleteAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String contactProfileName) { - return beginDeleteAsync(resourceGroupName, contactProfileName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, contactProfileName).getSyncPoller(); } /** @@ -766,7 +768,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String contactProfileName, Context context) { - return beginDeleteAsync(resourceGroupName, contactProfileName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, contactProfileName, context).getSyncPoller(); } /** @@ -1012,7 +1014,7 @@ private PollerFlux, ContactProfileInner> beginUp @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ContactProfileInner> beginUpdateTags( String resourceGroupName, String contactProfileName, TagsObject parameters) { - return beginUpdateTagsAsync(resourceGroupName, contactProfileName, parameters).getSyncPoller(); + return this.beginUpdateTagsAsync(resourceGroupName, contactProfileName, parameters).getSyncPoller(); } /** @@ -1031,7 +1033,7 @@ public SyncPoller, ContactProfileInner> beginUpd @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ContactProfileInner> beginUpdateTags( String resourceGroupName, String contactProfileName, TagsObject parameters, Context context) { - return beginUpdateTagsAsync(resourceGroupName, contactProfileName, parameters, context).getSyncPoller(); + return this.beginUpdateTagsAsync(resourceGroupName, contactProfileName, parameters, context).getSyncPoller(); } /** @@ -1505,7 +1507,8 @@ public PagedIterable listByResourceGroup( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1542,7 +1545,8 @@ private Mono> listBySubscriptionNextSinglePag /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1580,7 +1584,8 @@ private Mono> listBySubscriptionNextSinglePag /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1616,7 +1621,8 @@ private Mono> listNextSinglePageAsync(String /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactProfilesImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactProfilesImpl.java index d45311cbb41c..83cfb39c2548 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactProfilesImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactProfilesImpl.java @@ -27,15 +27,6 @@ public ContactProfilesImpl( this.serviceManager = serviceManager; } - public ContactProfile getByResourceGroup(String resourceGroupName, String contactProfileName) { - ContactProfileInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, contactProfileName); - if (inner != null) { - return new ContactProfileImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String contactProfileName, Context context) { Response inner = @@ -51,6 +42,15 @@ public Response getByResourceGroupWithResponse( } } + public ContactProfile getByResourceGroup(String resourceGroupName, String contactProfileName) { + ContactProfileInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, contactProfileName); + if (inner != null) { + return new ContactProfileImpl(inner, this.manager()); + } else { + return null; + } + } + public void deleteByResourceGroup(String resourceGroupName, String contactProfileName) { this.serviceClient().delete(resourceGroupName, contactProfileName); } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactsClientImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactsClientImpl.java index 5b46bc3a0f4c..312fafb96e95 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactsClientImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactsClientImpl.java @@ -62,7 +62,7 @@ public final class ContactsClientImpl implements ContactsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureOrbitalContacts") - private interface ContactsService { + public interface ContactsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Orbital/spacecrafts" @@ -491,14 +491,16 @@ private Mono getAsync(String resourceGroupName, String spacecraftN * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param spacecraftName Spacecraft ID. * @param contactName Contact name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified contact in a specified resource group. + * @return the specified contact in a specified resource group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ContactInner get(String resourceGroupName, String spacecraftName, String contactName) { - return getAsync(resourceGroupName, spacecraftName, contactName).block(); + public Response getWithResponse( + String resourceGroupName, String spacecraftName, String contactName, Context context) { + return getWithResponseAsync(resourceGroupName, spacecraftName, contactName, context).block(); } /** @@ -507,16 +509,14 @@ public ContactInner get(String resourceGroupName, String spacecraftName, String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param spacecraftName Spacecraft ID. * @param contactName Contact name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified contact in a specified resource group along with {@link Response}. + * @return the specified contact in a specified resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String spacecraftName, String contactName, Context context) { - return getWithResponseAsync(resourceGroupName, spacecraftName, contactName, context).block(); + public ContactInner get(String resourceGroupName, String spacecraftName, String contactName) { + return getWithResponse(resourceGroupName, spacecraftName, contactName, Context.NONE).getValue(); } /** @@ -702,7 +702,7 @@ private PollerFlux, ContactInner> beginCreateAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ContactInner> beginCreate( String resourceGroupName, String spacecraftName, String contactName, ContactInner parameters) { - return beginCreateAsync(resourceGroupName, spacecraftName, contactName, parameters).getSyncPoller(); + return this.beginCreateAsync(resourceGroupName, spacecraftName, contactName, parameters).getSyncPoller(); } /** @@ -721,7 +721,9 @@ public SyncPoller, ContactInner> beginCreate( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ContactInner> beginCreate( String resourceGroupName, String spacecraftName, String contactName, ContactInner parameters, Context context) { - return beginCreateAsync(resourceGroupName, spacecraftName, contactName, parameters, context).getSyncPoller(); + return this + .beginCreateAsync(resourceGroupName, spacecraftName, contactName, parameters, context) + .getSyncPoller(); } /** @@ -964,7 +966,7 @@ private PollerFlux, Void> beginDeleteAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String spacecraftName, String contactName) { - return beginDeleteAsync(resourceGroupName, spacecraftName, contactName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, spacecraftName, contactName).getSyncPoller(); } /** @@ -982,7 +984,7 @@ public SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String spacecraftName, String contactName, Context context) { - return beginDeleteAsync(resourceGroupName, spacecraftName, contactName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, spacecraftName, contactName, context).getSyncPoller(); } /** @@ -1057,7 +1059,8 @@ public void delete(String resourceGroupName, String spacecraftName, String conta /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1093,7 +1096,8 @@ private Mono> listNextSinglePageAsync(String nextLin /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactsImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactsImpl.java index 2015745e4579..c670261b64ec 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactsImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/ContactsImpl.java @@ -38,15 +38,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new ContactImpl(inner1, this.manager())); } - public Contact get(String resourceGroupName, String spacecraftName, String contactName) { - ContactInner inner = this.serviceClient().get(resourceGroupName, spacecraftName, contactName); - if (inner != null) { - return new ContactImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String spacecraftName, String contactName, Context context) { Response inner = @@ -62,6 +53,15 @@ public Response getWithResponse( } } + public Contact get(String resourceGroupName, String spacecraftName, String contactName) { + ContactInner inner = this.serviceClient().get(resourceGroupName, spacecraftName, contactName); + if (inner != null) { + return new ContactImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String spacecraftName, String contactName) { this.serviceClient().delete(resourceGroupName, spacecraftName, contactName); } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/OperationResultImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/OperationResultImpl.java index 7ef9b7abd0f2..b9dc8fdbac25 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/OperationResultImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/OperationResultImpl.java @@ -9,6 +9,8 @@ import com.azure.resourcemanager.orbital.models.OperationResultErrorProperties; import com.azure.resourcemanager.orbital.models.Status; import java.time.OffsetDateTime; +import java.util.Collections; +import java.util.List; public final class OperationResultImpl implements OperationResult { private OperationResultInner innerObject; @@ -45,6 +47,19 @@ public Double percentComplete() { return this.innerModel().percentComplete(); } + public List value() { + List inner = this.innerModel().value(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public String nextLink() { + return this.innerModel().nextLink(); + } + public Object properties() { return this.innerModel().properties(); } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/OperationsClientImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/OperationsClientImpl.java index b419b89e5ea7..dc8f8019b20b 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/OperationsClientImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/OperationsClientImpl.java @@ -54,7 +54,7 @@ public final class OperationsClientImpl implements OperationsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureOrbitalOperatio") - private interface OperationsService { + public interface OperationsService { @Headers({"Content-Type: application/json"}) @Get("/providers/Microsoft.Orbital/operations") @ExpectedResponses({200}) diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/OperationsResultsClientImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/OperationsResultsClientImpl.java index 7b6cbadb1a2d..1d70372143cd 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/OperationsResultsClientImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/OperationsResultsClientImpl.java @@ -55,7 +55,7 @@ public final class OperationsResultsClientImpl implements OperationsResultsClien */ @Host("{$host}") @ServiceInterface(name = "AzureOrbitalOperatio") - private interface OperationsResultsService { + public interface OperationsResultsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/providers/Microsoft.Orbital/locations/{location}/operationResults" @@ -222,7 +222,7 @@ private PollerFlux, OperationResultInner> begin @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, OperationResultInner> beginGet( String location, String operationId) { - return beginGetAsync(location, operationId).getSyncPoller(); + return this.beginGetAsync(location, operationId).getSyncPoller(); } /** @@ -239,7 +239,7 @@ public SyncPoller, OperationResultInner> beginG @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, OperationResultInner> beginGet( String location, String operationId, Context context) { - return beginGetAsync(location, operationId, context).getSyncPoller(); + return this.beginGetAsync(location, operationId, context).getSyncPoller(); } /** diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/SpacecraftImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/SpacecraftImpl.java index 4a2b0e9db991..aec8a2e24631 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/SpacecraftImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/SpacecraftImpl.java @@ -6,6 +6,7 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.Region; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.orbital.fluent.models.SpacecraftInner; import com.azure.resourcemanager.orbital.models.AvailableContacts; @@ -48,8 +49,8 @@ public Map tags() { } } - public String etag() { - return this.innerModel().etag(); + public SystemData systemData() { + return this.innerModel().systemData(); } public SpacecraftsPropertiesProvisioningState provisioningState() { @@ -206,26 +207,6 @@ public SpacecraftImpl withRegion(String location) { return this; } - public SpacecraftImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateParameters.withTags(tags); - return this; - } - } - - public SpacecraftImpl withProvisioningState(SpacecraftsPropertiesProvisioningState provisioningState) { - this.innerModel().withProvisioningState(provisioningState); - return this; - } - - public SpacecraftImpl withNoradId(String noradId) { - this.innerModel().withNoradId(noradId); - return this; - } - public SpacecraftImpl withTitleLine(String titleLine) { this.innerModel().withTitleLine(titleLine); return this; @@ -246,6 +227,26 @@ public SpacecraftImpl withLinks(List links) { return this; } + public SpacecraftImpl withTags(Map tags) { + if (isInCreateMode()) { + this.innerModel().withTags(tags); + return this; + } else { + this.updateParameters.withTags(tags); + return this; + } + } + + public SpacecraftImpl withProvisioningState(SpacecraftsPropertiesProvisioningState provisioningState) { + this.innerModel().withProvisioningState(provisioningState); + return this; + } + + public SpacecraftImpl withNoradId(String noradId) { + this.innerModel().withNoradId(noradId); + return this; + } + private boolean isInCreateMode() { return this.innerModel().id() == null; } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/SpacecraftsClientImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/SpacecraftsClientImpl.java index 6bb9acc59247..0d48335e29c7 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/SpacecraftsClientImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/SpacecraftsClientImpl.java @@ -69,7 +69,7 @@ public final class SpacecraftsClientImpl implements SpacecraftsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureOrbitalSpacecra") - private interface SpacecraftsService { + public interface SpacecraftsService { @Headers({"Content-Type: application/json"}) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Orbital/spacecrafts") @ExpectedResponses({200}) @@ -714,14 +714,16 @@ private Mono getByResourceGroupAsync(String resourceGroupName, * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param spacecraftName Spacecraft ID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified spacecraft in a specified resource group. + * @return the specified spacecraft in a specified resource group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public SpacecraftInner getByResourceGroup(String resourceGroupName, String spacecraftName) { - return getByResourceGroupAsync(resourceGroupName, spacecraftName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String spacecraftName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, spacecraftName, context).block(); } /** @@ -729,16 +731,14 @@ public SpacecraftInner getByResourceGroup(String resourceGroupName, String space * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param spacecraftName Spacecraft ID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified spacecraft in a specified resource group along with {@link Response}. + * @return the specified spacecraft in a specified resource group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String spacecraftName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, spacecraftName, context).block(); + public SpacecraftInner getByResourceGroup(String resourceGroupName, String spacecraftName) { + return getByResourceGroupWithResponse(resourceGroupName, spacecraftName, Context.NONE).getValue(); } /** @@ -915,7 +915,7 @@ private PollerFlux, SpacecraftInner> beginCreateOrUp @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SpacecraftInner> beginCreateOrUpdate( String resourceGroupName, String spacecraftName, SpacecraftInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, spacecraftName, parameters).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, spacecraftName, parameters).getSyncPoller(); } /** @@ -933,7 +933,7 @@ public SyncPoller, SpacecraftInner> beginCreateOrUpd @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SpacecraftInner> beginCreateOrUpdate( String resourceGroupName, String spacecraftName, SpacecraftInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, spacecraftName, parameters, context).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, spacecraftName, parameters, context).getSyncPoller(); } /** @@ -1154,7 +1154,7 @@ private PollerFlux, Void> beginDeleteAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String spacecraftName) { - return beginDeleteAsync(resourceGroupName, spacecraftName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, spacecraftName).getSyncPoller(); } /** @@ -1171,7 +1171,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String spacecraftName, Context context) { - return beginDeleteAsync(resourceGroupName, spacecraftName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, spacecraftName, context).getSyncPoller(); } /** @@ -1412,7 +1412,7 @@ private PollerFlux, SpacecraftInner> beginUpdateTags @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SpacecraftInner> beginUpdateTags( String resourceGroupName, String spacecraftName, TagsObject parameters) { - return beginUpdateTagsAsync(resourceGroupName, spacecraftName, parameters).getSyncPoller(); + return this.beginUpdateTagsAsync(resourceGroupName, spacecraftName, parameters).getSyncPoller(); } /** @@ -1430,7 +1430,7 @@ public SyncPoller, SpacecraftInner> beginUpdateTags( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SpacecraftInner> beginUpdateTags( String resourceGroupName, String spacecraftName, TagsObject parameters, Context context) { - return beginUpdateTagsAsync(resourceGroupName, spacecraftName, parameters, context).getSyncPoller(); + return this.beginUpdateTagsAsync(resourceGroupName, spacecraftName, parameters, context).getSyncPoller(); } /** @@ -1748,7 +1748,8 @@ public PagedIterable listAvailableContacts( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1785,7 +1786,8 @@ private Mono> listBySubscriptionNextSinglePageAsy /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1823,7 +1825,8 @@ private Mono> listBySubscriptionNextSinglePageAsy /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1859,7 +1862,8 @@ private Mono> listNextSinglePageAsync(String next /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1896,7 +1900,8 @@ private Mono> listNextSinglePageAsync(String next /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1933,7 +1938,8 @@ private Mono> listAvailableContactsNextSin /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/SpacecraftsImpl.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/SpacecraftsImpl.java index d77a3180816d..1cbfa6ace315 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/SpacecraftsImpl.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/implementation/SpacecraftsImpl.java @@ -51,15 +51,6 @@ public PagedIterable listByResourceGroup(String resourceGroupName, S return Utils.mapPage(inner, inner1 -> new SpacecraftImpl(inner1, this.manager())); } - public Spacecraft getByResourceGroup(String resourceGroupName, String spacecraftName) { - SpacecraftInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, spacecraftName); - if (inner != null) { - return new SpacecraftImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String spacecraftName, Context context) { Response inner = @@ -75,6 +66,15 @@ public Response getByResourceGroupWithResponse( } } + public Spacecraft getByResourceGroup(String resourceGroupName, String spacecraftName) { + SpacecraftInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, spacecraftName); + if (inner != null) { + return new SpacecraftImpl(inner, this.manager()); + } else { + return null; + } + } + public void deleteByResourceGroup(String resourceGroupName, String spacecraftName) { this.serviceClient().delete(resourceGroupName, spacecraftName); } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ActionType.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ActionType.java index 779f204ad9b2..252898651d06 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ActionType.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ActionType.java @@ -8,11 +8,20 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ActionType. */ +/** Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */ public final class ActionType extends ExpandableStringEnum { /** Static value Internal for ActionType. */ public static final ActionType INTERNAL = fromString("Internal"); + /** + * Creates a new instance of ActionType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ActionType() { + } + /** * Creates or finds a ActionType from its string representation. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AuthorizedGroundstation.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AuthorizedGroundstation.java index a8edb79ba3de..cffe9f42a31a 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AuthorizedGroundstation.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AuthorizedGroundstation.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.orbital.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.LocalDate; @@ -14,15 +15,19 @@ public final class AuthorizedGroundstation { /* * Groundstation name. */ - @JsonProperty(value = "groundStation") + @JsonProperty(value = "groundStation", required = true) private String groundStation; /* * Date of authorization expiration. */ - @JsonProperty(value = "expirationDate") + @JsonProperty(value = "expirationDate", required = true) private LocalDate expirationDate; + /** Creates an instance of AuthorizedGroundstation class. */ + public AuthorizedGroundstation() { + } + /** * Get the groundStation property: Groundstation name. * @@ -69,5 +74,19 @@ public AuthorizedGroundstation withExpirationDate(LocalDate expirationDate) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (groundStation() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property groundStation in model AuthorizedGroundstation")); + } + if (expirationDate() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property expirationDate in model AuthorizedGroundstation")); + } } + + private static final ClientLogger LOGGER = new ClientLogger(AuthorizedGroundstation.class); } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AutoTrackingConfiguration.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AutoTrackingConfiguration.java index 48bf6f1f1f3e..de6b6dd371cd 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AutoTrackingConfiguration.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AutoTrackingConfiguration.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for AutoTrackingConfiguration. */ +/** Auto-tracking configuration. */ public enum AutoTrackingConfiguration { /** Enum value disabled. */ DISABLED("disabled"), @@ -33,6 +33,9 @@ public enum AutoTrackingConfiguration { */ @JsonCreator public static AutoTrackingConfiguration fromString(String value) { + if (value == null) { + return null; + } AutoTrackingConfiguration[] items = AutoTrackingConfiguration.values(); for (AutoTrackingConfiguration item : items) { if (item.toString().equalsIgnoreCase(value)) { @@ -42,6 +45,7 @@ public static AutoTrackingConfiguration fromString(String value) { return null; } + /** {@inheritDoc} */ @JsonValue @Override public String toString() { diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableContacts.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableContacts.java index 15be47c2f77a..b6e262e0fd64 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableContacts.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableContacts.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.orbital.models; import com.azure.resourcemanager.orbital.fluent.models.AvailableContactsInner; +import java.time.OffsetDateTime; /** An immutable client-side representation of AvailableContacts. */ public interface AvailableContacts { @@ -22,6 +23,70 @@ public interface AvailableContacts { */ String groundStationName(); + /** + * Gets the maximumElevationDegrees property: Maximum elevation of the antenna during the contact in decimal + * degrees. + * + * @return the maximumElevationDegrees value. + */ + Float maximumElevationDegrees(); + + /** + * Gets the txStartTime property: Time at which antenna transmit will be enabled (ISO 8601 UTC standard). + * + * @return the txStartTime value. + */ + OffsetDateTime txStartTime(); + + /** + * Gets the txEndTime property: Time at which antenna transmit will be disabled (ISO 8601 UTC standard). + * + * @return the txEndTime value. + */ + OffsetDateTime txEndTime(); + + /** + * Gets the rxStartTime property: Earliest time to receive a signal (ISO 8601 UTC standard). + * + * @return the rxStartTime value. + */ + OffsetDateTime rxStartTime(); + + /** + * Gets the rxEndTime property: Time to lost receiving a signal (ISO 8601 UTC standard). + * + * @return the rxEndTime value. + */ + OffsetDateTime rxEndTime(); + + /** + * Gets the startAzimuthDegrees property: Azimuth of the antenna at the start of the contact in decimal degrees. + * + * @return the startAzimuthDegrees value. + */ + Float startAzimuthDegrees(); + + /** + * Gets the endAzimuthDegrees property: Azimuth of the antenna at the end of the contact in decimal degrees. + * + * @return the endAzimuthDegrees value. + */ + Float endAzimuthDegrees(); + + /** + * Gets the startElevationDegrees property: Spacecraft elevation above the horizon at contact start. + * + * @return the startElevationDegrees value. + */ + Float startElevationDegrees(); + + /** + * Gets the endElevationDegrees property: Spacecraft elevation above the horizon at contact end. + * + * @return the endElevationDegrees value. + */ + Float endElevationDegrees(); + /** * Gets the inner com.azure.resourcemanager.orbital.fluent.models.AvailableContactsInner object. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableContactsListResult.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableContactsListResult.java index 02999ca1f78b..ef79de4dd561 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableContactsListResult.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableContactsListResult.java @@ -24,6 +24,10 @@ public final class AvailableContactsListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of AvailableContactsListResult class. */ + public AvailableContactsListResult() { + } + /** * Get the value property: A list of available contacts. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableContactsSpacecraft.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableContactsSpacecraft.java index e16b859b2e21..b40dd4be4dd1 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableContactsSpacecraft.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableContactsSpacecraft.java @@ -9,6 +9,10 @@ /** The reference to the spacecraft resource. */ @Fluent public final class AvailableContactsSpacecraft extends ResourceReference { + /** Creates an instance of AvailableContactsSpacecraft class. */ + public AvailableContactsSpacecraft() { + } + /** {@inheritDoc} */ @Override public AvailableContactsSpacecraft withId(String id) { diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableGroundStation.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableGroundStation.java index 76efc1ae34b2..f001ad770ffb 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableGroundStation.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableGroundStation.java @@ -36,6 +36,48 @@ public interface AvailableGroundStation { */ String type(); + /** + * Gets the city property: City of ground station. + * + * @return the city value. + */ + String city(); + + /** + * Gets the providerName property: Ground station provider name. + * + * @return the providerName value. + */ + String providerName(); + + /** + * Gets the longitudeDegrees property: Longitude of the ground station in decimal degrees. + * + * @return the longitudeDegrees value. + */ + Float longitudeDegrees(); + + /** + * Gets the latitudeDegrees property: Latitude of the ground station in decimal degrees. + * + * @return the latitudeDegrees value. + */ + Float latitudeDegrees(); + + /** + * Gets the altitudeMeters property: Altitude of the ground station. + * + * @return the altitudeMeters value. + */ + Float altitudeMeters(); + + /** + * Gets the releaseMode property: Release Status of a ground station. + * + * @return the releaseMode value. + */ + ReleaseMode releaseMode(); + /** * Gets the inner com.azure.resourcemanager.orbital.fluent.models.AvailableGroundStationInner object. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableGroundStationListResult.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableGroundStationListResult.java index 8897e601277a..f9559b5d8423 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableGroundStationListResult.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableGroundStationListResult.java @@ -24,6 +24,10 @@ public final class AvailableGroundStationListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of AvailableGroundStationListResult class. */ + public AvailableGroundStationListResult() { + } + /** * Get the value property: A list of ground station resources. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableGroundStationPropertiesAutoGenerated.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableGroundStationPropertiesAutoGenerated.java index 2cd3958aa4c7..9c332b72236f 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableGroundStationPropertiesAutoGenerated.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableGroundStationPropertiesAutoGenerated.java @@ -46,6 +46,10 @@ public class AvailableGroundStationPropertiesAutoGenerated { @JsonProperty(value = "releaseMode") private ReleaseMode releaseMode; + /** Creates an instance of AvailableGroundStationPropertiesAutoGenerated class. */ + public AvailableGroundStationPropertiesAutoGenerated() { + } + /** * Get the city property: City of ground station. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableGroundStations.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableGroundStations.java index a955dccdf370..1ec566e3e167 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableGroundStations.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/AvailableGroundStations.java @@ -5,7 +5,6 @@ package com.azure.resourcemanager.orbital.models; import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; import com.azure.core.util.Context; /** Resource collection API of AvailableGroundStations. */ @@ -34,27 +33,4 @@ public interface AvailableGroundStations { * PagedIterable}. */ PagedIterable list(CapabilityParameter capability, Context context); - - /** - * Gets the specified available ground station. - * - * @param groundStationName Ground Station name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified available ground station. - */ - AvailableGroundStation get(String groundStationName); - - /** - * Gets the specified available ground station. - * - * @param groundStationName Ground Station name. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified available ground station along with {@link Response}. - */ - Response getWithResponse(String groundStationName, Context context); } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/CapabilityParameter.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/CapabilityParameter.java index 9b9dca95c743..b86b124e53c2 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/CapabilityParameter.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/CapabilityParameter.java @@ -16,6 +16,15 @@ public final class CapabilityParameter extends ExpandableStringEnum tags(); /** - * Gets the etag property: A unique read-only string that changes whenever the resource is updated. + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * - * @return the etag value. + * @return the systemData value. */ - String etag(); + SystemData systemData(); /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * Gets the provisioningState property: The current state of the resource's creation, deletion, or modification. * - * @return the systemData value. + * @return the provisioningState value. */ - SystemData systemData(); + ContactProfilesPropertiesProvisioningState provisioningState(); + + /** + * Gets the minimumViableContactDuration property: Minimum viable contact duration in ISO 8601 format. Used for + * listing the available contacts with a spacecraft at a given ground station. + * + * @return the minimumViableContactDuration value. + */ + String minimumViableContactDuration(); + + /** + * Gets the minimumElevationDegrees property: Minimum viable elevation for the contact in decimal degrees. Used for + * listing the available contacts with a spacecraft at a given ground station. + * + * @return the minimumElevationDegrees value. + */ + Float minimumElevationDegrees(); + + /** + * Gets the autoTrackingConfiguration property: Auto-tracking configuration. + * + * @return the autoTrackingConfiguration value. + */ + AutoTrackingConfiguration autoTrackingConfiguration(); + + /** + * Gets the eventHubUri property: ARM resource identifier of the Event Hub used for telemetry. Requires granting + * Orbital Resource Provider the rights to send telemetry into the hub. + * + * @return the eventHubUri value. + */ + String eventHubUri(); + + /** + * Gets the networkConfiguration property: Network configuration of customer virtual network. + * + * @return the networkConfiguration value. + */ + ContactProfilesPropertiesNetworkConfiguration networkConfiguration(); + + /** + * Gets the thirdPartyConfigurations property: Third-party mission configuration of the Contact Profile. Describes + * RF links, modem processing, and IP endpoints. + * + * @return the thirdPartyConfigurations value. + */ + List thirdPartyConfigurations(); + + /** + * Gets the links property: Links of the Contact Profile. Describes RF links, modem processing, and IP endpoints. + * + * @return the links value. + */ + List links(); /** * Gets the region of the resource. @@ -94,6 +148,8 @@ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, + DefinitionStages.WithNetworkConfiguration, + DefinitionStages.WithLinks, DefinitionStages.WithCreate { } /** The ContactProfile definition stages. */ @@ -127,13 +183,41 @@ interface WithResourceGroup { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ - WithCreate withExistingResourceGroup(String resourceGroupName); + WithNetworkConfiguration withExistingResourceGroup(String resourceGroupName); + } + /** The stage of the ContactProfile definition allowing to specify networkConfiguration. */ + interface WithNetworkConfiguration { + /** + * Specifies the networkConfiguration property: Network configuration of customer virtual network.. + * + * @param networkConfiguration Network configuration of customer virtual network. + * @return the next definition stage. + */ + WithLinks withNetworkConfiguration(ContactProfilesPropertiesNetworkConfiguration networkConfiguration); + } + /** The stage of the ContactProfile definition allowing to specify links. */ + interface WithLinks { + /** + * Specifies the links property: Links of the Contact Profile. Describes RF links, modem processing, and IP + * endpoints.. + * + * @param links Links of the Contact Profile. Describes RF links, modem processing, and IP endpoints. + * @return the next definition stage. + */ + WithCreate withLinks(List links); } /** * The stage of the ContactProfile definition which contains all the minimum required properties for the * resource to be created, but also allows for any other optional properties to be specified. */ - interface WithCreate extends DefinitionStages.WithTags { + interface WithCreate + extends DefinitionStages.WithTags, + DefinitionStages.WithProvisioningState, + DefinitionStages.WithMinimumViableContactDuration, + DefinitionStages.WithMinimumElevationDegrees, + DefinitionStages.WithAutoTrackingConfiguration, + DefinitionStages.WithEventHubUri, + DefinitionStages.WithThirdPartyConfigurations { /** * Executes the create request. * @@ -159,6 +243,76 @@ interface WithTags { */ WithCreate withTags(Map tags); } + /** The stage of the ContactProfile definition allowing to specify provisioningState. */ + interface WithProvisioningState { + /** + * Specifies the provisioningState property: The current state of the resource's creation, deletion, or + * modification.. + * + * @param provisioningState The current state of the resource's creation, deletion, or modification. + * @return the next definition stage. + */ + WithCreate withProvisioningState(ContactProfilesPropertiesProvisioningState provisioningState); + } + /** The stage of the ContactProfile definition allowing to specify minimumViableContactDuration. */ + interface WithMinimumViableContactDuration { + /** + * Specifies the minimumViableContactDuration property: Minimum viable contact duration in ISO 8601 format. + * Used for listing the available contacts with a spacecraft at a given ground station.. + * + * @param minimumViableContactDuration Minimum viable contact duration in ISO 8601 format. Used for listing + * the available contacts with a spacecraft at a given ground station. + * @return the next definition stage. + */ + WithCreate withMinimumViableContactDuration(String minimumViableContactDuration); + } + /** The stage of the ContactProfile definition allowing to specify minimumElevationDegrees. */ + interface WithMinimumElevationDegrees { + /** + * Specifies the minimumElevationDegrees property: Minimum viable elevation for the contact in decimal + * degrees. Used for listing the available contacts with a spacecraft at a given ground station.. + * + * @param minimumElevationDegrees Minimum viable elevation for the contact in decimal degrees. Used for + * listing the available contacts with a spacecraft at a given ground station. + * @return the next definition stage. + */ + WithCreate withMinimumElevationDegrees(Float minimumElevationDegrees); + } + /** The stage of the ContactProfile definition allowing to specify autoTrackingConfiguration. */ + interface WithAutoTrackingConfiguration { + /** + * Specifies the autoTrackingConfiguration property: Auto-tracking configuration.. + * + * @param autoTrackingConfiguration Auto-tracking configuration. + * @return the next definition stage. + */ + WithCreate withAutoTrackingConfiguration(AutoTrackingConfiguration autoTrackingConfiguration); + } + /** The stage of the ContactProfile definition allowing to specify eventHubUri. */ + interface WithEventHubUri { + /** + * Specifies the eventHubUri property: ARM resource identifier of the Event Hub used for telemetry. Requires + * granting Orbital Resource Provider the rights to send telemetry into the hub.. + * + * @param eventHubUri ARM resource identifier of the Event Hub used for telemetry. Requires granting Orbital + * Resource Provider the rights to send telemetry into the hub. + * @return the next definition stage. + */ + WithCreate withEventHubUri(String eventHubUri); + } + /** The stage of the ContactProfile definition allowing to specify thirdPartyConfigurations. */ + interface WithThirdPartyConfigurations { + /** + * Specifies the thirdPartyConfigurations property: Third-party mission configuration of the Contact + * Profile. Describes RF links, modem processing, and IP endpoints.. + * + * @param thirdPartyConfigurations Third-party mission configuration of the Contact Profile. Describes RF + * links, modem processing, and IP endpoints. + * @return the next definition stage. + */ + WithCreate withThirdPartyConfigurations( + List thirdPartyConfigurations); + } } /** * Begins update for the ContactProfile resource. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfileLink.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfileLink.java index b4de2d166d04..6bd4fda868c3 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfileLink.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfileLink.java @@ -25,21 +25,19 @@ public final class ContactProfileLink { private Polarization polarization; /* - * Direction (uplink or downlink). + * Direction (Uplink or Downlink). */ @JsonProperty(value = "direction", required = true) private Direction direction; /* - * Gain To Noise Temperature in db/K. It is the required G/T by the - * customer. Not used yet. + * Gain to noise temperature in db/K. It is the required G/T by the customer. Not used yet. */ @JsonProperty(value = "gainOverTemperature") private Float gainOverTemperature; /* - * Effective Isotropic Radiated Power (EIRP) in dBW. It is the required - * EIRP by the customer. Not used yet. + * Effective Isotropic Radiated Power (EIRP) in dBW. It is the required EIRP by the customer. Not used yet. */ @JsonProperty(value = "eirpdBW") private Float eirpdBW; @@ -50,6 +48,10 @@ public final class ContactProfileLink { @JsonProperty(value = "channels", required = true) private List channels; + /** Creates an instance of ContactProfileLink class. */ + public ContactProfileLink() { + } + /** * Get the name property: Link name. * @@ -91,7 +93,7 @@ public ContactProfileLink withPolarization(Polarization polarization) { } /** - * Get the direction property: Direction (uplink or downlink). + * Get the direction property: Direction (Uplink or Downlink). * * @return the direction value. */ @@ -100,7 +102,7 @@ public Direction direction() { } /** - * Set the direction property: Direction (uplink or downlink). + * Set the direction property: Direction (Uplink or Downlink). * * @param direction the direction value to set. * @return the ContactProfileLink object itself. @@ -111,7 +113,7 @@ public ContactProfileLink withDirection(Direction direction) { } /** - * Get the gainOverTemperature property: Gain To Noise Temperature in db/K. It is the required G/T by the customer. + * Get the gainOverTemperature property: Gain to noise temperature in db/K. It is the required G/T by the customer. * Not used yet. * * @return the gainOverTemperature value. @@ -121,7 +123,7 @@ public Float gainOverTemperature() { } /** - * Set the gainOverTemperature property: Gain To Noise Temperature in db/K. It is the required G/T by the customer. + * Set the gainOverTemperature property: Gain to noise temperature in db/K. It is the required G/T by the customer. * Not used yet. * * @param gainOverTemperature the gainOverTemperature value to set. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfileLinkChannel.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfileLinkChannel.java index 02684f322712..8e22a5655d64 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfileLinkChannel.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfileLinkChannel.java @@ -30,25 +30,22 @@ public final class ContactProfileLinkChannel { private float bandwidthMHz; /* - * Customer End point to store/retrieve data during a contact. + * Customer end point to store and retrieve data during a contact with the spacecraft. */ @JsonProperty(value = "endPoint", required = true) private EndPoint endPoint; /* - * Copy of the modem configuration file such as Kratos QRadio. Only valid - * for uplink directions. If provided, the modem connects to the customer - * endpoint and accepts commands from the customer instead of a VITA.49 - * stream. + * Copy of the modem configuration file such as Kratos QRadio. Only valid for uplink directions. If provided, the + * modem connects to the customer endpoint and accepts commands from the customer instead of a VITA.49 stream. */ @JsonProperty(value = "modulationConfiguration") private String modulationConfiguration; /* - * Copy of the modem configuration file such as Kratos QRadio or Kratos - * QuantumRx. Only valid for downlink directions. If provided, the modem - * connects to the customer endpoint and sends demodulated data instead of - * a VITA.49 stream. + * Copy of the modem configuration file such as Kratos QRadio or Kratos QuantumRx. Only valid for downlink + * directions. If provided, the modem connects to the customer endpoint and sends demodulated data instead of a + * VITA.49 stream. */ @JsonProperty(value = "demodulationConfiguration") private String demodulationConfiguration; @@ -65,6 +62,10 @@ public final class ContactProfileLinkChannel { @JsonProperty(value = "decodingConfiguration") private String decodingConfiguration; + /** Creates an instance of ContactProfileLinkChannel class. */ + public ContactProfileLinkChannel() { + } + /** * Get the name property: Channel name. * @@ -126,7 +127,7 @@ public ContactProfileLinkChannel withBandwidthMHz(float bandwidthMHz) { } /** - * Get the endPoint property: Customer End point to store/retrieve data during a contact. + * Get the endPoint property: Customer end point to store and retrieve data during a contact with the spacecraft. * * @return the endPoint value. */ @@ -135,7 +136,7 @@ public EndPoint endPoint() { } /** - * Set the endPoint property: Customer End point to store/retrieve data during a contact. + * Set the endPoint property: Customer end point to store and retrieve data during a contact with the spacecraft. * * @param endPoint the endPoint value to set. * @return the ContactProfileLinkChannel object itself. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfileListResult.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfileListResult.java index d6fc901f371d..36513431760e 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfileListResult.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfileListResult.java @@ -24,6 +24,10 @@ public final class ContactProfileListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of ContactProfileListResult class. */ + public ContactProfileListResult() { + } + /** * Get the value property: A list of contact profile resources in a resource group. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfileThirdPartyConfiguration.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfileThirdPartyConfiguration.java new file mode 100644 index 000000000000..c644f7d5677c --- /dev/null +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfileThirdPartyConfiguration.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.orbital.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** Contact Profile third-party partner configuration. */ +@Fluent +public final class ContactProfileThirdPartyConfiguration { + /* + * Name of the third-party provider. + */ + @JsonProperty(value = "providerName", required = true) + private String providerName; + + /* + * Name of string referencing the configuration describing contact set-up for a particular mission. Expected values + * are those which have been created in collaboration with the partner network. + */ + @JsonProperty(value = "missionConfiguration", required = true) + private String missionConfiguration; + + /** Creates an instance of ContactProfileThirdPartyConfiguration class. */ + public ContactProfileThirdPartyConfiguration() { + } + + /** + * Get the providerName property: Name of the third-party provider. + * + * @return the providerName value. + */ + public String providerName() { + return this.providerName; + } + + /** + * Set the providerName property: Name of the third-party provider. + * + * @param providerName the providerName value to set. + * @return the ContactProfileThirdPartyConfiguration object itself. + */ + public ContactProfileThirdPartyConfiguration withProviderName(String providerName) { + this.providerName = providerName; + return this; + } + + /** + * Get the missionConfiguration property: Name of string referencing the configuration describing contact set-up for + * a particular mission. Expected values are those which have been created in collaboration with the partner + * network. + * + * @return the missionConfiguration value. + */ + public String missionConfiguration() { + return this.missionConfiguration; + } + + /** + * Set the missionConfiguration property: Name of string referencing the configuration describing contact set-up for + * a particular mission. Expected values are those which have been created in collaboration with the partner + * network. + * + * @param missionConfiguration the missionConfiguration value to set. + * @return the ContactProfileThirdPartyConfiguration object itself. + */ + public ContactProfileThirdPartyConfiguration withMissionConfiguration(String missionConfiguration) { + this.missionConfiguration = missionConfiguration; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (providerName() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property providerName in model ContactProfileThirdPartyConfiguration")); + } + if (missionConfiguration() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException( + "Missing required property missionConfiguration in model" + + " ContactProfileThirdPartyConfiguration")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ContactProfileThirdPartyConfiguration.class); +} diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfiles.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfiles.java index 997df6edfb82..ad6b8ebf2ee4 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfiles.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfiles.java @@ -15,26 +15,26 @@ public interface ContactProfiles { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param contactProfileName Contact Profile name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified contact Profile in a specified resource group. + * @return the specified contact Profile in a specified resource group along with {@link Response}. */ - ContactProfile getByResourceGroup(String resourceGroupName, String contactProfileName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String contactProfileName, Context context); /** * Gets the specified contact Profile in a specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param contactProfileName Contact Profile name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified contact Profile in a specified resource group along with {@link Response}. + * @return the specified contact Profile in a specified resource group. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String contactProfileName, Context context); + ContactProfile getByResourceGroup(String resourceGroupName, String contactProfileName); /** * Deletes a specified contact profile resource. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfilesProperties.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfilesProperties.java index 0ba4b726f21d..2f624cd7a5bf 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfilesProperties.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfilesProperties.java @@ -19,16 +19,15 @@ public class ContactProfilesProperties { private ContactProfilesPropertiesProvisioningState provisioningState; /* - * Minimum viable contact duration in ISO 8601 format. Used for listing the - * available contacts with a spacecraft at a given ground station. + * Minimum viable contact duration in ISO 8601 format. Used for listing the available contacts with a spacecraft at + * a given ground station. */ @JsonProperty(value = "minimumViableContactDuration") private String minimumViableContactDuration; /* - * Minimum viable elevation for the contact in decimal degrees. Used for - * listing the available contacts with a spacecraft at a given ground - * station. + * Minimum viable elevation for the contact in decimal degrees. Used for listing the available contacts with a + * spacecraft at a given ground station. */ @JsonProperty(value = "minimumElevationDegrees") private Float minimumElevationDegrees; @@ -40,9 +39,8 @@ public class ContactProfilesProperties { private AutoTrackingConfiguration autoTrackingConfiguration; /* - * ARM resource identifier of the Event Hub used for telemetry. Requires - * granting Orbital Resource Provider the rights to send telemetry into the - * hub. + * ARM resource identifier of the Event Hub used for telemetry. Requires granting Orbital Resource Provider the + * rights to send telemetry into the hub. */ @JsonProperty(value = "eventHubUri") private String eventHubUri; @@ -54,12 +52,22 @@ public class ContactProfilesProperties { private ContactProfilesPropertiesNetworkConfiguration networkConfiguration; /* - * Links of the Contact Profile. Describes RF links, modem processing, and - * IP endpoints. + * Third-party mission configuration of the Contact Profile. Describes RF links, modem processing, and IP + * endpoints. + */ + @JsonProperty(value = "thirdPartyConfigurations") + private List thirdPartyConfigurations; + + /* + * Links of the Contact Profile. Describes RF links, modem processing, and IP endpoints. */ @JsonProperty(value = "links", required = true) private List links; + /** Creates an instance of ContactProfilesProperties class. */ + public ContactProfilesProperties() { + } + /** * Get the provisioningState property: The current state of the resource's creation, deletion, or modification. * @@ -189,6 +197,29 @@ public ContactProfilesProperties withNetworkConfiguration( return this; } + /** + * Get the thirdPartyConfigurations property: Third-party mission configuration of the Contact Profile. Describes RF + * links, modem processing, and IP endpoints. + * + * @return the thirdPartyConfigurations value. + */ + public List thirdPartyConfigurations() { + return this.thirdPartyConfigurations; + } + + /** + * Set the thirdPartyConfigurations property: Third-party mission configuration of the Contact Profile. Describes RF + * links, modem processing, and IP endpoints. + * + * @param thirdPartyConfigurations the thirdPartyConfigurations value to set. + * @return the ContactProfilesProperties object itself. + */ + public ContactProfilesProperties withThirdPartyConfigurations( + List thirdPartyConfigurations) { + this.thirdPartyConfigurations = thirdPartyConfigurations; + return this; + } + /** * Get the links property: Links of the Contact Profile. Describes RF links, modem processing, and IP endpoints. * @@ -223,6 +254,9 @@ public void validate() { } else { networkConfiguration().validate(); } + if (thirdPartyConfigurations() != null) { + thirdPartyConfigurations().forEach(e -> e.validate()); + } if (links() == null) { throw LOGGER .logExceptionAsError( diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfilesPropertiesNetworkConfiguration.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfilesPropertiesNetworkConfiguration.java index 836c0f552c3e..bca6ff72a15b 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfilesPropertiesNetworkConfiguration.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfilesPropertiesNetworkConfiguration.java @@ -12,13 +12,16 @@ @Fluent public final class ContactProfilesPropertiesNetworkConfiguration { /* - * ARM resource identifier of the subnet delegated to the - * Microsoft.Orbital/orbitalGateways. Needs to be at least a class C - * subnet, and should not have any IP created in it. + * ARM resource identifier of the subnet delegated to the Microsoft.Orbital/orbitalGateways. Needs to be at least a + * class C subnet, and should not have any IP created in it. */ @JsonProperty(value = "subnetId", required = true) private String subnetId; + /** Creates an instance of ContactProfilesPropertiesNetworkConfiguration class. */ + public ContactProfilesPropertiesNetworkConfiguration() { + } + /** * Get the subnetId property: ARM resource identifier of the subnet delegated to the * Microsoft.Orbital/orbitalGateways. Needs to be at least a class C subnet, and should not have any IP created in diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfilesPropertiesProvisioningState.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfilesPropertiesProvisioningState.java index 0f6d8f30b691..a0c78943926e 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfilesPropertiesProvisioningState.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactProfilesPropertiesProvisioningState.java @@ -8,26 +8,35 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ContactProfilesPropertiesProvisioningState. */ +/** The current state of the resource's creation, deletion, or modification. */ public final class ContactProfilesPropertiesProvisioningState extends ExpandableStringEnum { - /** Static value Creating for ContactProfilesPropertiesProvisioningState. */ - public static final ContactProfilesPropertiesProvisioningState CREATING = fromString("Creating"); + /** Static value creating for ContactProfilesPropertiesProvisioningState. */ + public static final ContactProfilesPropertiesProvisioningState CREATING = fromString("creating"); - /** Static value Succeeded for ContactProfilesPropertiesProvisioningState. */ - public static final ContactProfilesPropertiesProvisioningState SUCCEEDED = fromString("Succeeded"); + /** Static value succeeded for ContactProfilesPropertiesProvisioningState. */ + public static final ContactProfilesPropertiesProvisioningState SUCCEEDED = fromString("succeeded"); - /** Static value Failed for ContactProfilesPropertiesProvisioningState. */ - public static final ContactProfilesPropertiesProvisioningState FAILED = fromString("Failed"); + /** Static value failed for ContactProfilesPropertiesProvisioningState. */ + public static final ContactProfilesPropertiesProvisioningState FAILED = fromString("failed"); - /** Static value Canceled for ContactProfilesPropertiesProvisioningState. */ - public static final ContactProfilesPropertiesProvisioningState CANCELED = fromString("Canceled"); + /** Static value canceled for ContactProfilesPropertiesProvisioningState. */ + public static final ContactProfilesPropertiesProvisioningState CANCELED = fromString("canceled"); - /** Static value Updating for ContactProfilesPropertiesProvisioningState. */ - public static final ContactProfilesPropertiesProvisioningState UPDATING = fromString("Updating"); + /** Static value updating for ContactProfilesPropertiesProvisioningState. */ + public static final ContactProfilesPropertiesProvisioningState UPDATING = fromString("updating"); - /** Static value Deleting for ContactProfilesPropertiesProvisioningState. */ - public static final ContactProfilesPropertiesProvisioningState DELETING = fromString("Deleting"); + /** Static value deleting for ContactProfilesPropertiesProvisioningState. */ + public static final ContactProfilesPropertiesProvisioningState DELETING = fromString("deleting"); + + /** + * Creates a new instance of ContactProfilesPropertiesProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ContactProfilesPropertiesProvisioningState() { + } /** * Creates or finds a ContactProfilesPropertiesProvisioningState from its string representation. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Contacts.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Contacts.java index d58c134e6cb9..2a3b8985efe8 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Contacts.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Contacts.java @@ -45,12 +45,14 @@ public interface Contacts { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param spacecraftName Spacecraft ID. * @param contactName Contact name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified contact in a specified resource group. + * @return the specified contact in a specified resource group along with {@link Response}. */ - Contact get(String resourceGroupName, String spacecraftName, String contactName); + Response getWithResponse( + String resourceGroupName, String spacecraftName, String contactName, Context context); /** * Gets the specified contact in a specified resource group. @@ -58,14 +60,12 @@ public interface Contacts { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param spacecraftName Spacecraft ID. * @param contactName Contact name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified contact in a specified resource group along with {@link Response}. + * @return the specified contact in a specified resource group. */ - Response getWithResponse( - String resourceGroupName, String spacecraftName, String contactName, Context context); + Contact get(String resourceGroupName, String spacecraftName, String contactName); /** * Deletes a specified contact. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactsPropertiesAntennaConfiguration.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactsPropertiesAntennaConfiguration.java index 40f797f3e460..2eced6f1cc7a 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactsPropertiesAntennaConfiguration.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactsPropertiesAntennaConfiguration.java @@ -12,8 +12,7 @@ @Fluent public final class ContactsPropertiesAntennaConfiguration { /* - * The destination IP a packet can be sent to. This would for example be - * the TCP endpoint you would send data to. + * The destination IP a packet can be sent to. This would for example be the TCP endpoint you would send data to. */ @JsonProperty(value = "destinationIp") private String destinationIp; @@ -24,6 +23,10 @@ public final class ContactsPropertiesAntennaConfiguration { @JsonProperty(value = "sourceIps") private List sourceIps; + /** Creates an instance of ContactsPropertiesAntennaConfiguration class. */ + public ContactsPropertiesAntennaConfiguration() { + } + /** * Get the destinationIp property: The destination IP a packet can be sent to. This would for example be the TCP * endpoint you would send data to. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactsPropertiesContactProfile.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactsPropertiesContactProfile.java index 1c484ceb7d80..bfec17f6efa2 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactsPropertiesContactProfile.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactsPropertiesContactProfile.java @@ -9,6 +9,10 @@ /** The reference to the contact profile resource. */ @Fluent public final class ContactsPropertiesContactProfile extends ResourceReference { + /** Creates an instance of ContactsPropertiesContactProfile class. */ + public ContactsPropertiesContactProfile() { + } + /** {@inheritDoc} */ @Override public ContactsPropertiesContactProfile withId(String id) { diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactsPropertiesProvisioningState.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactsPropertiesProvisioningState.java index f7d4f9043fd5..7cb213617a54 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactsPropertiesProvisioningState.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactsPropertiesProvisioningState.java @@ -8,26 +8,35 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ContactsPropertiesProvisioningState. */ +/** The current state of the resource's creation, deletion, or modification. */ public final class ContactsPropertiesProvisioningState extends ExpandableStringEnum { - /** Static value Creating for ContactsPropertiesProvisioningState. */ - public static final ContactsPropertiesProvisioningState CREATING = fromString("Creating"); + /** Static value creating for ContactsPropertiesProvisioningState. */ + public static final ContactsPropertiesProvisioningState CREATING = fromString("creating"); - /** Static value Succeeded for ContactsPropertiesProvisioningState. */ - public static final ContactsPropertiesProvisioningState SUCCEEDED = fromString("Succeeded"); + /** Static value succeeded for ContactsPropertiesProvisioningState. */ + public static final ContactsPropertiesProvisioningState SUCCEEDED = fromString("succeeded"); - /** Static value Failed for ContactsPropertiesProvisioningState. */ - public static final ContactsPropertiesProvisioningState FAILED = fromString("Failed"); + /** Static value failed for ContactsPropertiesProvisioningState. */ + public static final ContactsPropertiesProvisioningState FAILED = fromString("failed"); - /** Static value Canceled for ContactsPropertiesProvisioningState. */ - public static final ContactsPropertiesProvisioningState CANCELED = fromString("Canceled"); + /** Static value canceled for ContactsPropertiesProvisioningState. */ + public static final ContactsPropertiesProvisioningState CANCELED = fromString("canceled"); - /** Static value Updating for ContactsPropertiesProvisioningState. */ - public static final ContactsPropertiesProvisioningState UPDATING = fromString("Updating"); + /** Static value updating for ContactsPropertiesProvisioningState. */ + public static final ContactsPropertiesProvisioningState UPDATING = fromString("updating"); - /** Static value Deleting for ContactsPropertiesProvisioningState. */ - public static final ContactsPropertiesProvisioningState DELETING = fromString("Deleting"); + /** Static value deleting for ContactsPropertiesProvisioningState. */ + public static final ContactsPropertiesProvisioningState DELETING = fromString("deleting"); + + /** + * Creates a new instance of ContactsPropertiesProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ContactsPropertiesProvisioningState() { + } /** * Creates or finds a ContactsPropertiesProvisioningState from its string representation. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactsStatus.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactsStatus.java index 8da873eeaef3..50e05a464a39 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactsStatus.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ContactsStatus.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ContactsStatus. */ +/** Status of a contact. */ public final class ContactsStatus extends ExpandableStringEnum { /** Static value scheduled for ContactsStatus. */ public static final ContactsStatus SCHEDULED = fromString("scheduled"); @@ -25,6 +25,15 @@ public final class ContactsStatus extends ExpandableStringEnum { /** Static value providerCancelled for ContactsStatus. */ public static final ContactsStatus PROVIDER_CANCELLED = fromString("providerCancelled"); + /** + * Creates a new instance of ContactsStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ContactsStatus() { + } + /** * Creates or finds a ContactsStatus from its string representation. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Direction.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Direction.java index b84fe5f1ed86..41b78e996653 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Direction.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Direction.java @@ -8,13 +8,22 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for Direction. */ +/** Direction (Uplink or Downlink). */ public final class Direction extends ExpandableStringEnum { - /** Static value uplink for Direction. */ - public static final Direction UPLINK = fromString("uplink"); + /** Static value Uplink for Direction. */ + public static final Direction UPLINK = fromString("Uplink"); - /** Static value downlink for Direction. */ - public static final Direction DOWNLINK = fromString("downlink"); + /** Static value Downlink for Direction. */ + public static final Direction DOWNLINK = fromString("Downlink"); + + /** + * Creates a new instance of Direction value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Direction() { + } /** * Creates or finds a Direction from its string representation. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/EndPoint.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/EndPoint.java index 377d761fbb83..dd778d8accfa 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/EndPoint.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/EndPoint.java @@ -8,11 +8,11 @@ import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; -/** Customer End point to store/retrieve data during a contact. */ +/** Customer end point to store and retrieve data during a contact with the spacecraft. */ @Fluent public final class EndPoint { /* - * IP Address. + * IP Address (IPv4). */ @JsonProperty(value = "ipAddress", required = true) private String ipAddress; @@ -35,8 +35,12 @@ public final class EndPoint { @JsonProperty(value = "protocol", required = true) private Protocol protocol; + /** Creates an instance of EndPoint class. */ + public EndPoint() { + } + /** - * Get the ipAddress property: IP Address. + * Get the ipAddress property: IP Address (IPv4). * * @return the ipAddress value. */ @@ -45,7 +49,7 @@ public String ipAddress() { } /** - * Set the ipAddress property: IP Address. + * Set the ipAddress property: IP Address (IPv4). * * @param ipAddress the ipAddress value to set. * @return the EndPoint object itself. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/OperationDisplay.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/OperationDisplay.java index e3acd6dd3507..7985cd24b286 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/OperationDisplay.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/OperationDisplay.java @@ -11,34 +11,36 @@ @Immutable public final class OperationDisplay { /* - * The localized friendly form of the resource provider name, e.g. - * "Microsoft Monitoring Insights" or "Microsoft Compute". + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft + * Compute". */ @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY) private String provider; /* - * The localized friendly name of the resource type related to this - * operation. E.g. "Virtual Machines" or "Job Schedule Collections". + * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job + * Schedule Collections". */ @JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY) private String resource; /* - * The concise, localized friendly name for the operation; suitable for - * dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual - * Machine". + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual + * Machine", "Restart Virtual Machine". */ @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY) private String operation; /* - * The short, localized friendly description of the operation; suitable for - * tool tips and detailed views. + * The short, localized friendly description of the operation; suitable for tool tips and detailed views. */ @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY) private String description; + /** Creates an instance of OperationDisplay class. */ + public OperationDisplay() { + } + /** * Get the provider property: The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring * Insights" or "Microsoft Compute". diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/OperationListResult.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/OperationListResult.java index a5521e32048b..3601b9161bae 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/OperationListResult.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/OperationListResult.java @@ -27,6 +27,10 @@ public final class OperationListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of OperationListResult class. */ + public OperationListResult() { + } + /** * Get the value property: List of operations supported by the resource provider. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/OperationResult.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/OperationResult.java index 160b25e39eaf..95b82813a230 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/OperationResult.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/OperationResult.java @@ -6,6 +6,7 @@ import com.azure.resourcemanager.orbital.fluent.models.OperationResultInner; import java.time.OffsetDateTime; +import java.util.List; /** An immutable client-side representation of OperationResult. */ public interface OperationResult { @@ -51,6 +52,20 @@ public interface OperationResult { */ Double percentComplete(); + /** + * Gets the value property: A list of results when the operation returns multiple results. + * + * @return the value value. + */ + List value(); + + /** + * Gets the nextLink property: The URL to get the next set of results. + * + * @return the nextLink value. + */ + String nextLink(); + /** * Gets the properties property: Operation result properties. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/OperationResultErrorProperties.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/OperationResultErrorProperties.java index fcc42ce0f985..ad0fa94e7338 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/OperationResultErrorProperties.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/OperationResultErrorProperties.java @@ -22,6 +22,10 @@ public final class OperationResultErrorProperties { @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) private String message; + /** Creates an instance of OperationResultErrorProperties class. */ + public OperationResultErrorProperties() { + } + /** * Get the code property: The code of the error. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Origin.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Origin.java index ab29dfebb1b3..4a0e0c03b0c5 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Origin.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Origin.java @@ -8,7 +8,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for Origin. */ +/** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value + * is "user,system". + */ public final class Origin extends ExpandableStringEnum { /** Static value user for Origin. */ public static final Origin USER = fromString("user"); @@ -19,6 +22,15 @@ public final class Origin extends ExpandableStringEnum { /** Static value user,system for Origin. */ public static final Origin USER_SYSTEM = fromString("user,system"); + /** + * Creates a new instance of Origin value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Origin() { + } + /** * Creates or finds a Origin from its string representation. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Polarization.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Polarization.java index 8ed80f77dd41..dbf4cbec5e33 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Polarization.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Polarization.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for Polarization. */ +/** Polarization. e.g. (RHCP, LHCP). */ public final class Polarization extends ExpandableStringEnum { /** Static value RHCP for Polarization. */ public static final Polarization RHCP = fromString("RHCP"); @@ -22,6 +22,15 @@ public final class Polarization extends ExpandableStringEnum { /** Static value linearHorizontal for Polarization. */ public static final Polarization LINEAR_HORIZONTAL = fromString("linearHorizontal"); + /** + * Creates a new instance of Polarization value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Polarization() { + } + /** * Creates or finds a Polarization from its string representation. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Protocol.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Protocol.java index aea4290fe330..dd80c81a72b6 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Protocol.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Protocol.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for Protocol. */ +/** Protocol either UDP or TCP. */ public final class Protocol extends ExpandableStringEnum { /** Static value TCP for Protocol. */ public static final Protocol TCP = fromString("TCP"); @@ -16,6 +16,15 @@ public final class Protocol extends ExpandableStringEnum { /** Static value UDP for Protocol. */ public static final Protocol UDP = fromString("UDP"); + /** + * Creates a new instance of Protocol value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Protocol() { + } + /** * Creates or finds a Protocol from its string representation. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ReleaseMode.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ReleaseMode.java index 00760caba731..c1281472a3c1 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ReleaseMode.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ReleaseMode.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ReleaseMode. */ +/** Release Status of a ground station. */ public final class ReleaseMode extends ExpandableStringEnum { /** Static value Preview for ReleaseMode. */ public static final ReleaseMode PREVIEW = fromString("Preview"); @@ -16,6 +16,15 @@ public final class ReleaseMode extends ExpandableStringEnum { /** Static value GA for ReleaseMode. */ public static final ReleaseMode GA = fromString("GA"); + /** + * Creates a new instance of ReleaseMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ReleaseMode() { + } + /** * Creates or finds a ReleaseMode from its string representation. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ResourceReference.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ResourceReference.java index 0334a02b8b21..dea82c58ddd9 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ResourceReference.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/ResourceReference.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.orbital.models; import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; /** Resource Reference. */ @@ -13,9 +14,13 @@ public class ResourceReference { /* * Resource ID. */ - @JsonProperty(value = "id") + @JsonProperty(value = "id", required = true) private String id; + /** Creates an instance of ResourceReference class. */ + public ResourceReference() { + } + /** * Get the id property: Resource ID. * @@ -42,5 +47,12 @@ public ResourceReference withId(String id) { * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (id() == null) { + throw LOGGER + .logExceptionAsError( + new IllegalArgumentException("Missing required property id in model ResourceReference")); + } } + + private static final ClientLogger LOGGER = new ClientLogger(ResourceReference.class); } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Spacecraft.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Spacecraft.java index bc23e0d96e93..c66fd766dc74 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Spacecraft.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Spacecraft.java @@ -6,6 +6,7 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.Region; +import com.azure.core.management.SystemData; import com.azure.core.util.Context; import com.azure.resourcemanager.orbital.fluent.models.SpacecraftInner; import java.util.List; @@ -49,11 +50,11 @@ public interface Spacecraft { Map tags(); /** - * Gets the etag property: A unique read-only string that changes whenever the resource is updated. + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * - * @return the etag value. + * @return the systemData value. */ - String etag(); + SystemData systemData(); /** * Gets the provisioningState property: The current state of the resource's creation, deletion, or modification. @@ -130,6 +131,10 @@ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, + DefinitionStages.WithTitleLine, + DefinitionStages.WithTleLine1, + DefinitionStages.WithTleLine2, + DefinitionStages.WithLinks, DefinitionStages.WithCreate { } /** The Spacecraft definition stages. */ @@ -163,20 +168,54 @@ interface WithResourceGroup { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @return the next definition stage. */ - WithCreate withExistingResourceGroup(String resourceGroupName); + WithTitleLine withExistingResourceGroup(String resourceGroupName); + } + /** The stage of the Spacecraft definition allowing to specify titleLine. */ + interface WithTitleLine { + /** + * Specifies the titleLine property: Title line of the two-line element set (TLE).. + * + * @param titleLine Title line of the two-line element set (TLE). + * @return the next definition stage. + */ + WithTleLine1 withTitleLine(String titleLine); + } + /** The stage of the Spacecraft definition allowing to specify tleLine1. */ + interface WithTleLine1 { + /** + * Specifies the tleLine1 property: Line 1 of the two-line element set (TLE).. + * + * @param tleLine1 Line 1 of the two-line element set (TLE). + * @return the next definition stage. + */ + WithTleLine2 withTleLine1(String tleLine1); + } + /** The stage of the Spacecraft definition allowing to specify tleLine2. */ + interface WithTleLine2 { + /** + * Specifies the tleLine2 property: Line 2 of the two-line element set (TLE).. + * + * @param tleLine2 Line 2 of the two-line element set (TLE). + * @return the next definition stage. + */ + WithLinks withTleLine2(String tleLine2); + } + /** The stage of the Spacecraft definition allowing to specify links. */ + interface WithLinks { + /** + * Specifies the links property: Immutable list of Spacecraft links.. + * + * @param links Immutable list of Spacecraft links. + * @return the next definition stage. + */ + WithCreate withLinks(List links); } /** * The stage of the Spacecraft definition which contains all the minimum required properties for the resource to * be created, but also allows for any other optional properties to be specified. */ interface WithCreate - extends DefinitionStages.WithTags, - DefinitionStages.WithProvisioningState, - DefinitionStages.WithNoradId, - DefinitionStages.WithTitleLine, - DefinitionStages.WithTleLine1, - DefinitionStages.WithTleLine2, - DefinitionStages.WithLinks { + extends DefinitionStages.WithTags, DefinitionStages.WithProvisioningState, DefinitionStages.WithNoradId { /** * Executes the create request. * @@ -223,46 +262,6 @@ interface WithNoradId { */ WithCreate withNoradId(String noradId); } - /** The stage of the Spacecraft definition allowing to specify titleLine. */ - interface WithTitleLine { - /** - * Specifies the titleLine property: Title line of the two-line element set (TLE).. - * - * @param titleLine Title line of the two-line element set (TLE). - * @return the next definition stage. - */ - WithCreate withTitleLine(String titleLine); - } - /** The stage of the Spacecraft definition allowing to specify tleLine1. */ - interface WithTleLine1 { - /** - * Specifies the tleLine1 property: Line 1 of the two-line element set (TLE).. - * - * @param tleLine1 Line 1 of the two-line element set (TLE). - * @return the next definition stage. - */ - WithCreate withTleLine1(String tleLine1); - } - /** The stage of the Spacecraft definition allowing to specify tleLine2. */ - interface WithTleLine2 { - /** - * Specifies the tleLine2 property: Line 2 of the two-line element set (TLE).. - * - * @param tleLine2 Line 2 of the two-line element set (TLE). - * @return the next definition stage. - */ - WithCreate withTleLine2(String tleLine2); - } - /** The stage of the Spacecraft definition allowing to specify links. */ - interface WithLinks { - /** - * Specifies the links property: Immutable list of Spacecraft links.. - * - * @param links Immutable list of Spacecraft links. - * @return the next definition stage. - */ - WithCreate withLinks(List links); - } } /** * Begins update for the Spacecraft resource. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/SpacecraftLink.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/SpacecraftLink.java index 1acfd17b4790..ab8a6b44ec07 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/SpacecraftLink.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/SpacecraftLink.java @@ -31,7 +31,7 @@ public final class SpacecraftLink { private float bandwidthMHz; /* - * Direction (uplink or downlink). + * Direction (Uplink or Downlink). */ @JsonProperty(value = "direction", required = true) private Direction direction; @@ -48,6 +48,10 @@ public final class SpacecraftLink { @JsonProperty(value = "authorizations", access = JsonProperty.Access.WRITE_ONLY) private List authorizations; + /** Creates an instance of SpacecraftLink class. */ + public SpacecraftLink() { + } + /** * Get the name property: Link name. * @@ -109,7 +113,7 @@ public SpacecraftLink withBandwidthMHz(float bandwidthMHz) { } /** - * Get the direction property: Direction (uplink or downlink). + * Get the direction property: Direction (Uplink or Downlink). * * @return the direction value. */ @@ -118,7 +122,7 @@ public Direction direction() { } /** - * Set the direction property: Direction (uplink or downlink). + * Set the direction property: Direction (Uplink or Downlink). * * @param direction the direction value to set. * @return the SpacecraftLink object itself. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/SpacecraftListResult.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/SpacecraftListResult.java index e7da87632f2a..a782f2b40747 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/SpacecraftListResult.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/SpacecraftListResult.java @@ -24,6 +24,10 @@ public final class SpacecraftListResult { @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY) private String nextLink; + /** Creates an instance of SpacecraftListResult class. */ + public SpacecraftListResult() { + } + /** * Get the value property: A list of spacecraft resources in a resource group. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Spacecrafts.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Spacecrafts.java index 26a7d24429f7..95ed151c9fe7 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Spacecrafts.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Spacecrafts.java @@ -66,26 +66,26 @@ public interface Spacecrafts { * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param spacecraftName Spacecraft ID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified spacecraft in a specified resource group. + * @return the specified spacecraft in a specified resource group along with {@link Response}. */ - Spacecraft getByResourceGroup(String resourceGroupName, String spacecraftName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String spacecraftName, Context context); /** * Gets the specified spacecraft in a specified resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param spacecraftName Spacecraft ID. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified spacecraft in a specified resource group along with {@link Response}. + * @return the specified spacecraft in a specified resource group. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String spacecraftName, Context context); + Spacecraft getByResourceGroup(String resourceGroupName, String spacecraftName); /** * Deletes a specified spacecraft resource. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/SpacecraftsPropertiesProvisioningState.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/SpacecraftsPropertiesProvisioningState.java index d183f3e09e57..d306f0b58c91 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/SpacecraftsPropertiesProvisioningState.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/SpacecraftsPropertiesProvisioningState.java @@ -8,26 +8,35 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for SpacecraftsPropertiesProvisioningState. */ +/** The current state of the resource's creation, deletion, or modification. */ public final class SpacecraftsPropertiesProvisioningState extends ExpandableStringEnum { - /** Static value Creating for SpacecraftsPropertiesProvisioningState. */ - public static final SpacecraftsPropertiesProvisioningState CREATING = fromString("Creating"); + /** Static value creating for SpacecraftsPropertiesProvisioningState. */ + public static final SpacecraftsPropertiesProvisioningState CREATING = fromString("creating"); - /** Static value Succeeded for SpacecraftsPropertiesProvisioningState. */ - public static final SpacecraftsPropertiesProvisioningState SUCCEEDED = fromString("Succeeded"); + /** Static value succeeded for SpacecraftsPropertiesProvisioningState. */ + public static final SpacecraftsPropertiesProvisioningState SUCCEEDED = fromString("succeeded"); - /** Static value Failed for SpacecraftsPropertiesProvisioningState. */ - public static final SpacecraftsPropertiesProvisioningState FAILED = fromString("Failed"); + /** Static value failed for SpacecraftsPropertiesProvisioningState. */ + public static final SpacecraftsPropertiesProvisioningState FAILED = fromString("failed"); - /** Static value Canceled for SpacecraftsPropertiesProvisioningState. */ - public static final SpacecraftsPropertiesProvisioningState CANCELED = fromString("Canceled"); + /** Static value canceled for SpacecraftsPropertiesProvisioningState. */ + public static final SpacecraftsPropertiesProvisioningState CANCELED = fromString("canceled"); - /** Static value Updating for SpacecraftsPropertiesProvisioningState. */ - public static final SpacecraftsPropertiesProvisioningState UPDATING = fromString("Updating"); + /** Static value updating for SpacecraftsPropertiesProvisioningState. */ + public static final SpacecraftsPropertiesProvisioningState UPDATING = fromString("updating"); - /** Static value Deleting for SpacecraftsPropertiesProvisioningState. */ - public static final SpacecraftsPropertiesProvisioningState DELETING = fromString("Deleting"); + /** Static value deleting for SpacecraftsPropertiesProvisioningState. */ + public static final SpacecraftsPropertiesProvisioningState DELETING = fromString("deleting"); + + /** + * Creates a new instance of SpacecraftsPropertiesProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public SpacecraftsPropertiesProvisioningState() { + } /** * Creates or finds a SpacecraftsPropertiesProvisioningState from its string representation. diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Status.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Status.java index b194ab9eadd3..f985b6f3196d 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Status.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/Status.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for Status. */ +/** The status of operation. */ public final class Status extends ExpandableStringEnum { /** Static value Succeeded for Status. */ public static final Status SUCCEEDED = fromString("Succeeded"); @@ -22,6 +22,15 @@ public final class Status extends ExpandableStringEnum { /** Static value Running for Status. */ public static final Status RUNNING = fromString("Running"); + /** + * Creates a new instance of Status value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Status() { + } + /** * Creates or finds a Status from its string representation. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/TagsObject.java b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/TagsObject.java index a06e60f1d82d..a1a9d2d0d665 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/TagsObject.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/main/java/com/azure/resourcemanager/orbital/models/TagsObject.java @@ -19,6 +19,10 @@ public final class TagsObject { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of TagsObject class. */ + public TagsObject() { + } + /** * Get the tags property: Resource tags. * diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/AvailableGroundStationsGetSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/AvailableGroundStationsGetSamples.java deleted file mode 100644 index bcf253269ffb..000000000000 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/AvailableGroundStationsGetSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.orbital.generated; - -import com.azure.core.util.Context; - -/** Samples for AvailableGroundStations Get. */ -public final class AvailableGroundStationsGetSamples { - /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/AvailableGroundStationGet.json - */ - /** - * Sample code: Get GroundStation. - * - * @param manager Entry point to OrbitalManager. - */ - public static void getGroundStation(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.availableGroundStations().getWithResponse("EASTUS2_0", Context.NONE); - } -} diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/AvailableGroundStationsListSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/AvailableGroundStationsListSamples.java index 49997b2081d0..e6801962f1da 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/AvailableGroundStationsListSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/AvailableGroundStationsListSamples.java @@ -4,13 +4,12 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.orbital.models.CapabilityParameter; /** Samples for AvailableGroundStations List. */ public final class AvailableGroundStationsListSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/AvailableGroundStationsByCapabilityList.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/AvailableGroundStationsByCapabilityList.json */ /** * Sample code: List of Ground Stations by Capability. @@ -18,6 +17,6 @@ public final class AvailableGroundStationsListSamples { * @param manager Entry point to OrbitalManager. */ public static void listOfGroundStationsByCapability(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.availableGroundStations().list(CapabilityParameter.EARTH_OBSERVATION, Context.NONE); + manager.availableGroundStations().list(CapabilityParameter.EARTH_OBSERVATION, com.azure.core.util.Context.NONE); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesCreateOrUpdateSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesCreateOrUpdateSamples.java index d7136a19302c..cef5715b159f 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesCreateOrUpdateSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesCreateOrUpdateSamples.java @@ -4,10 +4,21 @@ package com.azure.resourcemanager.orbital.generated; +import com.azure.resourcemanager.orbital.models.AutoTrackingConfiguration; +import com.azure.resourcemanager.orbital.models.ContactProfileLink; +import com.azure.resourcemanager.orbital.models.ContactProfileLinkChannel; +import com.azure.resourcemanager.orbital.models.ContactProfileThirdPartyConfiguration; +import com.azure.resourcemanager.orbital.models.ContactProfilesPropertiesNetworkConfiguration; +import com.azure.resourcemanager.orbital.models.Direction; +import com.azure.resourcemanager.orbital.models.EndPoint; +import com.azure.resourcemanager.orbital.models.Polarization; +import com.azure.resourcemanager.orbital.models.Protocol; +import java.util.Arrays; + /** Samples for ContactProfiles CreateOrUpdate. */ public final class ContactProfilesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactProfileCreate.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactProfileCreate.json */ /** * Sample code: Create a contact profile. @@ -20,6 +31,65 @@ public static void createAContactProfile(com.azure.resourcemanager.orbital.Orbit .define("CONTOSO-CP") .withRegion("eastus2") .withExistingResourceGroup("contoso-Rgp") + .withNetworkConfiguration( + new ContactProfilesPropertiesNetworkConfiguration() + .withSubnetId( + "/subscriptions/c1be1141-a7c9-4aac-9608-3c2e2f1152c3/resourceGroups/contoso-Rgp/providers/Microsoft.Network/virtualNetworks/contoso-vnet/subnets/orbital-delegated-subnet")) + .withLinks( + Arrays + .asList( + new ContactProfileLink() + .withName("contoso-uplink") + .withPolarization(Polarization.LHCP) + .withDirection(Direction.UPLINK) + .withGainOverTemperature(0.0F) + .withEirpdBW(45.0F) + .withChannels( + Arrays + .asList( + new ContactProfileLinkChannel() + .withName("contoso-uplink-channel") + .withCenterFrequencyMHz(2250f) + .withBandwidthMHz(2f) + .withEndPoint( + new EndPoint() + .withIpAddress("10.1.0.4") + .withEndPointName("ContosoTest_Uplink") + .withPort("50000") + .withProtocol(Protocol.TCP)))), + new ContactProfileLink() + .withName("contoso-downlink") + .withPolarization(Polarization.RHCP) + .withDirection(Direction.DOWNLINK) + .withGainOverTemperature(25.0F) + .withEirpdBW(0.0F) + .withChannels( + Arrays + .asList( + new ContactProfileLinkChannel() + .withName("contoso-downlink-channel") + .withCenterFrequencyMHz(8160f) + .withBandwidthMHz(15f) + .withEndPoint( + new EndPoint() + .withIpAddress("10.1.0.5") + .withEndPointName("ContosoTest_Downlink") + .withPort("50001") + .withProtocol(Protocol.UDP)))))) + .withMinimumViableContactDuration("PT1M") + .withMinimumElevationDegrees(5.0F) + .withAutoTrackingConfiguration(AutoTrackingConfiguration.DISABLED) + .withEventHubUri( + "/subscriptions/c1be1141-a7c9-4aac-9608-3c2e2f1152c3/resourceGroups/contoso-Rgp/providers/Microsoft.EventHub/namespaces/contosoHub/eventhubs/contosoHub") + .withThirdPartyConfigurations( + Arrays + .asList( + new ContactProfileThirdPartyConfiguration() + .withProviderName("KSAT") + .withMissionConfiguration("Ksat_MissionConfiguration"), + new ContactProfileThirdPartyConfiguration() + .withProviderName("VIASAT") + .withMissionConfiguration("Viasat_Configuration"))) .create(); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesDeleteSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesDeleteSamples.java index 470468e475ea..b1273fb45414 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesDeleteSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; - /** Samples for ContactProfiles Delete. */ public final class ContactProfilesDeleteSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactProfileDelete.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactProfileDelete.json */ /** * Sample code: Delete Contact Profile. @@ -17,6 +15,6 @@ public final class ContactProfilesDeleteSamples { * @param manager Entry point to OrbitalManager. */ public static void deleteContactProfile(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.contactProfiles().delete("contoso-Rgp", "CONTOSO-CP", Context.NONE); + manager.contactProfiles().delete("contoso-Rgp", "CONTOSO-CP", com.azure.core.util.Context.NONE); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesGetByResourceGroupSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesGetByResourceGroupSamples.java index d9d33f2b9374..85f1b6ffd2d6 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesGetByResourceGroupSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesGetByResourceGroupSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; - /** Samples for ContactProfiles GetByResourceGroup. */ public final class ContactProfilesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactProfileGet.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactProfileGet.json */ /** * Sample code: Get a contact profile. @@ -17,6 +15,8 @@ public final class ContactProfilesGetByResourceGroupSamples { * @param manager Entry point to OrbitalManager. */ public static void getAContactProfile(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.contactProfiles().getByResourceGroupWithResponse("contoso-Rgp", "CONTOSO-CP", Context.NONE); + manager + .contactProfiles() + .getByResourceGroupWithResponse("contoso-Rgp", "CONTOSO-CP", com.azure.core.util.Context.NONE); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesListByResourceGroupSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesListByResourceGroupSamples.java index e1740daac39a..9d2c94868e01 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesListByResourceGroupSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesListByResourceGroupSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; - /** Samples for ContactProfiles ListByResourceGroup. */ public final class ContactProfilesListByResourceGroupSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactProfilesByResourceGroupList.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactProfilesByResourceGroupList.json */ /** * Sample code: List of Contact Profiles by Resource Group. @@ -17,6 +15,6 @@ public final class ContactProfilesListByResourceGroupSamples { * @param manager Entry point to OrbitalManager. */ public static void listOfContactProfilesByResourceGroup(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.contactProfiles().listByResourceGroup("contoso-Rgp", "opaqueString", Context.NONE); + manager.contactProfiles().listByResourceGroup("contoso-Rgp", "opaqueString", com.azure.core.util.Context.NONE); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesListSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesListSamples.java index c02c1e28f2f0..f945fdff08ab 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesListSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; - /** Samples for ContactProfiles List. */ public final class ContactProfilesListSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactProfilesBySubscriptionList.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactProfilesBySubscriptionList.json */ /** * Sample code: List of Contact Profiles. @@ -17,6 +15,6 @@ public final class ContactProfilesListSamples { * @param manager Entry point to OrbitalManager. */ public static void listOfContactProfiles(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.contactProfiles().list("opaqueString", Context.NONE); + manager.contactProfiles().list("opaqueString", com.azure.core.util.Context.NONE); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesUpdateTagsSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesUpdateTagsSamples.java index 7de7bbf6c132..6cafcd4430d4 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesUpdateTagsSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactProfilesUpdateTagsSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.orbital.models.ContactProfile; import java.util.HashMap; import java.util.Map; @@ -12,7 +11,7 @@ /** Samples for ContactProfiles UpdateTags. */ public final class ContactProfilesUpdateTagsSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactProfileUpdateTag.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactProfileUpdateTag.json */ /** * Sample code: Update Contact Profile tags. @@ -23,7 +22,7 @@ public static void updateContactProfileTags(com.azure.resourcemanager.orbital.Or ContactProfile resource = manager .contactProfiles() - .getByResourceGroupWithResponse("contoso-Rgp", "CONTOSO-CP", Context.NONE) + .getByResourceGroupWithResponse("contoso-Rgp", "CONTOSO-CP", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply(); } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactsCreateSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactsCreateSamples.java index fb5867e7d369..3fe5a0061e5c 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactsCreateSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactsCreateSamples.java @@ -10,7 +10,7 @@ /** Samples for Contacts Create. */ public final class ContactsCreateSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactCreate.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactCreate.json */ /** * Sample code: Create a contact. @@ -22,8 +22,8 @@ public static void createAContact(com.azure.resourcemanager.orbital.OrbitalManag .contacts() .define("contact1") .withExistingSpacecraft("contoso-Rgp", "CONTOSO_SAT") - .withReservationStartTime(OffsetDateTime.parse("2022-03-02T10:58:30Z")) - .withReservationEndTime(OffsetDateTime.parse("2022-03-02T11:10:45Z")) + .withReservationStartTime(OffsetDateTime.parse("2023-02-22T10:58:30Z")) + .withReservationEndTime(OffsetDateTime.parse("2023-02-22T11:10:45Z")) .withGroundStationName("EASTUS2_0") .withContactProfile( new ContactsPropertiesContactProfile() diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactsDeleteSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactsDeleteSamples.java index 418cf0d529a8..f5cbc74f40f6 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactsDeleteSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactsDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; - /** Samples for Contacts Delete. */ public final class ContactsDeleteSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactDelete.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactDelete.json */ /** * Sample code: Delete Contact. @@ -17,6 +15,6 @@ public final class ContactsDeleteSamples { * @param manager Entry point to OrbitalManager. */ public static void deleteContact(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.contacts().delete("contoso-Rgp", "CONTOSO_SAT", "contact1", Context.NONE); + manager.contacts().delete("contoso-Rgp", "CONTOSO_SAT", "contact1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactsGetSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactsGetSamples.java index 7e044500d415..2b741a052b18 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactsGetSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactsGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; - /** Samples for Contacts Get. */ public final class ContactsGetSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactGet.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactGet.json */ /** * Sample code: Get Contact. @@ -17,6 +15,6 @@ public final class ContactsGetSamples { * @param manager Entry point to OrbitalManager. */ public static void getContact(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.contacts().getWithResponse("contoso-Rgp", "CONTOSO_SAT", "contact1", Context.NONE); + manager.contacts().getWithResponse("contoso-Rgp", "CONTOSO_SAT", "contact1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactsListSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactsListSamples.java index ac16364e7560..2cbd9f6f5dde 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactsListSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/ContactsListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; - /** Samples for Contacts List. */ public final class ContactsListSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/ContactsBySpacecraftNameList.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/ContactsBySpacecraftNameList.json */ /** * Sample code: List of Spacecraft. @@ -17,6 +15,6 @@ public final class ContactsListSamples { * @param manager Entry point to OrbitalManager. */ public static void listOfSpacecraft(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.contacts().list("contoso-Rgp", "CONTOSO_SAT", "opaqueString", Context.NONE); + manager.contacts().list("contoso-Rgp", "CONTOSO_SAT", "opaqueString", com.azure.core.util.Context.NONE); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/OperationsListSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/OperationsListSamples.java index 510a523d45b5..a4639a075c2d 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/OperationsListSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/OperationsListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; - /** Samples for Operations List. */ public final class OperationsListSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/OperationsList.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/OperationsList.json */ /** * Sample code: OperationsList. @@ -17,6 +15,6 @@ public final class OperationsListSamples { * @param manager Entry point to OrbitalManager. */ public static void operationsList(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.operations().list(Context.NONE); + manager.operations().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/OperationsResultsGetSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/OperationsResultsGetSamples.java index b49bfca45a02..8f29179f4347 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/OperationsResultsGetSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/OperationsResultsGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; - /** Samples for OperationsResults Get. */ public final class OperationsResultsGetSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/OperationResultsGet.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/OperationResultsGet.json */ /** * Sample code: KustoOperationResultsGet. @@ -17,6 +15,8 @@ public final class OperationsResultsGetSamples { * @param manager Entry point to OrbitalManager. */ public static void kustoOperationResultsGet(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.operationsResults().get("eastus2", "30972f1b-b61d-4fd8-bd34-3dcfa24670f3", Context.NONE); + manager + .operationsResults() + .get("eastus2", "30972f1b-b61d-4fd8-bd34-3dcfa24670f3", com.azure.core.util.Context.NONE); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsCreateOrUpdateSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsCreateOrUpdateSamples.java index 69dc7c7ebbb8..b74946bdf611 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsCreateOrUpdateSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for Spacecrafts CreateOrUpdate. */ public final class SpacecraftsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/SpacecraftCreate.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/SpacecraftCreate.json */ /** * Sample code: Create a spacecraft. @@ -25,7 +25,6 @@ public static void createASpacecraft(com.azure.resourcemanager.orbital.OrbitalMa .define("CONTOSO_SAT") .withRegion("eastus2") .withExistingResourceGroup("contoso-Rgp") - .withNoradId("36411") .withTitleLine("CONTOSO_SAT") .withTleLine1("1 27424U 02022A 22167.05119303 .00000638 00000+0 15103-3 0 9994") .withTleLine2("2 27424 98.2477 108.9546 0000928 92.9194 327.0802 14.57300770 69982") @@ -44,6 +43,7 @@ public static void createASpacecraft(com.azure.resourcemanager.orbital.OrbitalMa .withBandwidthMHz(15f) .withDirection(Direction.DOWNLINK) .withPolarization(Polarization.RHCP))) + .withNoradId("36411") .create(); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsDeleteSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsDeleteSamples.java index 3ff99065a72c..ea773291b53c 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsDeleteSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; - /** Samples for Spacecrafts Delete. */ public final class SpacecraftsDeleteSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/SpacecraftDelete.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/SpacecraftDelete.json */ /** * Sample code: Delete Spacecraft. @@ -17,6 +15,6 @@ public final class SpacecraftsDeleteSamples { * @param manager Entry point to OrbitalManager. */ public static void deleteSpacecraft(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.spacecrafts().delete("contoso-Rgp", "CONTOSO_SAT", Context.NONE); + manager.spacecrafts().delete("contoso-Rgp", "CONTOSO_SAT", com.azure.core.util.Context.NONE); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsGetByResourceGroupSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsGetByResourceGroupSamples.java index c0436e0651ff..606bdf7c7424 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsGetByResourceGroupSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsGetByResourceGroupSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; - /** Samples for Spacecrafts GetByResourceGroup. */ public final class SpacecraftsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/SpacecraftGet.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/SpacecraftGet.json */ /** * Sample code: Get Spacecraft. @@ -17,6 +15,8 @@ public final class SpacecraftsGetByResourceGroupSamples { * @param manager Entry point to OrbitalManager. */ public static void getSpacecraft(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.spacecrafts().getByResourceGroupWithResponse("contoso-Rgp", "CONTOSO_SAT", Context.NONE); + manager + .spacecrafts() + .getByResourceGroupWithResponse("contoso-Rgp", "CONTOSO_SAT", com.azure.core.util.Context.NONE); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsListAvailableContactsSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsListAvailableContactsSamples.java index 6471d3628442..5e80799298e5 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsListAvailableContactsSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsListAvailableContactsSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.orbital.models.ContactParameters; import com.azure.resourcemanager.orbital.models.ContactParametersContactProfile; import java.time.OffsetDateTime; @@ -12,7 +11,7 @@ /** Samples for Spacecrafts ListAvailableContacts. */ public final class SpacecraftsListAvailableContactsSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/AvailableContactsList.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/AvailableContactsList.json */ /** * Sample code: List of Contact. @@ -31,8 +30,8 @@ public static void listOfContact(com.azure.resourcemanager.orbital.OrbitalManage .withId( "/subscriptions/c1be1141-a7c9-4aac-9608-3c2e2f1152c3/resourceGroups/contoso-Rgp/providers/Microsoft.Orbital/contactProfiles/CONTOSO-CP")) .withGroundStationName("EASTUS2_0") - .withStartTime(OffsetDateTime.parse("2022-03-01T11:30:00Z")) - .withEndTime(OffsetDateTime.parse("2022-03-02T11:30:00Z")), - Context.NONE); + .withStartTime(OffsetDateTime.parse("2022-11-01T11:30:00Z")) + .withEndTime(OffsetDateTime.parse("2022-11-02T11:30:00Z")), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsListByResourceGroupSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsListByResourceGroupSamples.java index f5be436037b9..a4d6dba4d03f 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsListByResourceGroupSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsListByResourceGroupSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; - /** Samples for Spacecrafts ListByResourceGroup. */ public final class SpacecraftsListByResourceGroupSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/SpacecraftsByResourceGroupList.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/SpacecraftsByResourceGroupList.json */ /** * Sample code: List of Spacecraft by Resource Group. @@ -17,6 +15,6 @@ public final class SpacecraftsListByResourceGroupSamples { * @param manager Entry point to OrbitalManager. */ public static void listOfSpacecraftByResourceGroup(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.spacecrafts().listByResourceGroup("contoso-Rgp", "opaqueString", Context.NONE); + manager.spacecrafts().listByResourceGroup("contoso-Rgp", "opaqueString", com.azure.core.util.Context.NONE); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsListSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsListSamples.java index 3521a5f6c3a1..2930a085649f 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsListSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; - /** Samples for Spacecrafts List. */ public final class SpacecraftsListSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/SpacecraftsBySubscriptionList.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/SpacecraftsBySubscriptionList.json */ /** * Sample code: List of Spacecraft by Subscription. @@ -17,6 +15,6 @@ public final class SpacecraftsListSamples { * @param manager Entry point to OrbitalManager. */ public static void listOfSpacecraftBySubscription(com.azure.resourcemanager.orbital.OrbitalManager manager) { - manager.spacecrafts().list("opaqueString", Context.NONE); + manager.spacecrafts().list("opaqueString", com.azure.core.util.Context.NONE); } } diff --git a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsUpdateTagsSamples.java b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsUpdateTagsSamples.java index 0f8f23b92e97..29437c36c684 100644 --- a/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsUpdateTagsSamples.java +++ b/sdk/orbital/azure-resourcemanager-orbital/src/samples/java/com/azure/resourcemanager/orbital/generated/SpacecraftsUpdateTagsSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.orbital.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.orbital.models.Spacecraft; import java.util.HashMap; import java.util.Map; @@ -12,7 +11,7 @@ /** Samples for Spacecrafts UpdateTags. */ public final class SpacecraftsUpdateTagsSamples { /* - * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-03-01/examples/SpacecraftUpdateTags.json + * x-ms-original-file: specification/orbital/resource-manager/Microsoft.Orbital/stable/2022-11-01/examples/SpacecraftUpdateTags.json */ /** * Sample code: Update Spacecraft tags. @@ -21,7 +20,10 @@ public final class SpacecraftsUpdateTagsSamples { */ public static void updateSpacecraftTags(com.azure.resourcemanager.orbital.OrbitalManager manager) { Spacecraft resource = - manager.spacecrafts().getByResourceGroupWithResponse("contoso-Rgp", "CONTOSO_SAT", Context.NONE).getValue(); + manager + .spacecrafts() + .getByResourceGroupWithResponse("contoso-Rgp", "CONTOSO_SAT", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withTags(mapOf("tag1", "value1", "tag2", "value2")).apply(); }