Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-dynatrace] Dynatrace.Observability merge to public repo #5184

Closed
wants to merge 1 commit into from
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
25 changes: 10 additions & 15 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 29 additions & 10 deletions sdk/dynatrace/arm-dynatrace/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,34 @@
# Release History

## 2.0.0 (2023-07-05)

**Features**

## 1.0.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added operation Monitors.getMarketplaceSaaSResourceDetails
- Added operation Monitors.getMetricStatus
- Added Interface MarketplaceSaaSResourceDetailsRequest
- Added Interface MarketplaceSaaSResourceDetailsResponse
- Added Interface MetricsStatusResponse
- Added Interface MonitorsGetMarketplaceSaaSResourceDetailsOptionalParams
- Added Interface MonitorsGetMetricStatusOptionalParams
- Added Type Alias MonitorsGetMarketplaceSaaSResourceDetailsResponse
- Added Type Alias MonitorsGetMetricStatusResponse
- Interface MetricRules has a new optional parameter sendingMetrics

**Breaking Changes**

- Removed operation Monitors.getAccountCredentials
- Removed operation TagRules.update
- Interface MonitorResourceUpdate no longer has parameter dynatraceEnvironmentProperties
- Interface MonitorResourceUpdate no longer has parameter marketplaceSubscriptionStatus
- Interface MonitorResourceUpdate no longer has parameter monitoringStatus
- Interface MonitorResourceUpdate no longer has parameter planData
- Interface MonitorResourceUpdate no longer has parameter userInfo
- Parameter region of interface LinkableEnvironmentRequest is now required
- Parameter tenantId of interface LinkableEnvironmentRequest is now required
- Parameter userPrincipal of interface LinkableEnvironmentRequest is now required
- Parameter userPrincipal of interface SSODetailsRequest is now required

## 1.0.1 (2023-01-09)

**Features**
Expand Down
10 changes: 5 additions & 5 deletions sdk/dynatrace/arm-dynatrace/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "e24bbf6a66cb0a19c072c6f15cee163acbd7acf7",
"readme": "specification\\dynatrace\\resource-manager\\readme.md",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\dynatrace\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.6.20221226.1 --generate-sample=true",
"commit": "726693d250796ded352667193197a3d1d31fef5d",
"readme": "specification/dynatrace/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/dynatrace/resource-manager/readme.md --use=@autorest/typescript@^6.0.4",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.5.4",
"use": "@autorest/typescript@6.0.0-rc.6.20221226.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.1",
"use": "@autorest/typescript@^6.0.4"
}
22 changes: 7 additions & 15 deletions sdk/dynatrace/arm-dynatrace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for DynatraceObservability.",
"version": "1.0.2",
"version": "2.0.0",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/core-lro": "^2.5.3",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.6.1",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"tslib": "^2.2.0"
Expand All @@ -33,13 +33,13 @@
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-multi-entry": "^6.0.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"mkdirp": "^1.0.4",
"mkdirp": "^2.1.2",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~5.0.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^8.2.0",
"dotenv": "^16.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
Expand Down Expand Up @@ -111,13 +111,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/dynatrace/arm-dynatrace",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-dynatrace?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/dynatrace/arm-dynatrace"
}
80 changes: 40 additions & 40 deletions sdk/dynatrace/arm-dynatrace/review/arm-dynatrace.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,16 @@

import * as coreAuth from '@azure/core-auth';
import * as coreClient from '@azure/core-client';
import { OperationState } from '@azure/core-lro';
import { PagedAsyncIterableIterator } from '@azure/core-paging';
import { PollerLike } from '@azure/core-lro';
import { PollOperationState } from '@azure/core-lro';
import { SimplePollerLike } from '@azure/core-lro';

// @public
export interface AccountInfo {
accountId?: string;
regionId?: string;
}

// @public
export interface AccountInfoSecure {
readonly accountId?: string;
readonly apiKey?: string;
readonly regionId?: string;
}

// @public
export type ActionType = string;

