File tree Expand file tree Collapse file tree 6 files changed +14
-8
lines changed
sdk/monitor/azure-monitor-query
java/com/azure/monitor/query
metricsdefinitions/implementation
metricsnamespaces/implementation Expand file tree Collapse file tree 6 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 1818import com .azure .core .http .policy .RetryPolicy ;
1919import com .azure .core .http .policy .UserAgentPolicy ;
2020import com .azure .core .util .Configuration ;
21+ import com .azure .core .util .CoreUtils ;
2122import com .azure .core .util .serializer .JacksonAdapter ;
2223import com .azure .core .util .serializer .SerializerAdapter ;
2324import java .util .ArrayList ;
24- import java .util .HashMap ;
2525import java .util .List ;
2626import java .util .Map ;
2727
@@ -32,7 +32,7 @@ public final class AzureLogAnalyticsImplBuilder {
3232
3333 private static final String SDK_VERSION = "version" ;
3434
35- private final Map <String , String > properties = new HashMap <>( );
35+ private final Map <String , String > properties = CoreUtils . getProperties ( "azure-monitor-query.properties" );
3636
3737 /** Create an instance of the AzureLogAnalyticsImplBuilder. */
3838 public AzureLogAnalyticsImplBuilder () {
Original file line number Diff line number Diff line change 1818import com .azure .core .http .policy .RetryPolicy ;
1919import com .azure .core .http .policy .UserAgentPolicy ;
2020import com .azure .core .util .Configuration ;
21+ import com .azure .core .util .CoreUtils ;
2122import com .azure .core .util .serializer .JacksonAdapter ;
2223import com .azure .core .util .serializer .SerializerAdapter ;
2324import java .util .ArrayList ;
24- import java .util .HashMap ;
2525import java .util .List ;
2626import java .util .Map ;
2727
@@ -32,7 +32,7 @@ public final class MonitorManagementClientImplBuilder {
3232
3333 private static final String SDK_VERSION = "version" ;
3434
35- private final Map <String , String > properties = new HashMap <>( );
35+ private final Map <String , String > properties = CoreUtils . getProperties ( "azure-monitor-query.properties" );
3636
3737 /** Create an instance of the MonitorManagementClientImplBuilder. */
3838 public MonitorManagementClientImplBuilder () {
Original file line number Diff line number Diff line change 1818import com .azure .core .http .policy .RetryPolicy ;
1919import com .azure .core .http .policy .UserAgentPolicy ;
2020import com .azure .core .util .Configuration ;
21+ import com .azure .core .util .CoreUtils ;
2122import com .azure .core .util .serializer .JacksonAdapter ;
2223import com .azure .core .util .serializer .SerializerAdapter ;
2324import java .util .ArrayList ;
24- import java .util .HashMap ;
2525import java .util .List ;
2626import java .util .Map ;
2727
@@ -32,7 +32,7 @@ public final class MetricsDefinitionsClientImplBuilder {
3232
3333 private static final String SDK_VERSION = "version" ;
3434
35- private final Map <String , String > properties = new HashMap <>( );
35+ private final Map <String , String > properties = CoreUtils . getProperties ( "azure-monitor-query.properties" );
3636
3737 /** Create an instance of the MetricsDefinitionsClientImplBuilder. */
3838 public MetricsDefinitionsClientImplBuilder () {
Original file line number Diff line number Diff line change 1818import com .azure .core .http .policy .RetryPolicy ;
1919import com .azure .core .http .policy .UserAgentPolicy ;
2020import com .azure .core .util .Configuration ;
21+ import com .azure .core .util .CoreUtils ;
2122import com .azure .core .util .serializer .JacksonAdapter ;
2223import com .azure .core .util .serializer .SerializerAdapter ;
2324import java .util .ArrayList ;
24- import java .util .HashMap ;
2525import java .util .List ;
2626import java .util .Map ;
2727
@@ -32,7 +32,7 @@ public final class MetricsNamespacesClientImplBuilder {
3232
3333 private static final String SDK_VERSION = "version" ;
3434
35- private final Map <String , String > properties = new HashMap <>( );
35+ private final Map <String , String > properties = CoreUtils . getProperties ( "azure-monitor-query.properties" );
3636
3737 /** Create an instance of the MetricsNamespacesClientImplBuilder. */
3838 public MetricsNamespacesClientImplBuilder () {
Original file line number Diff line number Diff line change 1+ name =${project.artifactId}
2+ version =${project.version}
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ required-fields-as-ctor-args: true
2222model-override-setter-from-superclass : true
2323credential-types : tokencredential
2424client-side-validations : true
25+ artifact-id : azure-monitor-query
2526` ` `
2627
2728## Metrics Query
@@ -45,6 +46,7 @@ required-fields-as-ctor-args: true
4546model-override-setter-from-superclass: true
4647credential-types: tokencredential
4748client-side-validations: true
49+ artifact-id: azure-monitor-query
4850directive:
4951 - rename-model:
5052 from: Response
@@ -73,6 +75,7 @@ required-fields-as-ctor-args: true
7375model-override-setter-from-superclass: true
7476credential-types: tokencredential
7577client-side-validations: true
78+ artifact-id: azure-monitor-query
7679` ` `
7780
7881# # Metrics Definitions Query
@@ -97,4 +100,5 @@ required-fields-as-ctor-args: true
97100model-override-setter-from-superclass: true
98101credential-types: tokencredential
99102client-side-validations: true
103+ artifact-id: azure-monitor-query
100104` ` `
You can’t perform that action at this time.
0 commit comments