Skip to content

Commit f1502c0

Browse files
author
SDKAuto
committed
CodeGen from PR 17315 in Azure/azure-rest-api-specs
Merge 17abfcd35b9e804185127074d12c164ffc58b8ed into 3ffc36f7f7623032d3e22f23c99eec36f9ceed09
1 parent eb63833 commit f1502c0

21 files changed

+453
-54
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.3 (Unreleased)
3+
## 1.0.0-beta.1 (2022-01-13)
4+
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-01-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager ApplicationInsights client library for Java.
44

5-
This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. Composite Swagger for Application Insights Management Client. Package tag package-2021-11-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
5+
This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. Composite Swagger for Application Insights Management Client. Package tag package-2022-01-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -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-beta.2</version>
35+
<version>1.0.0-beta.3</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ import java.util.Map;
739739
/** Samples for Components CreateOrUpdate. */
740740
public final class ComponentsCreateOrUpdateSamples {
741741
/*
742-
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsCreate.json
742+
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsCreate.json
743743
*/
744744
/**
745745
* Sample code: ComponentCreate.
@@ -757,11 +757,13 @@ public final class ComponentsCreateOrUpdateSamples {
757757
.withApplicationType(ApplicationType.WEB)
758758
.withFlowType(FlowType.BLUEFIELD)
759759
.withRequestSource(RequestSource.REST)
760+
.withWorkspaceResourceId(
761+
"/subscriptions/subid/resourcegroups/my-resource-group/providers/microsoft.operationalinsights/workspaces/my-workspace")
760762
.create();
761763
}
762764

763765
/*
764-
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsUpdate.json
766+
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsUpdate.json
765767
*/
766768
/**
767769
* Sample code: ComponentUpdate.
@@ -801,7 +803,7 @@ import com.azure.core.util.Context;
801803
/** Samples for Components Delete. */
802804
public final class ComponentsDeleteSamples {
803805
/*
804-
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsDelete.json
806+
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsDelete.json
805807
*/
806808
/**
807809
* Sample code: ComponentsDelete.
@@ -823,7 +825,7 @@ import com.azure.core.util.Context;
823825
/** Samples for Components GetByResourceGroup. */
824826
public final class ComponentsGetByResourceGroupSamples {
825827
/*
826-
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsGet.json
828+
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsGet.json
827829
*/
828830
/**
829831
* Sample code: ComponentGet.
@@ -844,7 +846,7 @@ import com.azure.core.util.Context;
844846
/** Samples for Components GetPurgeStatus. */
845847
public final class ComponentsGetPurgeStatusSamples {
846848
/*
847-
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsPurgeStatus.json
849+
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsPurgeStatus.json
848850
*/
849851
/**
850852
* Sample code: ComponentPurge.
@@ -869,7 +871,7 @@ import com.azure.core.util.Context;
869871
/** Samples for Components List. */
870872
public final class ComponentsListSamples {
871873
/*
872-
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsList.json
874+
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsList.json
873875
*/
874876
/**
875877
* Sample code: ComponentsList.json.
@@ -891,7 +893,7 @@ import com.azure.core.util.Context;
891893
/** Samples for Components ListByResourceGroup. */
892894
public final class ComponentsListByResourceGroupSamples {
893895
/*
894-
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsListByResourceGroup.json
896+
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsListByResourceGroup.json
895897
*/
896898
/**
897899
* Sample code: ComponentListByResourceGroup.
@@ -916,7 +918,7 @@ import java.util.Arrays;
916918
/** Samples for Components Purge. */
917919
public final class ComponentsPurgeSamples {
918920
/*
919-
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsPurge.json
921+
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsPurge.json
920922
*/
921923
/**
922924
* Sample code: ComponentPurge.
@@ -955,7 +957,7 @@ import java.util.Map;
955957
/** Samples for Components UpdateTags. */
956958
public final class ComponentsUpdateTagsSamples {
957959
/*
958-
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2018-05-01-preview/examples/ComponentsUpdateTagsOnly.json
960+
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2020-02-02/examples/ComponentsUpdateTagsOnly.json
959961
*/
960962
/**
961963
* Sample code: ComponentUpdateTagsOnly.
@@ -1471,7 +1473,7 @@ import com.azure.core.util.Context;
14711473
/** Samples for LiveToken Get. */
14721474
public final class LiveTokenGetSamples {
14731475
/*
1474-
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-06-02-preview/examples/LiveTokenGet.json
1476+
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-10-14/examples/LiveTokenGet.json
14751477
*/
14761478
/**
14771479
* Sample code: Get live token for resource.

sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

1515
<name>Microsoft Azure SDK for ApplicationInsights Management</name>
16-
<description>This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Composite Swagger for Application Insights Management Client. Package tag package-2021-11-01.</description>
16+
<description>This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Composite Swagger for Application Insights Management Client. Package tag package-2022-01-11.</description>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>
@@ -39,6 +39,9 @@
3939
<properties>
4040
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4141
<jacoco.skip>true</jacoco.skip>
42+
<codesnippet.skip>false</codesnippet.skip>
43+
<javadocDoclet></javadocDoclet>
44+
<javadocDocletOptions></javadocDocletOptions>
4245
</properties>
4346
<dependencies>
4447
<dependency>
@@ -52,4 +55,8 @@
5255
<version>1.5.1</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
5356
</dependency>
5457
</dependencies>
58+
<build>
59+
<plugins>
60+
</plugins>
61+
</build>
5562
</project>

sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/ApplicationInsightsManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public ApplicationInsightsManager authenticate(TokenCredential credential, Azure
248248
.append("-")
249249
.append("com.azure.resourcemanager.applicationinsights")
250250
.append("/")
251-
.append("1.0.0-beta.2");
251+
.append("1.0.0-beta.1");
252252
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
253253
userAgentBuilder
254254
.append(" (")

sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentInner.java

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ public final class ApplicationInsightsComponentInner extends ComponentsResource
3232
@JsonProperty(value = "kind", required = true)
3333
private String kind;
3434

35+
/*
36+
* Resource etag
37+
*/
38+
@JsonProperty(value = "etag")
39+
private String etag;
40+
3541
/*
3642
* Properties that define an Application Insights component resource.
3743
*/
@@ -60,6 +66,26 @@ public ApplicationInsightsComponentInner withKind(String kind) {
6066
return this;
6167
}
6268

69+
/**
70+
* Get the etag property: Resource etag.
71+
*
72+
* @return the etag value.
73+
*/
74+
public String etag() {
75+
return this.etag;
76+
}
77+
78+
/**
79+
* Set the etag property: Resource etag.
80+
*
81+
* @param etag the etag value to set.
82+
* @return the ApplicationInsightsComponentInner object itself.
83+
*/
84+
public ApplicationInsightsComponentInner withEtag(String etag) {
85+
this.etag = etag;
86+
return this;
87+
}
88+
6389
/**
6490
* Get the innerProperties property: Properties that define an Application Insights component resource.
6591
*
@@ -102,6 +128,15 @@ public String appId() {
102128
return this.innerProperties() == null ? null : this.innerProperties().appId();
103129
}
104130

131+
/**
132+
* Get the name property: Application name.
133+
*
134+
* @return the name value.
135+
*/
136+
public String namePropertiesName() {
137+
return this.innerProperties() == null ? null : this.innerProperties().name();
138+
}
139+
105140
/**
106141
* Get the applicationType property: Type of application being monitored.
107142
*
@@ -353,6 +388,42 @@ public ApplicationInsightsComponentInner withImmediatePurgeDataOn30Days(Boolean
353388
return this;
354389
}
355390

391+
/**
392+
* Get the workspaceResourceId property: Resource Id of the log analytics workspace which the data will be ingested
393+
* to. This property is required to create an application with this API version. Applications from older versions
394+
* will not have this property.
395+
*
396+
* @return the workspaceResourceId value.
397+
*/
398+
public String workspaceResourceId() {
399+
return this.innerProperties() == null ? null : this.innerProperties().workspaceResourceId();
400+
}
401+
402+
/**
403+
* Set the workspaceResourceId property: Resource Id of the log analytics workspace which the data will be ingested
404+
* to. This property is required to create an application with this API version. Applications from older versions
405+
* will not have this property.
406+
*
407+
* @param workspaceResourceId the workspaceResourceId value to set.
408+
* @return the ApplicationInsightsComponentInner object itself.
409+
*/
410+
public ApplicationInsightsComponentInner withWorkspaceResourceId(String workspaceResourceId) {
411+
if (this.innerProperties() == null) {
412+
this.innerProperties = new ApplicationInsightsComponentProperties();
413+
}
414+
this.innerProperties().withWorkspaceResourceId(workspaceResourceId);
415+
return this;
416+
}
417+
418+
/**
419+
* Get the laMigrationDate property: The date which the component got migrated to LA, in ISO 8601 format.
420+
*
421+
* @return the laMigrationDate value.
422+
*/
423+
public OffsetDateTime laMigrationDate() {
424+
return this.innerProperties() == null ? null : this.innerProperties().laMigrationDate();
425+
}
426+
356427
/**
357428
* Get the privateLinkScopedResources property: List of linked private link scope resources.
358429
*
@@ -435,6 +506,55 @@ public ApplicationInsightsComponentInner withIngestionMode(IngestionMode ingesti
435506
return this;
436507
}
437508

509+
/**
510+
* Get the disableLocalAuth property: Disable Non-AAD based Auth.
511+
*
512+
* @return the disableLocalAuth value.
513+
*/
514+
public Boolean disableLocalAuth() {
515+
return this.innerProperties() == null ? null : this.innerProperties().disableLocalAuth();
516+
}
517+
518+
/**
519+
* Set the disableLocalAuth property: Disable Non-AAD based Auth.
520+
*
521+
* @param disableLocalAuth the disableLocalAuth value to set.
522+
* @return the ApplicationInsightsComponentInner object itself.
523+
*/
524+
public ApplicationInsightsComponentInner withDisableLocalAuth(Boolean disableLocalAuth) {
525+
if (this.innerProperties() == null) {
526+
this.innerProperties = new ApplicationInsightsComponentProperties();
527+
}
528+
this.innerProperties().withDisableLocalAuth(disableLocalAuth);
529+
return this;
530+
}
531+
532+
/**
533+
* Get the forceCustomerStorageForProfiler property: Force users to create their own storage account for profiler
534+
* and debugger.
535+
*
536+
* @return the forceCustomerStorageForProfiler value.
537+
*/
538+
public Boolean forceCustomerStorageForProfiler() {
539+
return this.innerProperties() == null ? null : this.innerProperties().forceCustomerStorageForProfiler();
540+
}
541+
542+
/**
543+
* Set the forceCustomerStorageForProfiler property: Force users to create their own storage account for profiler
544+
* and debugger.
545+
*
546+
* @param forceCustomerStorageForProfiler the forceCustomerStorageForProfiler value to set.
547+
* @return the ApplicationInsightsComponentInner object itself.
548+
*/
549+
public ApplicationInsightsComponentInner withForceCustomerStorageForProfiler(
550+
Boolean forceCustomerStorageForProfiler) {
551+
if (this.innerProperties() == null) {
552+
this.innerProperties = new ApplicationInsightsComponentProperties();
553+
}
554+
this.innerProperties().withForceCustomerStorageForProfiler(forceCustomerStorageForProfiler);
555+
return this;
556+
}
557+
438558
/**
439559
* Validates the instance.
440560
*

0 commit comments

Comments
 (0)