Expand Down Expand Up @@ -323,9 +316,9 @@ export interface LinkableEnvironmentListResponse {

// @public
export interface LinkableEnvironmentRequest {
region?: string;
tenantId?: string;
userPrincipal?: string;
region: string;
tenantId: string;
userPrincipal: string;
}

// @public
Expand All @@ -349,12 +342,30 @@ export interface LogRules {
// @public
export type ManagedIdentityType = string;

// @public
export interface MarketplaceSaaSResourceDetailsRequest {
tenantId: string;
}

// @public
export interface MarketplaceSaaSResourceDetailsResponse {
marketplaceSaaSResourceId?: string;
marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus;
planId?: string;
}

// @public
export type MarketplaceSubscriptionStatus = string;

// @public
export interface MetricRules {
filteringTags?: FilteringTag[];
sendingMetrics?: SendingMetricsStatus;
}

// @public
export interface MetricsStatusResponse {
azureResourceIds?: string[];
}

// @public
Expand Down Expand Up @@ -400,24 +411,20 @@ export interface MonitorResourceListResult {

// @public
export interface MonitorResourceUpdate {
dynatraceEnvironmentProperties?: DynatraceEnvironmentProperties;
marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus;
monitoringStatus?: MonitoringStatus;
planData?: PlanData;
tags?: {
[propertyName: string]: string;
};
userInfo?: UserInfo;
}

// @public
export interface Monitors {
beginCreateOrUpdate(resourceGroupName: string, monitorName: string, resource: MonitorResource, options?: MonitorsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<MonitorsCreateOrUpdateResponse>, MonitorsCreateOrUpdateResponse>>;
beginCreateOrUpdate(resourceGroupName: string, monitorName: string, resource: MonitorResource, options?: MonitorsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<MonitorsCreateOrUpdateResponse>, MonitorsCreateOrUpdateResponse>>;
beginCreateOrUpdateAndWait(resourceGroupName: string, monitorName: string, resource: MonitorResource, options?: MonitorsCreateOrUpdateOptionalParams): Promise<MonitorsCreateOrUpdateResponse>;
beginDelete(resourceGroupName: string, monitorName: string, options?: MonitorsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginDelete(resourceGroupName: string, monitorName: string, options?: MonitorsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, monitorName: string, options?: MonitorsDeleteOptionalParams): Promise<void>;
get(resourceGroupName: string, monitorName: string, options?: MonitorsGetOptionalParams): Promise<MonitorsGetResponse>;
getAccountCredentials(resourceGroupName: string, monitorName: string, options?: MonitorsGetAccountCredentialsOptionalParams): Promise<MonitorsGetAccountCredentialsResponse>;
getMarketplaceSaaSResourceDetails(request: MarketplaceSaaSResourceDetailsRequest, options?: MonitorsGetMarketplaceSaaSResourceDetailsOptionalParams): Promise<MonitorsGetMarketplaceSaaSResourceDetailsResponse>;
getMetricStatus(resourceGroupName: string, monitorName: string, options?: MonitorsGetMetricStatusOptionalParams): Promise<MonitorsGetMetricStatusResponse>;
getSSODetails(resourceGroupName: string, monitorName: string, options?: MonitorsGetSSODetailsOptionalParams): Promise<MonitorsGetSSODetailsResponse>;
getVMHostPayload(resourceGroupName: string, monitorName: string, options?: MonitorsGetVMHostPayloadOptionalParams): Promise<MonitorsGetVMHostPayloadResponse>;
listAppServices(resourceGroupName: string, monitorName: string, options?: MonitorsListAppServicesOptionalParams): PagedAsyncIterableIterator<AppServiceInfo>;
Expand Down Expand Up @@ -445,11 +452,18 @@ export interface MonitorsDeleteOptionalParams extends coreClient.OperationOption
}

// @public
export interface MonitorsGetAccountCredentialsOptionalParams extends coreClient.OperationOptions {
export interface MonitorsGetMarketplaceSaaSResourceDetailsOptionalParams extends coreClient.OperationOptions {
}

// @public
export type MonitorsGetAccountCredentialsResponse = AccountInfoSecure;
export type MonitorsGetMarketplaceSaaSResourceDetailsResponse = MarketplaceSaaSResourceDetailsResponse;

// @public
export interface MonitorsGetMetricStatusOptionalParams extends coreClient.OperationOptions {
}

// @public
export type MonitorsGetMetricStatusResponse = MetricsStatusResponse;

// @public
export interface MonitorsGetOptionalParams extends coreClient.OperationOptions {
Expand Down Expand Up @@ -648,7 +662,7 @@ export type SendSubscriptionLogsStatus = string;

// @public
export interface SingleSignOn {
beginCreateOrUpdate(resourceGroupName: string, monitorName: string, configurationName: string, resource: DynatraceSingleSignOnResource, options?: SingleSignOnCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<SingleSignOnCreateOrUpdateResponse>, SingleSignOnCreateOrUpdateResponse>>;
beginCreateOrUpdate(resourceGroupName: string, monitorName: string, configurationName: string, resource: DynatraceSingleSignOnResource, options?: SingleSignOnCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SingleSignOnCreateOrUpdateResponse>, SingleSignOnCreateOrUpdateResponse>>;
beginCreateOrUpdateAndWait(resourceGroupName: string, monitorName: string, configurationName: string, resource: DynatraceSingleSignOnResource, options?: SingleSignOnCreateOrUpdateOptionalParams): Promise<SingleSignOnCreateOrUpdateResponse>;
get(resourceGroupName: string, monitorName: string, configurationName: string, options?: SingleSignOnGetOptionalParams): Promise<SingleSignOnGetResponse>;
list(resourceGroupName: string, monitorName: string, options?: SingleSignOnListOptionalParams): PagedAsyncIterableIterator<DynatraceSingleSignOnResource>;
Expand Down Expand Up @@ -689,7 +703,7 @@ export type SingleSignOnStates = string;

// @public
export interface SSODetailsRequest {
userPrincipal?: string;
userPrincipal: string;
}

// @public
Expand Down Expand Up @@ -733,13 +747,12 @@ export interface TagRuleListResult {

// @public
export interface TagRules {
beginCreateOrUpdate(resourceGroupName: string, monitorName: string, ruleSetName: string, resource: TagRule, options?: TagRulesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<TagRulesCreateOrUpdateResponse>, TagRulesCreateOrUpdateResponse>>;
beginCreateOrUpdate(resourceGroupName: string, monitorName: string, ruleSetName: string, resource: TagRule, options?: TagRulesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<TagRulesCreateOrUpdateResponse>, TagRulesCreateOrUpdateResponse>>;
beginCreateOrUpdateAndWait(resourceGroupName: string, monitorName: string, ruleSetName: string, resource: TagRule, options?: TagRulesCreateOrUpdateOptionalParams): Promise<TagRulesCreateOrUpdateResponse>;
beginDelete(resourceGroupName: string, monitorName: string, ruleSetName: string, options?: TagRulesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginDelete(resourceGroupName: string, monitorName: string, ruleSetName: string, options?: TagRulesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, monitorName: string, ruleSetName: string, options?: TagRulesDeleteOptionalParams): Promise<void>;
get(resourceGroupName: string, monitorName: string, ruleSetName: string, options?: TagRulesGetOptionalParams): Promise<TagRulesGetResponse>;
list(resourceGroupName: string, monitorName: string, options?: TagRulesListOptionalParams): PagedAsyncIterableIterator<TagRule>;
update(resourceGroupName: string, monitorName: string, ruleSetName: string, resource: TagRuleUpdate, options?: TagRulesUpdateOptionalParams): Promise<TagRulesUpdateResponse>;
}

// @public
Expand Down Expand Up @@ -778,19 +791,6 @@ export interface TagRulesListOptionalParams extends coreClient.OperationOptions
// @public
export type TagRulesListResponse = TagRuleListResult;

// @public
export interface TagRulesUpdateOptionalParams extends coreClient.OperationOptions {
}

// @public
export type TagRulesUpdateResponse = TagRule;

// @public
export interface TagRuleUpdate {
logRules?: LogRules;
metricRules?: MetricRules;
}

// @public
export interface TrackedResource extends Resource {
location: string;
Expand Down
4 changes: 2 additions & 2 deletions sdk/dynatrace/arm-dynatrace/src/dynatraceObservability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class DynatraceObservability extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-dynatrace/1.0.2`;
const packageDetails = `azsdk-js-arm-dynatrace/2.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -113,7 +113,7 @@ export class DynatraceObservability extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2021-09-01";
this.apiVersion = options.apiVersion || "2023-04-27";
this.monitors = new MonitorsImpl(this);
this.operations = new OperationsImpl(this);
this.tagRules = new TagRulesImpl(this);
Expand Down
Loading