Skip to content

Commit

Permalink
Merge latest master (#22113)
Browse files Browse the repository at this point in the history
* Use different connection strings for Spring ServiceBus binders integration tests. (#21966)

* update changelog  (#21427)

* update changelog for 3.5.0 entry

* Upgrade Spring UTs/ITs to use JUnit 5. (#21670)

* Fix Broken Link Explaining Spring Duration Conversions (#21942)

* [Communication]: Remove unused code in pom and test files (#21654)

* Remove unused code in pom and test files

* Restore unintended change

* Revert a test file change

* Restore tests.yml

* Remove unused env variable in tests.yml

* Remove tests.yml

* Keep skipping SMS tests in INT

* Try to skip jacoco in INT

* try different syntax

* Try use string as much as we can

* Try escape quotes

* Try use a variable inside loop

* Fix a typo

* Move variable to a different place

* Try Macro syntax

* Remove variable, use stage name instead

* Fix syntax

* Try a different syntax

* Try something simple

* Move variables to the right place

* Flip logic

* Renamve variable

* Give up on customizing jacoco.skip

* Try to use variable to skp jacoco

* Try different syntax

* Move variable declaration

* Try to set variable

* Try PreSteps

* Remove local variable

* Remove unnecessary overwrite

* Remove quotes

Co-authored-by: JP Chen <jiach@microsoft.com>

* [Automation] Generate Fluent Lite from deviceprovisioningservices#package-2020-03 (#21938)

Co-authored-by: timtay-microsoft <timtay@microsoft.com>

* Adds AsyncCloseable (#21991)

* Adding AsyncCloseable with codesnippet.

* Implementing AsyncCloseable and deleting AsyncAutoCloseable.

* Add CHANGELOG entry.

* Removing azure-core as an explicit dependency.

* Fix use in AmqpReceiveLinkProcessor.

* Sync eng/common directory with azure-sdk-tools for PR 1611 (#21853)

* Add API status check

* Increment package version after release of com.azure.resourcemanager azure-resourcemanager-deviceprovisioningservices (#21994)

* Update Build Script to Perform Additional Tasks (#21993)

* Arch board review feedback for ACR (#21913)

* Update ACR changes

* Update the swagger to the new values.

* read me update

* Add support for ACR beta 3

* Incorporate CR comments

* Set AMQP connection idle timeout to 60 seconds. (#21995)

* Angiurgiu/add missing chat thread async client options methods (#21939)

* Removed the item return check on listReadReceipts for Live/Record tests. Removed .sleep statements

* Added missing Options methods in ChatThreadAsyncClient

* Updated incorrect test name used for logging

Co-authored-by: Andrei Giurgiu <agiurg@microsoft.com>

* add ut test for jre certificates (#21989)

* Update the default authentication scope for the public cloud. (#22005)

* Support getting rows as objects and map errors (#21997)

* Update samples and map errors

* Fix version tag

* mgmt, support multiple source/destination ASG in NSG (#21980)

* mgmt, support multiple source/destination ASG in NSG

* checkstyle

* changelog

* Add integration test for keyvault certificate (#21573)

* mgmt, fix sample as previous ARM template get deleted (#22011)

* Add more test for jca integration test. (#21523)

* azure-messaging-eventhubs-checkpointstore-blob Post Release Version Increment (#22010)

* Update CODEOWNERs for Mixed Reality Authentication (#22004)

This change adds me as a code owner of the Mixed Reality Authentication library.

* Bump versions of core amqp and servicebus (#22020)

* Update azure-sdk-build-tools Repository Resource Refs in Yaml files (#22031)

* Add autoscale RU support for azure-spring-data-cosmos (#21851)

* Add autoscale RU support for azure-spring-data-cosmos

Resolves #12711

* Added sample to read me for auto scale throughput

* Fixed readme link

Co-authored-by: Kushagra Thapar <kuthapar@microsoft.com>

* Adding a No Op version of the List RR with Options test, for code coverage (#22035)

Co-authored-by: Andrei Giurgiu <agiurg@microsoft.com>

* Prepare azure-sdk-bom for Release (#22001)

Prepare azure-sdk-bom for Release

* mgmt core, move ArmChallengeAuthenticationPolicy from experimental (#21961)

* mgmt core, move ArmChallengeAuthenticationPolicy from experimental

* reuse ArmChallengeAuthenticationPolicy in azure-resourcemanager-resources

* Check if a queue exists but the name is used for a topic and vice versa (#19513)

* add check existing queue

* return an empty simple response

* Make Library/Libraries Used in Bug Report More Explicit (#22047)

Make Library/Libraries Used in Bug and Query Issue Templates More Explicit

* Updaing AAP jar version for signed jar and moving it it azure devops feed from blob storage (#22046)

* Add the ability to check for open pull request to a different repo. (#22059)

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>

* Use sparse-checkout When Performing a POM Only Release (#22037)

Use sparse-checkout When Performing a POM Only Release

* Dispose link immediately if updateDisposition timeout. (#22036)

* Set azure-sdk-bom to In-Dev (#22052)

Set azure-sdk-bom to In-Dev

* Update azure-sdk-build-tools Repository Resource Refs in Yaml files (#22062)

* mgmt, aks support spot vm (#22016)

* support spot vm in aks

* changlog

* rename method

* Expose CbsAuthorizationType (#22072)

* Adding CbsAuthorizationType model.

* Deleting implementation CbsAuthorizationType.

* Update AzureTokenManagerProvider to use ExpandableEnum CbsAuthorizationType.

* Fix CbsAuthorizationType imports.

* Fixing Event Hubs breaks.

* Fix Service Bus breaks.

* Addressed API Feedback for Storage STG77 (#22023)

* Metrics Advisor SDK APIs aligning with most recent swagger updates (#21936)

* Adding more doc to FeedType types and correcting typo in addFeedback API name

* Using the name Sql, MongoDb, InfluxDb

* Initial impl of credential entities and its integration with data feed

* Apply Fluent, Immutable as appropriate

* Updating listMetricEnrichedSeriesData signature to take detectionId as first argument

* Renaming listAnomaliesForAlert and listAnomaliesForDetectionConfig to listAnomalies

* Adding ClientOptions

* Renaming listIncidentsForAlert and listIncidentsForDetectionConfig to listIncidents

* Adding DimensionKey::get(..) and renaming TOPN enum-value to TOP_N

* Add options overload API's

* revert DataFeedIngestionOption changes

* Updating BoundaryDirection, DataFeedRollupType, DataFeedSourceType and SingleBoundaryDirection to ExpandableStringEnum

* Adding doc for DataFeedSource abstract type, renaming AzureCosmosDataFeedSource to AzureCosmosDbDataFeedSource, deleting unused ElasticsearchDataFeedSource and HttpRequestDataFeedSource

* Removing setSubscriptionKey() and setApiKey(), instead adding an update method to atomically update the keys

* MA Credentials: Removing Entity suffix and adding DataSource prefix

* Rename ErrorCode to MetricsAdvisorErrorCode

* update listDataFeedIngestionStatus

* Addressing feedback for the last commit (Fixingspotbug and checkstyle)

* consider datasource prefix for credential as one word (archfeedback)

* Renaming DataSourceCredentialType to DatasourceCredentialType

* Adding tests for Data Source Credentials. Rename userfacing type DataSourceAuthenticationType to DatasourceAuthenticationType (Datasource as one word)

* Adding junit tests for data source cred async apis

* Adding sync tests for Data Source Credentials and recordings

* Adding samples and code snippets for Credential Entity API

* Adding test skeleton for associating cred to datafeed

* Use single word datasource for DataSourceDataLakeGen2SharedKey

* Removing unsupported value 'Secondly' from Granularity

* Hiding clientSecret getter from AzureLogAnalyticsDataFeedSource

* Finishing Cred association with DataFeedSources

* Completing tests for Cred association with DataFeedSources

* Adding test recordings for Cred to DataFeedSource association

* Adding cred association to AzureLogAnalytics DataFeed

* Add valid cred for log analytics

* rename to updateKey

* rename env vars

* Moving admin models to admininstration.models package

* Removing equality assert on LogAna ids

* Update Changelog (#7)

* Fix pipeline error - export admin models (#8)

* Moving MetricsAdvisorServiceVersion to root package

* Override setDimensionFilter in Feedback types to ensure fluent chain

* Adding addFeedbackWithResponse in sync client

* Use the param name credentialId consistently, removing unsupported connectionstring cred from data-explorer

* Rename DATA_LAKE_GEN2SHARED_KEY enum-val to DATA_LAKE_GEN2_SHARED_KEY, use DataFeedRollupSettings::rollupIdentificationValue param name consiistently

* Use from prefix (instead of using prefix) for all factory methods to create data-source with credentials

* Introduced MetricsAdvisorKeys that composes subscription and api key

* Renaming error types to MetricsAdvisorError and MetricsAdvisorResponseException

* update module info and add final

Co-authored-by: samvaity <savaity@microsoft.com>
Co-authored-by: Sameeksha Vaity <sameeksha.v91@gmail.com>

* Update AMQP Error Context and adding more AMQP error codes (#22060)

* Adding documentation to potential Amqp errors.

* Making valueMap for AmqpResponseCode final.

* Update AmqpErrorContext to contain ErrorInfo.

* Add revapi.json suppression. The serialization itself is compatible based on "Compatible changes" in https://docs.oracle.com/javase/6/docs/platform/serialization/spec/version.html#6678

* Adding test case.

* Adding more error conditions.

* Fixed mapping cosmos converter to handle value nodes (#22073)

* Added value query suport to spring data cosmos query annotation

* Fixed mapping cosmos converter regression

* Test Wagon Changes to Determine Install Performance (#22082)

Wagon Changes to Improve Install Performance

* [Storage] Use FluxUtil for reliable download. (#22080)

* first draft.

* indent.

* npes.

* timeout.

* fix empty case.

* checkstyle

* tests

* Rename confidential ledger package (#22056)

* Rename confidential ledger package

* Use 1.0.0-beta.2 as dependency version

* Added support for generating SAS tokens at the account and Table service level. (#21944)

* Added support for generating SAS tokens at the Account and Table Service in all clients. Updated CHANGELOG.

* Added partition key and row key values for SAS generation.

* Fixed CheckStyle issues.

* Fixed SpotBugs issue.

* Removed more unused imports.

* Renamed classes used for generating table-level SAS tokens. Made clients throw an exception when trying to generate SAS tokens if not authenticated with an AzureNamedKeyCredential.

* Made client builders throw an IllegalStateException if more than one authentication setting is applied.

* Changed module-info.java to export the tables package to all other packages.

* Added tests for SAS models.

* Added builder tests for when multiple forms of authentication are set.

* Updated builders to throw when no endpoint or form of authentication are provided.

* Fixed CheckStyle issues.

* Fixed test name.

* Removed unnecessary exports for implementation packages in module-info.java

* Applied PR feedback:
- Added extra clarity to when SAS models' toString() methods can return an empty String.
- Removed unnecessary empty constructors in TableSasIpRange and TableSasPermission.
- Changed builder parameter validation logic to the `buildClient()` and `buildAsyncClient()` methods.
- Builders now also throw an IllegalStateException when calling `buildClient()` and `buildAsyncClient()` if multiple forms of authentication are provided, with the exception of 'sasToken' + 'connectionString'; or if 'endpoint' and/or 'sasToken' are set alongside a 'connectionString' and the endpoint and/or SAS token in the latter are different, respectively.
- Removed "en-us" from all links in JavaDoc.
- Updated CHANGELOG.

* Added tests and renamed test classes to match clients and builders.

* Updated CHANGELOG and client builders' JavaDoc.

* Applied APIView feedback.

* Updated CHANGELOG again.

* Removed unused imports. Simplified SAS token comparison logic.

* Fixed SAS token generation at the table level. Re-ordered query parameters in SAS tokens for both accounts and tables. Added tests for SAS tokens.

* Updated CHANGELOG.

* Fixed test and CheckStyle issues.

* Added @immutable and @fluent annotations where appropriate. Made more models and classes in the sas package final.

* Added more @immutable annotations.

* Fetch specific branch name only in git-branch-push script (#21998)

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>

* Use generate matrix job name parameter as display name (#22089)

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>

* Update proton-j and qpid-proton-j-extensions (#22081)

* Use sparse checkout for Update Package Version release stage (#22002)

* Fix subscription bugs in ReactorSession and ReactorConnection (#22085)

* Fix error where Mono for dispose of was not being subscribed to.

* Fix error where close operations were not being subscribed to.

* Fixing distinct to distinctUntilChanged

* Update CHANGELOG with authorization type.

* mgmt, support parameters in policy (#22103)

* mgmt, support parameters in policy

* changelog

* use immutable collection

* Fixing max length of userAgent header (#22018)

* Fixing max length of userAgent header

* Addressed CR feedback

* Restricting the total UserAgent length to 255 characters

* Fixing unit test regression

Co-authored-by: Xiaobing Zhu <71206407+ZhuXiaoBing-cn@users.noreply.github.com>
Co-authored-by: zhihaoguo <zhihaoguo@microsoft.com>
Co-authored-by: Alan Zimmer <48699787+alzimmermsft@users.noreply.github.com>
Co-authored-by: Jianping Chen <jp.chen.jianping@gmail.com>
Co-authored-by: JP Chen <jiach@microsoft.com>
Co-authored-by: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com>
Co-authored-by: timtay-microsoft <timtay@microsoft.com>
Co-authored-by: Connie Yau <conniey@microsoft.com>
Co-authored-by: Pallavi Taneja <pallavit@users.noreply.github.com>
Co-authored-by: Yijun Xie <48257664+YijunXieMS@users.noreply.github.com>
Co-authored-by: angiurgiu <angiurgiu@gmail.com>
Co-authored-by: Andrei Giurgiu <agiurg@microsoft.com>
Co-authored-by: michaelqi793 <78671298+michaelqi793@users.noreply.github.com>
Co-authored-by: Srikanta <51379715+srnagar@users.noreply.github.com>
Co-authored-by: Weidong Xu <weidxu@microsoft.com>
Co-authored-by: lzc-1997-abel <70368631+lzc-1997-abel@users.noreply.github.com>
Co-authored-by: gaohan <1135494872@qq.com>
Co-authored-by: Craig Treasure <Craig.K.Treasure@microsoft.com>
Co-authored-by: John Mannix <jmannix@onetrust.com>
Co-authored-by: Kushagra Thapar <kuthapar@microsoft.com>
Co-authored-by: Francesco Scuccimarri <francescoscuccimarri@gmail.com>
Co-authored-by: Naveen Singh <simplynaveen20@gmail.com>
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
Co-authored-by: Gauri Prasad <51212198+gapra-msft@users.noreply.github.com>
Co-authored-by: Anu Thomas Chandy <anuamd@hotmail.com>
Co-authored-by: samvaity <savaity@microsoft.com>
Co-authored-by: Sameeksha Vaity <sameeksha.v91@gmail.com>
Co-authored-by: Kamil Sobol <61715331+kasobol-msft@users.noreply.github.com>
Co-authored-by: Jianghao Lu <jianghaolu@users.noreply.github.com>
Co-authored-by: vcolin7 <vicolina@microsoft.com>
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
Co-authored-by: Fabian Meiswinkel <fabianm@microsoft.com>
  • Loading branch information
1 parent b977eee commit 03d062e
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
# PRLabel: %Mixed Reality Authentication
/sdk/mixedreality/azure-mixedreality-authentication @craigktreasure

# PRLabel: %Mixed Reality Authentication
/sdk/mixedreality/azure-mixedreality-authentication @craigktreasure

# PRLabel: %Remote Rendering
/sdk/remoterendering/ @MalcolmTyrrell

Expand Down
1 change: 1 addition & 0 deletions eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ com.azure.resourcemanager:azure-resourcemanager-deviceprovisioningservices;1.0.0
# In the pom, the version update tag after the version should name the unreleased package and the dependency version:
# <!-- {x-version-update;unreleased_com.azure:azure-core;dependency} -->
unreleased_com.azure:azure-core-amqp;2.1.0-beta.1
unreleased_com.azure:azure-core-management;1.3.0-beta.1

# Released Beta dependencies: Copy the entry from above, prepend "beta_", remove the current
# version and set the version to the released beta. Released beta dependencies are only valid
Expand Down
3 changes: 3 additions & 0 deletions sdk/core/azure-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## 1.18.0-beta.1 (Unreleased)

### Features Added

- Added `AsyncCloseable`

## 1.17.0 (2021-06-07)

Expand Down
122 changes: 121 additions & 1 deletion sdk/monitor/azure-monitor-query/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,127 @@ LogsQueryAsyncClient logsQueryAsyncClient = new LogsQueryClientBuilder()
+ "; value = " + logsTableCell.getValueAsString()));
}
}
}

```
### Get logs for a query and read the response as a model type

```java

LogsQueryResult queryResults = logsClient
.queryLogs("d2d0e126-fa1e-4b0a-b647-250cdd471e68", "AppRequests", null);

// Sample to use a model type to read the results
for (LogsTable table : queryResults.getLogsTables()) {
for (LogsTableRow row : table.getTableRows()) {
CustomModel model = row.getRowAsObject(CustomModel.class);
System.out.println("Time generated " + model.getTimeGenerated() + "; success = " + model.getSuccess() +
"; operation name = " + model.getOperationName());
}
}


public class CustomModel {
private OffsetDateTime timeGenerated;
private String tenantId;
private String id;
private String source;
private Boolean success;
private Double durationMs;
private Object properties;
private Object measurements;
private String operationName;
private String operationId;
private Object operationLinks;


public OffsetDateTime getTimeGenerated() {
return timeGenerated;
}

public void setTimeGenerated(OffsetDateTime timeGenerated) {
this.timeGenerated = timeGenerated;
}

public String getTenantId() {
return tenantId;
}

public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}

public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}

public String getSource() {
return source;
}

public void setSource(String source) {
this.source = source;
}

public Boolean getSuccess() {
return success;
}

public void setSuccess(Boolean success) {
this.success = success;
}

public Double getDurationMs() {
return durationMs;
}

public void setDurationMs(Double durationMs) {
this.durationMs = durationMs;
}

public Object getProperties() {
return properties;
}

public void setProperties(Object properties) {
this.properties = properties;
}

public Object getMeasurements() {
return measurements;
}

public void setMeasurements(Object measurements) {
this.measurements = measurements;
}

public String getOperationName() {
return operationName;
}

public void setOperationName(String operationName) {
this.operationName = operationName;
}

public String getOperationId() {
return operationId;
}

public void setOperationId(String operationId) {
this.operationId = operationId;
}

public Object getOperationLinks() {
return operationLinks;
}

public void setOperationLinks(Object operationLinks) {
this.operationLinks = operationLinks;
}
}
```
### Get logs for a query and read the response as a model type

Expand Down
6 changes: 6 additions & 0 deletions sdk/monitor/azure-monitor-query/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@
<version>1.2.4</version> <!-- {x-version-update;com.azure:azure-core-serializer-json-jackson;dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-serializer-json-jackson</artifactId>
<version>1.2.3</version> <!-- {x-version-update;com.azure:azure-core-serializer-json-jackson;dependency} -->
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down

0 comments on commit 03d062e

Please sign in to comment.