Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sdk/astro/azure-resourcemanager-astro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2024-09-23)

- Azure Resource Manager Astro client library for Java. This package contains Microsoft Azure SDK for Astro Management SDK. Package tag package-2024-08-27. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
15 changes: 6 additions & 9 deletions sdk/astro/azure-resourcemanager-astro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager Astro client library for Java.

This package contains Microsoft Azure SDK for Astro Management SDK. Package tag package-2023-08-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 Astro Management SDK. Package tag package-2024-08-27. 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

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-astro</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand All @@ -45,15 +45,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen

### Authentication

By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.
Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package.

- `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.
Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.

In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.

With above configuration, `azure` client can be authenticated using the following code:
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:

```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
Expand Down Expand Up @@ -97,6 +93,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials
[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
Expand Down
146 changes: 112 additions & 34 deletions sdk/astro/azure-resourcemanager-astro/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
public final class OperationsListSamples {
/*
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2023-08-01/examples/
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2024-08-27/examples/
* Operations_List_MaximumSet_Gen.json
*/
/**
Expand All @@ -32,6 +32,19 @@ public final class OperationsListSamples {
public static void operationsListGeneratedByMaximumSetRule(com.azure.resourcemanager.astro.AstroManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
}

/*
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2024-08-27/examples/
* Operations_List_MinimumSet_Gen.json
*/
/**
* Sample code: Operations_List - generated by [MinimumSet] rule.
*
* @param manager Entry point to AstroManager.
*/
public static void operationsListGeneratedByMinimumSetRule(com.azure.resourcemanager.astro.AstroManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
}
}
```

Expand All @@ -47,6 +60,7 @@ import com.azure.resourcemanager.astro.models.LiftrBaseUserDetails;
import com.azure.resourcemanager.astro.models.ManagedServiceIdentity;
import com.azure.resourcemanager.astro.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.astro.models.MarketplaceSubscriptionStatus;
import com.azure.resourcemanager.astro.models.RenewalMode;
import com.azure.resourcemanager.astro.models.SingleSignOnStates;
import java.util.Arrays;
import java.util.HashMap;
Expand All @@ -57,7 +71,7 @@ import java.util.Map;
*/
public final class OrganizationsCreateOrUpdateSamples {
/*
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2023-08-01/examples/
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2024-08-27/examples/
* Organizations_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
Expand All @@ -67,22 +81,36 @@ public final class OrganizationsCreateOrUpdateSamples {
*/
public static void
organizationsCreateOrUpdateGeneratedByMaximumSetRule(com.azure.resourcemanager.astro.AstroManager manager) {
manager.organizations().define("U.1-:7").withRegion("mhqthlsatwvqkl").withExistingResourceGroup("rgastronomer")
manager.organizations()
.define("U.1-:7")
.withRegion("pgfkugslgnsxeqpjs")
.withExistingResourceGroup("rgastronomer")
.withTags(mapOf())
.withProperties(new LiftrBaseDataOrganizationProperties()
.withMarketplace(new LiftrBaseMarketplaceDetails().withSubscriptionId("ntthclydlpqmasr")
.withMarketplace(new LiftrBaseMarketplaceDetails().withSubscriptionId("emasc")
.withSubscriptionStatus(MarketplaceSubscriptionStatus.PENDING_FULFILLMENT_START)
.withOfferDetails(new LiftrBaseOfferDetails().withPublisherId("gfsqxygpnerxmvols")
.withOfferId("krzkefmpxztqyusidzgpchfaswuyce").withPlanId("kndxzygsanuiqzwbfbbvoipv")
.withPlanName("pwqjwlq").withTermUnit("xyygyzcazkuelz").withTermId("pwds")))
.withUser(new LiftrBaseUserDetails().withFirstName("nfh").withLastName("lazfbstcccykibvcrxpmglqam")
.withEmailAddress(".K_@e7N-g1.xjqnbPs").withUpn("xtutvycpxjrtoftx").withPhoneNumber("inxkscllh"))
.withOfferDetails(new LiftrBaseOfferDetails().withPublisherId("kt")
.withOfferId("tvidibzbxevtvnrdp")
.withPlanId("lwcvzdqecwkeracahmixnh")
.withPlanName("d")
.withTermUnit("rs")
.withTermId("kopnnjsp")
.withRenewalMode(RenewalMode.AUTO)))
.withUser(new LiftrBaseUserDetails().withFirstName("ucowvrccqpqpkdg")
.withLastName("fwwtnwggrtibghoijfzajrhgyo")
.withEmailAddress(".K_@e7N-g1.xjqnbPs")
.withUpn("zbdgbbqg")
.withPhoneNumber("brnngpezmqecvflklbhsibq"))
.withPartnerOrganizationProperties(
new LiftrBaseDataPartnerOrganizationProperties().withOrganizationId("lskgzdmziusgrsucv")
.withWorkspaceId("vcrupxwpaba").withOrganizationName("3-").withWorkspaceName("9.:06")
.withSingleSignOnProperties(new LiftrBaseSingleSignOnProperties()
.withSingleSignOnState(SingleSignOnStates.INITIAL).withEnterpriseAppId("mklfypyujwumgwdzae")
.withSingleSignOnUrl("ymmtzkyghvinvhgnqlzwrr").withAadDomains(Arrays.asList("kfbleh")))))
new LiftrBaseDataPartnerOrganizationProperties().withOrganizationId("juomtfzwkjwnhhpodfnrqdv")
.withWorkspaceId("nnryjcmiohmkbvhngfgxigpodvhl")
.withOrganizationName("U.1-:7")
.withWorkspaceName("9.:06")
.withSingleSignOnProperties(
new LiftrBaseSingleSignOnProperties().withSingleSignOnState(SingleSignOnStates.INITIAL)
.withEnterpriseAppId("srkwxktx")
.withSingleSignOnUrl("l")
.withAadDomains(Arrays.asList("fcnqoizqxcdclmy")))))
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE)
.withUserAssignedIdentities(mapOf()))
.create();
Expand Down Expand Up @@ -110,7 +138,7 @@ public final class OrganizationsCreateOrUpdateSamples {
*/
public final class OrganizationsDeleteSamples {
/*
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2023-08-01/examples/
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2024-08-27/examples/
* Organizations_Delete_MaximumSet_Gen.json
*/
/**
Expand All @@ -120,7 +148,7 @@ public final class OrganizationsDeleteSamples {
*/
public static void
organizationsDeleteGeneratedByMaximumSetRule(com.azure.resourcemanager.astro.AstroManager manager) {
manager.organizations().delete("rgastronomer", "q:", com.azure.core.util.Context.NONE);
manager.organizations().delete("rgastronomer", "U.1-:7", com.azure.core.util.Context.NONE);
}
}
```
Expand All @@ -133,7 +161,7 @@ public final class OrganizationsDeleteSamples {
*/
public final class OrganizationsGetByResourceGroupSamples {
/*
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2023-08-01/examples/
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2024-08-27/examples/
* Organizations_Get_MaximumSet_Gen.json
*/
/**
Expand All @@ -142,8 +170,8 @@ public final class OrganizationsGetByResourceGroupSamples {
* @param manager Entry point to AstroManager.
*/
public static void organizationsGetGeneratedByMaximumSetRule(com.azure.resourcemanager.astro.AstroManager manager) {
manager.organizations().getByResourceGroupWithResponse("rgastronomer", "S PS",
com.azure.core.util.Context.NONE);
manager.organizations()
.getByResourceGroupWithResponse("rgastronomer", "U.1-:7", com.azure.core.util.Context.NONE);
}
}
```
Expand All @@ -156,7 +184,21 @@ public final class OrganizationsGetByResourceGroupSamples {
*/
public final class OrganizationsListSamples {
/*
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2023-08-01/examples/
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2024-08-27/examples/
* Organizations_ListBySubscription_MinimumSet_Gen.json
*/
/**
* Sample code: Organizations_ListBySubscription - generated by [MinimumSet] rule.
*
* @param manager Entry point to AstroManager.
*/
public static void
organizationsListBySubscriptionGeneratedByMinimumSetRule(com.azure.resourcemanager.astro.AstroManager manager) {
manager.organizations().list(com.azure.core.util.Context.NONE);
}

/*
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2024-08-27/examples/
* Organizations_ListBySubscription_MaximumSet_Gen.json
*/
/**
Expand All @@ -179,7 +221,7 @@ public final class OrganizationsListSamples {
*/
public final class OrganizationsListByResourceGroupSamples {
/*
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2023-08-01/examples/
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2024-08-27/examples/
* Organizations_ListByResourceGroup_MaximumSet_Gen.json
*/
/**
Expand All @@ -191,19 +233,37 @@ public final class OrganizationsListByResourceGroupSamples {
com.azure.resourcemanager.astro.AstroManager manager) {
manager.organizations().listByResourceGroup("rgastronomer", com.azure.core.util.Context.NONE);
}

/*
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2024-08-27/examples/
* Organizations_ListByResourceGroup_MinimumSet_Gen.json
*/
/**
* Sample code: Organizations_ListByResourceGroup - generated by [MinimumSet] rule.
*
* @param manager Entry point to AstroManager.
*/
public static void organizationsListByResourceGroupGeneratedByMinimumSetRule(
com.azure.resourcemanager.astro.AstroManager manager) {
manager.organizations().listByResourceGroup("rgastronomer", com.azure.core.util.Context.NONE);
}
}
```

### Organizations_Update

```java
import com.azure.resourcemanager.astro.models.LiftrBaseDataPartnerOrganizationPropertiesUpdate;
import com.azure.resourcemanager.astro.models.LiftrBaseMarketplaceDetailsUpdate;
import com.azure.resourcemanager.astro.models.LiftrBaseOfferDetailsUpdate;
import com.azure.resourcemanager.astro.models.LiftrBaseSingleSignOnProperties;
import com.azure.resourcemanager.astro.models.LiftrBaseUserDetailsUpdate;
import com.azure.resourcemanager.astro.models.ManagedServiceIdentity;
import com.azure.resourcemanager.astro.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.astro.models.MarketplaceSubscriptionStatus;
import com.azure.resourcemanager.astro.models.OrganizationResource;
import com.azure.resourcemanager.astro.models.OrganizationResourceUpdateProperties;
import com.azure.resourcemanager.astro.models.RenewalMode;
import com.azure.resourcemanager.astro.models.SingleSignOnStates;
import java.util.Arrays;
import java.util.HashMap;
Expand All @@ -214,30 +274,48 @@ import java.util.Map;
*/
public final class OrganizationsUpdateSamples {
/*
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2023-08-01/examples/
* x-ms-original-file: specification/liftrastronomer/resource-manager/Astronomer.Astro/stable/2024-08-27/examples/
* Organizations_Update_MaximumSet_Gen.json
*/
/**
* Sample code: Organizations_Update.
* Sample code: Organizations_Update - generated by [MaximumSet] rule.
*
* @param manager Entry point to AstroManager.
*/
public static void organizationsUpdate(com.azure.resourcemanager.astro.AstroManager manager) {
public static void
organizationsUpdateGeneratedByMaximumSetRule(com.azure.resourcemanager.astro.AstroManager manager) {
OrganizationResource resource = manager.organizations()
.getByResourceGroupWithResponse("rgastronomer", "6.", com.azure.core.util.Context.NONE).getValue();
resource.update().withTags(mapOf("key1474", "fakeTokenPlaceholder"))
.getByResourceGroupWithResponse("rgastronomer", "U.1-:7", com.azure.core.util.Context.NONE)
.getValue();
resource.update()
.withTags(mapOf())
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE)
.withUserAssignedIdentities(mapOf()))
.withProperties(new OrganizationResourceUpdateProperties()
.withUser(new LiftrBaseUserDetailsUpdate().withFirstName("qeuofehzypzljgcuysugefbgxde")
.withLastName("g").withEmailAddress(".K_@e7N-g1.xjqnbPs").withUpn("uwtprzdfpsqmktx")
.withPhoneNumber("aqpyxznvqpgkzohevynofrjdfgoo"))
.withMarketplace(new LiftrBaseMarketplaceDetailsUpdate().withSubscriptionId("ujl")
.withSubscriptionStatus(MarketplaceSubscriptionStatus.PENDING_FULFILLMENT_START)
.withOfferDetails(new LiftrBaseOfferDetailsUpdate().withPublisherId("bywzycdrucjkx")
.withOfferId("aljpaprqzpnivwol")
.withPlanId("fcpnstrwetlrajanh")
.withPlanName("wjgnlhqqkdi")
.withTermUnit("pvpk")
.withTermId("xg")
.withRenewalMode(RenewalMode.AUTO)))
.withUser(new LiftrBaseUserDetailsUpdate().withFirstName("wyoaxocyjfpgicvketuiayfxrxq")
.withLastName("vlwybhfayupjpwfhy")
.withEmailAddress(".K_@e7N-g1.xjqnbPs")
.withUpn("ezefcwbsbgcxrdiixmzphibt")
.withPhoneNumber("eibhsslqzufgshuzrjjyymsb"))
.withPartnerOrganizationProperties(new LiftrBaseDataPartnerOrganizationPropertiesUpdate()
.withOrganizationId("lrtmbkvyvvoszhjevohkmyjhfyty").withWorkspaceId("xsepuskdhejaadusyxq")
.withOrganizationName("U2P_").withWorkspaceName("L.-y_--:")
.withSingleSignOnProperties(new LiftrBaseSingleSignOnProperties()
.withSingleSignOnState(SingleSignOnStates.INITIAL).withEnterpriseAppId("mklfypyujwumgwdzae")
.withSingleSignOnUrl("ymmtzkyghvinvhgnqlzwrr").withAadDomains(Arrays.asList("kfbleh")))))
.withOrganizationId("linzwcqhrpqrxpnghxjnxzetfdps")
.withWorkspaceId("tmmxzlagmdrc")
.withOrganizationName("U.1-:7")
.withWorkspaceName("9.:06")
.withSingleSignOnProperties(
new LiftrBaseSingleSignOnProperties().withSingleSignOnState(SingleSignOnStates.INITIAL)
.withEnterpriseAppId("jspfkoxolosmvyixpktbwyoqrx")
.withSingleSignOnUrl("aatouxlmqqizijszlu")
.withAadDomains(Arrays.asList("gwzhrfmnhbeitagjdlzw")))))
.apply();
}

Expand Down
7 changes: 6 additions & 1 deletion sdk/astro/azure-resourcemanager-astro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Astro Management</name>
<description>This package contains Microsoft Azure SDK for Astro Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2023-08-01.</description>
<description>This package contains Microsoft Azure SDK for Astro Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2024-08-27.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down Expand Up @@ -48,6 +48,11 @@
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-json</artifactId>
<version>1.3.0</version> <!-- {x-version-update;com.azure:azure-json;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core</artifactId>
Expand Down
Loading