Skip to content

Commit 334d3f3

Browse files
author
SDKAuto
committed
CodeGen from PR 21519 in Azure/azure-rest-api-specs
Merge 2cad0776cb0bfe96abc00467856ea69bc150e910 into 83d42b77e751deafcf46784877922ec1538f41c6
1 parent 2666887 commit 334d3f3

File tree

64 files changed

+1515
-1534
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1515
-1534
lines changed

sdk/security/arm-security/CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# Release History
22

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

55
**Features**
66

7+
- Added operation group APICollection
8+
- Added operation group APICollectionOffboarding
9+
- Added operation group APICollectionOnboarding
710
- Added operation group ApplicationOperations
811
- Added operation group Applications
912
- Added operation group GovernanceAssignments
@@ -37,6 +40,13 @@
3740
- Added Interface AmqpC2DMessagesNotInAllowedRange
3841
- Added Interface AmqpC2DRejectedMessagesNotInAllowedRange
3942
- Added Interface AmqpD2CMessagesNotInAllowedRange
43+
- Added Interface APICollectionGetOptionalParams
44+
- Added Interface APICollectionListNextOptionalParams
45+
- Added Interface APICollectionListOptionalParams
46+
- Added Interface APICollectionOffboardingDeleteOptionalParams
47+
- Added Interface APICollectionOnboardingCreateOptionalParams
48+
- Added Interface ApiCollectionResponse
49+
- Added Interface ApiCollectionResponseList
4050
- Added Interface Application
4151
- Added Interface ApplicationCondition
4252
- Added Interface ApplicationCreateOrUpdateOptionalParams
@@ -118,6 +128,8 @@
118128
- Added Interface DirectMethodInvokesNotInAllowedRange
119129
- Added Interface DiscoveredSecuritySolution
120130
- Added Interface EnvironmentData
131+
- Added Interface ErrorDetail
132+
- Added Interface ErrorResponse
121133
- Added Interface ExecuteGovernanceRuleParams
122134
- Added Interface ExecuteRuleStatus
123135
- Added Interface ExternalSecuritySolution
@@ -227,6 +239,10 @@
227239
- Added Interface UnauthorizedOperationsNotInAllowedRange
228240
- Added Interface UpdateIotSecuritySolutionData
229241
- Added Interface WorkspaceSetting
242+
- Added Type Alias APICollectionGetResponse
243+
- Added Type Alias APICollectionListNextResponse
244+
- Added Type Alias APICollectionListResponse
245+
- Added Type Alias APICollectionOnboardingCreateResponse
230246
- Added Type Alias ApplicationConditionOperator
231247
- Added Type Alias ApplicationCreateOrUpdateResponse
232248
- Added Type Alias ApplicationGetResponse
@@ -270,6 +286,9 @@
270286
- Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom
271287
- Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs
272288
- Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter cloudRoleArn
289+
- Class SecurityCenter has a new parameter aPICollection
290+
- Class SecurityCenter has a new parameter aPICollectionOffboarding
291+
- Class SecurityCenter has a new parameter aPICollectionOnboarding
273292
- Class SecurityCenter has a new parameter applicationOperations
274293
- Class SecurityCenter has a new parameter applications
275294
- Class SecurityCenter has a new parameter governanceAssignments
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "ae9cb5a65ff4dba1d626ed0a1bb4e94dd17583e8",
2+
"commit": "80db09f8c9ffafb514464598bca640fde8e7fba2",
33
"readme": "specification/security/resource-manager/readme.md",
4-
"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",
4+
"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",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
7-
"use": "@autorest/[email protected].3.20221103.1"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.5.1",
7+
"use": "@autorest/[email protected].2"
88
}

sdk/security/arm-security/package.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@azure/core-lro": "^2.2.0",
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
14-
"@azure/core-client": "^1.6.1",
14+
"@azure/core-client": "^1.5.0",
1515
"@azure/core-auth": "^1.3.0",
1616
"@azure/core-rest-pipeline": "^1.8.0",
1717
"tslib": "^2.2.0"
@@ -46,7 +46,6 @@
4646
"@types/chai": "^4.2.8",
4747
"chai": "^4.2.0",
4848
"cross-env": "^7.0.2",
49-
"@types/node": "^14.0.0",
5049
"@azure/dev-tool": "^1.0.0"
5150
},
5251
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security",
@@ -110,13 +109,5 @@
110109
}
111110
]
112111
},
113-
"autoPublish": true,
114-
"//sampleConfiguration": {
115-
"productName": "",
116-
"productSlugs": [
117-
"azure"
118-
],
119-
"disableDocsMs": true,
120-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-security?view=azure-node-preview"
121-
}
112+
"autoPublish": true
122113
}

