Skip to content
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
21 changes: 20 additions & 1 deletion sdk/security/arm-security/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Release History

## 6.0.0-beta.2 (2022-11-08)
## 6.0.0-beta.2 (2022-11-15)

**Features**

- Added operation group APICollection
- Added operation group APICollectionOffboarding
- Added operation group APICollectionOnboarding
- Added operation group ApplicationOperations
- Added operation group Applications
- Added operation group GovernanceAssignments
Expand Down Expand Up @@ -37,6 +40,13 @@
- Added Interface AmqpC2DMessagesNotInAllowedRange
- Added Interface AmqpC2DRejectedMessagesNotInAllowedRange
- Added Interface AmqpD2CMessagesNotInAllowedRange
- Added Interface APICollectionGetOptionalParams
- Added Interface APICollectionListNextOptionalParams
- Added Interface APICollectionListOptionalParams
- Added Interface APICollectionOffboardingDeleteOptionalParams
- Added Interface APICollectionOnboardingCreateOptionalParams
- Added Interface ApiCollectionResponse
- Added Interface ApiCollectionResponseList
- Added Interface Application
- Added Interface ApplicationCondition
- Added Interface ApplicationCreateOrUpdateOptionalParams
Expand Down Expand Up @@ -118,6 +128,8 @@
- Added Interface DirectMethodInvokesNotInAllowedRange
- Added Interface DiscoveredSecuritySolution
- Added Interface EnvironmentData
- Added Interface ErrorDetail
- Added Interface ErrorResponse
- Added Interface ExecuteGovernanceRuleParams
- Added Interface ExecuteRuleStatus
- Added Interface ExternalSecuritySolution
Expand Down Expand Up @@ -227,6 +239,10 @@
- Added Interface UnauthorizedOperationsNotInAllowedRange
- Added Interface UpdateIotSecuritySolutionData
- Added Interface WorkspaceSetting
- Added Type Alias APICollectionGetResponse
- Added Type Alias APICollectionListNextResponse
- Added Type Alias APICollectionListResponse
- Added Type Alias APICollectionOnboardingCreateResponse
- Added Type Alias ApplicationConditionOperator
- Added Type Alias ApplicationCreateOrUpdateResponse
- Added Type Alias ApplicationGetResponse
Expand Down Expand Up @@ -270,6 +286,9 @@
- Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom
- Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs
- Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter cloudRoleArn
- Class SecurityCenter has a new parameter aPICollection
- Class SecurityCenter has a new parameter aPICollectionOffboarding
- Class SecurityCenter has a new parameter aPICollectionOnboarding
- Class SecurityCenter has a new parameter applicationOperations
- Class SecurityCenter has a new parameter applications
- Class SecurityCenter has a new parameter governanceAssignments
Expand Down
8 changes: 4 additions & 4 deletions sdk/security/arm-security/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "ae9cb5a65ff4dba1d626ed0a1bb4e94dd17583e8",
"commit": "80db09f8c9ffafb514464598bca640fde8e7fba2",
"readme": "specification/security/resource-manager/readme.md",
"autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\security\\resource-manager\\readme.md --use=@autorest/[email protected].3.20221103.1 --generate-sample=true",
"autorest_command": "autorest --version=3.8.4 --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/security/resource-manager/readme.md --use=@autorest/[email protected].2",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/[email protected].3.20221103.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.5.1",
"use": "@autorest/[email protected].2"
}
13 changes: 2 additions & 11 deletions sdk/security/arm-security/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.6.1",
"@azure/core-client": "^1.5.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"tslib": "^2.2.0"
Expand Down Expand Up @@ -46,7 +46,6 @@
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security",
Expand Down Expand Up @@ -110,13 +109,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-security?view=azure-node-preview"
}
"autoPublish": true
}
85 changes: 82 additions & 3 deletions sdk/security/arm-security/review/arm-security.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,68 @@ export interface AmqpD2CMessagesNotInAllowedRange extends TimeWindowCustomAlertR
ruleType: "AmqpD2CMessagesNotInAllowedRange";
}

// @public
export interface APICollection {
get(resourceGroupName: string, serviceName: string, apiCollectionId: string, options?: APICollectionGetOptionalParams): Promise<APICollectionGetResponse>;
list(resourceGroupName: string, serviceName: string, options?: APICollectionListOptionalParams): PagedAsyncIterableIterator<ApiCollectionResponse>;
}

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

// @public
export type APICollectionGetResponse = ApiCollectionResponse;

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

// @public
export type APICollectionListNextResponse = ApiCollectionResponseList;

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

// @public
export type APICollectionListResponse = ApiCollectionResponseList;

// @public
export interface APICollectionOffboarding {
delete(resourceGroupName: string, serviceName: string, apiCollectionId: string, options?: APICollectionOffboardingDeleteOptionalParams): Promise<void>;
}

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

