Skip to content

Commit 0078e71

Browse files
authored
[Automation] Generate Fluent Lite from Swagger applicationinsights#package-2022-06-15-java (#43386)
1 parent 84b45bb commit 0078e71

File tree

383 files changed

+12944
-9048
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

383 files changed

+12944
-9048
lines changed

eng/versioning/version_client.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ com.azure.resourcemanager:azure-resourcemanager-support;1.0.0;1.1.0-beta.1
358358
com.azure.resourcemanager:azure-resourcemanager-subscription;1.0.0-beta.3;1.0.0-beta.4
359359
com.azure.resourcemanager:azure-resourcemanager-powerbidedicated;1.0.0-beta.3;1.0.0-beta.4
360360
com.azure.resourcemanager:azure-resourcemanager-storageimportexport;1.0.0-beta.3;1.0.0-beta.4
361-
com.azure.resourcemanager:azure-resourcemanager-applicationinsights;1.0.0;1.1.0-beta.1
361+
com.azure.resourcemanager:azure-resourcemanager-applicationinsights;1.0.0;1.1.0
362362
com.azure.resourcemanager:azure-resourcemanager-deploymentmanager;1.0.0-beta.2;1.0.0-beta.3
363363
com.azure.resourcemanager:azure-resourcemanager-notificationhubs;1.0.0-beta.5;1.0.0-beta.6
364364
com.azure.resourcemanager:azure-resourcemanager-marketplaceordering;1.0.0-beta.3;1.0.0-beta.4

sdk/applicationinsights/azure-resourcemanager-applicationinsights/CHANGELOG.md

Lines changed: 74 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,84 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.1.0 (2024-12-13)
44

5-
### Features Added
5+
- Azure Resource Manager ApplicationInsights client library for Java. This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. Composite Swagger for Application Insights Management Client. Package tag package-2022-06-15-java. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
### Breaking Changes
88

9-
### Bugs Fixed
9+
#### Serialization/Deserialization change
10+
11+
- `Jackson` is removed from dependency and no longer supported.
12+
13+
##### Migration Guide
14+
15+
If you are using `Jackson`/`ObjectMapper` for manual serialization/deserialization, configure your `ObjectMapper` for backward compatibility:
16+
```java
17+
objectMapper.registerModule(com.azure.core.serializer.json.jackson.JacksonJsonProvider.getJsonSerializableDatabindModule());
18+
```
19+
20+
### Features Added
21+
22+
#### `models.WorkbookResource` was modified
23+
24+
* `name()` was added
25+
* `type()` was added
26+
* `id()` was added
27+
28+
#### `models.AnnotationError` was modified
29+
30+
* `getAdditionalInfo()` was added
31+
* `getDetails()` was added
32+
* `getMessage()` was added
33+
* `getTarget()` was added
34+
* `getCode()` was added
35+
36+
#### `models.WorkbookErrorDefinition` was modified
37+
38+
* `getDetails()` was added
39+
* `getTarget()` was added
40+
* `getCode()` was added
41+
* `getAdditionalInfo()` was added
42+
* `getMessage()` was added
43+
44+
#### `models.WorkbookResourceIdentity` was modified
45+
46+
* `principalId()` was added
47+
* `tenantId()` was added
48+
49+
#### `models.WebtestsResource` was modified
50+
51+
* `name()` was added
52+
* `id()` was added
53+
* `type()` was added
54+
55+
#### `models.ComponentsResource` was modified
56+
57+
* `type()` was added
58+
* `id()` was added
59+
* `name()` was added
60+
61+
#### `models.WorkItemConfigurationError` was modified
62+
63+
* `getDetails()` was added
64+
* `getAdditionalInfo()` was added
65+
* `getCode()` was added
66+
* `getTarget()` was added
67+
* `getMessage()` was added
68+
69+
#### `models.ErrorDefinition` was modified
70+
71+
* `getCode()` was added
72+
* `getTarget()` was added
73+
* `getAdditionalInfo()` was added
74+
* `getDetails()` was added
75+
* `getMessage()` was added
76+
77+
#### `models.WorkbookTemplateResource` was modified
1078

11-
### Other Changes
79+
* `name()` was added
80+
* `id()` was added
81+
* `type()` was added
1282

1383
## 1.0.0 (2023-10-27)
1484

sdk/applicationinsights/azure-resourcemanager-applicationinsights/README.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-applicationinsights</artifactId>
35-
<version>1.0.0</version>
35+
<version>1.1.0</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -45,15 +45,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen
4545

4646
### Authentication
4747

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

50-
- `AZURE_CLIENT_ID` for Azure client ID.
51-
- `AZURE_TENANT_ID` for Azure tenant ID.
52-
- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
50+
Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
5351

54-
In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
55-
56-
With above configuration, `azure` client can be authenticated using the following code:
52+
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
5753

5854
```java
5955
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
@@ -74,6 +70,23 @@ See [API design][design] for general introduction on design and key concepts on
7470

7571
## Examples
7672

73+
```java
74+
Workspace workspace = logAnalyticsManager.workspaces()
75+
.define(spaceName)
76+
.withRegion(REGION)
77+
.withExistingResourceGroup(resourceGroupName)
78+
.create();
79+
80+
component = applicationInsightsManager.components()
81+
.define(componentName)
82+
.withRegion(REGION)
83+
.withExistingResourceGroup(resourceGroupName)
84+
.withKind("web")
85+
.withApplicationType(ApplicationType.WEB)
86+
.withWorkspaceResourceId(workspace.id())
87+
.withIngestionMode(IngestionMode.LOG_ANALYTICS)
88+
.create();
89+
```
7790
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md)
7891

7992

@@ -97,6 +110,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
97110
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
98111
[azure_subscription]: https://azure.microsoft.com/free/
99112
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
113+
[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials
100114
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
101115
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
102116
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md

0 commit comments

Comments
 (0)