sdk/security/arm-security/review/arm-security.api.md

Lines changed: 82 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,68 @@ export interface AmqpD2CMessagesNotInAllowedRange extends TimeWindowCustomAlertR
550550
ruleType: "AmqpD2CMessagesNotInAllowedRange";
551551
}
552552

553+
// @public
554+
export interface APICollection {
555+
get(resourceGroupName: string, serviceName: string, apiCollectionId: string, options?: APICollectionGetOptionalParams): Promise<APICollectionGetResponse>;
556+
list(resourceGroupName: string, serviceName: string, options?: APICollectionListOptionalParams): PagedAsyncIterableIterator<ApiCollectionResponse>;
557+
}
558+
559+
// @public
560+
export interface APICollectionGetOptionalParams extends coreClient.OperationOptions {
561+
}
562+
563+
// @public
564+
export type APICollectionGetResponse = ApiCollectionResponse;
565+
566+
// @public
567+
export interface APICollectionListNextOptionalParams extends coreClient.OperationOptions {
568+
}
569+
570+
// @public
571+
export type APICollectionListNextResponse = ApiCollectionResponseList;
572+
573+
// @public
574+
export interface APICollectionListOptionalParams extends coreClient.OperationOptions {
575+
}
576+
577+
// @public
578+
export type APICollectionListResponse = ApiCollectionResponseList;
579+
580+
// @public
581+
export interface APICollectionOffboarding {
582+
delete(resourceGroupName: string, serviceName: string, apiCollectionId: string, options?: APICollectionOffboardingDeleteOptionalParams): Promise<void>;
583+
}
584+
585+
// @public
586+
export interface APICollectionOffboardingDeleteOptionalParams extends coreClient.OperationOptions {
587+
}
588+
589+
// @public
590+
export interface APICollectionOnboarding {
591+
create(resourceGroupName: string, serviceName: string, apiCollectionId: string, options?: APICollectionOnboardingCreateOptionalParams): Promise<APICollectionOnboardingCreateResponse>;
592+
}
593+
594+
// @public
595+
export interface APICollectionOnboardingCreateOptionalParams extends coreClient.OperationOptions {
596+
}
597+
598+
// @public
599+
export type APICollectionOnboardingCreateResponse = ApiCollectionResponse;
600+
601+
// @public
602+
export interface ApiCollectionResponse extends Resource {
603+
additionalData?: {
604+
[propertyName: string]: string;
605+
};
606+
displayName?: string;
607+
}
608+
609+
// @public
610+
export interface ApiCollectionResponseList {
611+
readonly nextLink?: string;
612+
readonly value?: ApiCollectionResponse[];
613+
}
614+
553615
// @public
554616
export interface Application extends Resource {
555617
conditionSets?: Record<string, unknown>[];
@@ -1942,6 +2004,20 @@ export interface ErrorAdditionalInfo {
19422004
readonly type?: string;
19432005
}
19442006

2007+
// @public
2008+
export interface ErrorDetail {
2009+
readonly additionalInfo?: ErrorAdditionalInfo[];
2010+
readonly code?: string;
2011+
readonly details?: ErrorDetail[];
2012+
readonly message?: string;
2013+
readonly target?: string;
2014+
}
2015+
2016+
// @public
2017+
export interface ErrorResponse {
2018+
error?: ErrorDetail;
2019+
}
2020+
19452021
// @public
19462022
export interface ETag {
19472023
etag?: string;
@@ -2107,9 +2183,6 @@ export interface GcpProjectEnvironmentData extends EnvironmentData {
21072183
projectDetails?: GcpProjectDetails;
21082184
}
21092185

2110-
// @public
2111-
export function getContinuationToken(page: unknown): string | undefined;
2112-
21132186
// @public
21142187
export interface GithubScopeEnvironmentData extends EnvironmentData {
21152188
environmentType: "GithubScope";
@@ -4703,6 +4776,12 @@ export class SecurityCenter extends coreClient.ServiceClient {
47034776
// (undocumented)
47044777
allowedConnections: AllowedConnections;
47054778
// (undocumented)
4779+
aPICollection: APICollection;
4780+
// (undocumented)
4781+
aPICollectionOffboarding: APICollectionOffboarding;
4782+
// (undocumented)
4783+
aPICollectionOnboarding: APICollectionOnboarding;
4784+
// (undocumented)
47064785
applicationOperations: ApplicationOperations;
47074786
// (undocumented)
47084787
applications: Applications;

sdk/security/arm-security/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88

99
/// <reference lib="esnext.asynciterable" />
10-
export { getContinuationToken } from "./pagingHelper";
1110
export * from "./models";
1211
export { SecurityCenter } from "./securityCenter";
1312
export * from "./operationsInterfaces";

sdk/security/arm-security/src/models/index.ts

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1919,6 +1919,55 @@ export interface ApplicationsList {
19191919
readonly nextLink?: string;
19201920
}
19211921

1922+
/** Page of a list of API collections as represented by Defender for APIs. */
1923+
export interface ApiCollectionResponseList {
1924+
/**
1925+
* API collections in this page.
1926+
* NOTE: This property will not be serialized. It can only be populated by the server.
1927+
*/
1928+
readonly value?: ApiCollectionResponse[];
1929+
/**
1930+
* The URI to fetch the next page.
1931+
* NOTE: This property will not be serialized. It can only be populated by the server.
1932+
*/
1933+
readonly nextLink?: string;
1934+
}
1935+
1936+
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
1937+
export interface ErrorResponse {
1938+
/** The error object. */
1939+
error?: ErrorDetail;
1940+
}
1941+
1942+
/** The error detail. */
1943+
export interface ErrorDetail {
1944+
/**
1945+
* The error code.
1946+
* NOTE: This property will not be serialized. It can only be populated by the server.
1947+
*/
1948+
readonly code?: string;
1949+
/**
1950+
* The error message.
1951+
* NOTE: This property will not be serialized. It can only be populated by the server.
1952+
*/
1953+
readonly message?: string;
1954+
/**
1955+
* The error target.
1956+
* NOTE: This property will not be serialized. It can only be populated by the server.
1957+
*/
1958+
readonly target?: string;
1959+
/**
1960+
* The error details.
1961+
* NOTE: This property will not be serialized. It can only be populated by the server.
1962+
*/
1963+
readonly details?: ErrorDetail[];
1964+
/**
1965+
* The error additional info.
1966+
* NOTE: This property will not be serialized. It can only be populated by the server.
1967+
*/
1968+
readonly additionalInfo?: ErrorAdditionalInfo[];
1969+
}
1970+
19221971
/** CVSS details */
19231972
export interface Cvss {
19241973
/**
@@ -3382,6 +3431,14 @@ export interface Application extends Resource {
33823431
conditionSets?: Record<string, unknown>[];
33833432
}
33843433

3434+
/** An API collection as represented by Defender for APIs. */
3435+
export interface ApiCollectionResponse extends Resource {
3436+
/** The display name of the Azure API Management API. */
3437+
displayName?: string;
3438+
/** Additional data regarding the API collection. */
3439+
additionalData?: { [propertyName: string]: string };
3440+
}
3441+
33853442
/** Security assessment metadata */
33863443
export interface SecurityAssessmentMetadata extends Resource {
33873444
/** User friendly display name of the assessment */
@@ -8627,6 +8684,38 @@ export type SecurityConnectorApplicationCreateOrUpdateResponse = Application;
86278684
export interface SecurityConnectorApplicationDeleteOptionalParams
86288685
extends coreClient.OperationOptions {}
86298686

8687+
/** Optional parameters. */
8688+
export interface APICollectionListOptionalParams
8689+
extends coreClient.OperationOptions {}
8690+
8691+
/** Contains response data for the list operation. */
8692+
export type APICollectionListResponse = ApiCollectionResponseList;
8693+
8694+
/** Optional parameters. */
8695+
export interface APICollectionGetOptionalParams
8696+
extends coreClient.OperationOptions {}
8697+
8698+
/** Contains response data for the get operation. */
8699+
export type APICollectionGetResponse = ApiCollectionResponse;
8700+
8701+
/** Optional parameters. */
8702+
export interface APICollectionListNextOptionalParams
8703+
extends coreClient.OperationOptions {}
8704+
8705+
/** Contains response data for the listNext operation. */
8706+
export type APICollectionListNextResponse = ApiCollectionResponseList;
8707+
8708+
/** Optional parameters. */
8709+
export interface APICollectionOnboardingCreateOptionalParams
8710+
extends coreClient.OperationOptions {}
8711+
8712+
/** Contains response data for the create operation. */
8713+
export type APICollectionOnboardingCreateResponse = ApiCollectionResponse;
8714+
8715+
/** Optional parameters. */
8716+
export interface APICollectionOffboardingDeleteOptionalParams
8717+
extends coreClient.OperationOptions {}
8718+
86308719
/** Optional parameters. */
86318720
export interface SecurityCenterOptionalParams
86328721
extends coreClient.ServiceClientOptions {

0 commit comments

Comments
 (0)