// @public
export interface APICollectionOnboarding {
create(resourceGroupName: string, serviceName: string, apiCollectionId: string, options?: APICollectionOnboardingCreateOptionalParams): Promise<APICollectionOnboardingCreateResponse>;
}

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

// @public
export type APICollectionOnboardingCreateResponse = ApiCollectionResponse;

// @public
export interface ApiCollectionResponse extends Resource {
additionalData?: {
[propertyName: string]: string;
};
displayName?: string;
}

// @public
export interface ApiCollectionResponseList {
readonly nextLink?: string;
readonly value?: ApiCollectionResponse[];
}

// @public
export interface Application extends Resource {
conditionSets?: Record<string, unknown>[];
Expand Down Expand Up @@ -1942,6 +2004,20 @@ export interface ErrorAdditionalInfo {
readonly type?: string;
}

// @public
export interface ErrorDetail {
readonly additionalInfo?: ErrorAdditionalInfo[];
readonly code?: string;
readonly details?: ErrorDetail[];
readonly message?: string;
readonly target?: string;
}

// @public
export interface ErrorResponse {
error?: ErrorDetail;
}

// @public
export interface ETag {
etag?: string;
Expand Down Expand Up @@ -2107,9 +2183,6 @@ export interface GcpProjectEnvironmentData extends EnvironmentData {
projectDetails?: GcpProjectDetails;
}

// @public
export function getContinuationToken(page: unknown): string | undefined;

// @public
export interface GithubScopeEnvironmentData extends EnvironmentData {
environmentType: "GithubScope";
Expand Down Expand Up @@ -4703,6 +4776,12 @@ export class SecurityCenter extends coreClient.ServiceClient {
// (undocumented)
allowedConnections: AllowedConnections;
// (undocumented)
aPICollection: APICollection;
// (undocumented)
aPICollectionOffboarding: APICollectionOffboarding;
// (undocumented)
aPICollectionOnboarding: APICollectionOnboarding;
// (undocumented)
applicationOperations: ApplicationOperations;
// (undocumented)
applications: Applications;
Expand Down
1 change: 0 additions & 1 deletion sdk/security/arm-security/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

/// <reference lib="esnext.asynciterable" />
export { getContinuationToken } from "./pagingHelper";
export * from "./models";
export { SecurityCenter } from "./securityCenter";
export * from "./operationsInterfaces";
89 changes: 89 additions & 0 deletions sdk/security/arm-security/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1919,6 +1919,55 @@ export interface ApplicationsList {
readonly nextLink?: string;
}

/** Page of a list of API collections as represented by Defender for APIs. */
export interface ApiCollectionResponseList {
/**
* API collections in this page.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly value?: ApiCollectionResponse[];
/**
* The URI to fetch the next page.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly nextLink?: string;
}

/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
export interface ErrorResponse {
/** The error object. */
error?: ErrorDetail;
}

/** The error detail. */
export interface ErrorDetail {
/**
* The error code.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly code?: string;
/**
* The error message.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly message?: string;
/**
* The error target.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly target?: string;
/**
* The error details.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly details?: ErrorDetail[];
/**
* The error additional info.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly additionalInfo?: ErrorAdditionalInfo[];
}

/** CVSS details */
export interface Cvss {
/**
Expand Down Expand Up @@ -3382,6 +3431,14 @@ export interface Application extends Resource {
conditionSets?: Record<string, unknown>[];
}

/** An API collection as represented by Defender for APIs. */
export interface ApiCollectionResponse extends Resource {
/** The display name of the Azure API Management API. */
displayName?: string;
/** Additional data regarding the API collection. */
additionalData?: { [propertyName: string]: string };
}

/** Security assessment metadata */
export interface SecurityAssessmentMetadata extends Resource {
/** User friendly display name of the assessment */
Expand Down Expand Up @@ -8627,6 +8684,38 @@ export type SecurityConnectorApplicationCreateOrUpdateResponse = Application;
export interface SecurityConnectorApplicationDeleteOptionalParams
extends coreClient.OperationOptions {}

/** Optional parameters. */
export interface APICollectionListOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the list operation. */
export type APICollectionListResponse = ApiCollectionResponseList;

/** Optional parameters. */
export interface APICollectionGetOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the get operation. */
export type APICollectionGetResponse = ApiCollectionResponse;

/** Optional parameters. */
export interface APICollectionListNextOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the listNext operation. */
export type APICollectionListNextResponse = ApiCollectionResponseList;

/** Optional parameters. */
export interface APICollectionOnboardingCreateOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the create operation. */
export type APICollectionOnboardingCreateResponse = ApiCollectionResponse;

/** Optional parameters. */
export interface APICollectionOffboardingDeleteOptionalParams
extends coreClient.OperationOptions {}

/** Optional parameters. */
export interface SecurityCenterOptionalParams
extends coreClient.ServiceClientOptions {
Expand Down
Loading