Skip to content

Commit 5a9bdd5

Browse files
author
SDKAuto
committed
CodeGen from PR 21206 in Azure/azure-rest-api-specs
Merge 2ae26a0bd520295cca9591b8549856f5c6f45181 into 21426cf85836ec17aaa4f20f58324a8666925e34
1 parent 24f4dee commit 5a9bdd5

File tree

10 files changed

+338
-246
lines changed

10 files changed

+338
-246
lines changed

sdk/security/arm-security/CHANGELOG.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
# Release History
2-
3-
## 6.0.0-beta.2 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
13-
## 6.0.0-beta.1 (2022-09-14)
2+
3+
## 6.0.0-beta.2 (2022-10-26)
144

155
**Features**
166

@@ -66,7 +56,7 @@
6656
- Added Interface AutoProvisioningSetting
6757
- Added Interface AwAssumeRoleAuthenticationDetailsProperties
6858
- Added Interface AwsCredsAuthenticationDetailsProperties
69-
- Added Interface AWSEnvironmentData
59+
- Added Interface AwsEnvironmentData
7060
- Added Interface AwsOrganizationalData
7161
- Added Interface AwsOrganizationalDataMaster
7262
- Added Interface AwsOrganizationalDataMember
@@ -91,9 +81,13 @@
9181
- Added Interface CustomAssessmentAutomationRequest
9282
- Added Interface CustomEntityStoreAssignment
9383
- Added Interface DataExportSettings
84+
- Added Interface DefenderCspmAwsOffering
85+
- Added Interface DefenderCspmAwsOfferingVmScanners
86+
- Added Interface DefenderCspmAwsOfferingVmScannersConfiguration
87+
- Added Interface DefenderCspmGcpOffering
9488
- Added Interface DefenderFoDatabasesAwsOffering
9589
- Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning
96-
- Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata
90+
- Added Interface DefenderFoDatabasesAwsOfferingRds
9791
- Added Interface DefenderForContainersAwsOffering
9892
- Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment
9993
- Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask
@@ -102,8 +96,9 @@
10296
- Added Interface DefenderForContainersGcpOfferingNativeCloudConnection
10397
- Added Interface DefenderForDatabasesGcpOffering
10498
- Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioning
105-
- Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration
10699
- Added Interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning
100+
- Added Interface DefenderForDevOpsAzureDevOpsOffering
101+
- Added Interface DefenderForDevOpsGithubOffering
107102
- Added Interface DefenderForServersAwsOffering
108103
- Added Interface DefenderForServersAwsOfferingMdeAutoProvisioning
109104
- Added Interface DefenderForServersAwsOfferingSubPlan
@@ -113,7 +108,6 @@
113108
- Added Interface DefenderForServersAwsOfferingVmScannersConfiguration
114109
- Added Interface DefenderForServersGcpOffering
115110
- Added Interface DefenderForServersGcpOfferingArcAutoProvisioning
116-
- Added Interface DefenderForServersGcpOfferingArcAutoProvisioningConfiguration
117111
- Added Interface DefenderForServersGcpOfferingDefenderForServers
118112
- Added Interface DefenderForServersGcpOfferingMdeAutoProvisioning
119113
- Added Interface DefenderForServersGcpOfferingSubPlan
@@ -305,16 +299,21 @@
305299
- Enum KnownOfferingType has a new value CspmMonitorAzureDevOps
306300
- Enum KnownOfferingType has a new value CspmMonitorGcp
307301
- Enum KnownOfferingType has a new value CspmMonitorGithub
302+
- Enum KnownOfferingType has a new value DefenderCspmAws
303+
- Enum KnownOfferingType has a new value DefenderCspmGcp
308304
- Enum KnownOfferingType has a new value DefenderForContainersGcp
309305
- Enum KnownOfferingType has a new value DefenderForDatabasesAws
310306
- Enum KnownOfferingType has a new value DefenderForDatabasesGcp
307+
- Enum KnownOfferingType has a new value DefenderForDevOpsAzureDevOps
308+
- Enum KnownOfferingType has a new value DefenderForDevOpsGithub
311309
- Enum KnownOfferingType has a new value DefenderForServersGcp
312310
- Enum KnownSettingName has a new value WdatpUnifiedSolution
313311

314312
**Breaking Changes**
315313

316314
- Removed operation Alerts.simulate
317315
- Removed operation SecurityContacts.update
316+
- Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter servicePrincipalSecretMetadata
318317
- Removed Enum KnownAlertNotifications
319318
- Removed Enum KnownAlertsToAdmins
320319

sdk/security/arm-security/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Azure Service client library for JavaScript
1+
# Azure SecurityCenter client library for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Service client.
3+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure SecurityCenter client.
44

55
API spec for Microsoft.Security (Azure Security Center) resource provider
66

@@ -24,16 +24,16 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
2424

2525
### Install the `@azure/arm-security` package
2626

27-
Install the Azure Service client library for JavaScript with `npm`:
27+
Install the Azure SecurityCenter client library for JavaScript with `npm`:
2828

2929
```bash
3030
npm install @azure/arm-security
3131
```
3232

3333
### Create and authenticate a `SecurityCenter`
3434

35-
To create a client object to access the Azure Service API, you will need the `endpoint` of your Azure Service resource and a `credential`. The Azure Service client can use Azure Active Directory credentials to authenticate.
36-
You can find the endpoint for your Azure Service resource in the [Azure Portal][azure_portal].
35+
To create a client object to access the Azure SecurityCenter API, you will need the `endpoint` of your Azure SecurityCenter resource and a `credential`. The Azure SecurityCenter client can use Azure Active Directory credentials to authenticate.
36+
You can find the endpoint for your Azure SecurityCenter resource in the [Azure Portal][azure_portal].
3737

3838
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
3939

@@ -43,7 +43,7 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below
4343
npm install @azure/identity
4444
```
4545

46-
You will also need to **register a new AAD application and grant access to Azure Service** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
46+
You will also need to **register a new AAD application and grant access to Azure SecurityCenter** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
4747
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
4848

4949
For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
@@ -72,7 +72,7 @@ To use this client library in the browser, first you need to use a bundler. For
7272

7373
### SecurityCenter
7474

75-
`SecurityCenter` is the primary interface for developers using the Azure Service client library. Explore the methods on this client object to understand the different features of the Azure Service service that you can access.
75+
`SecurityCenter` is the primary interface for developers using the Azure SecurityCenter client library. Explore the methods on this client object to understand the different features of the Azure SecurityCenter service that you can access.
7676

7777
## Troubleshooting
7878

sdk/security/arm-security/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "af1be2677e619e483210064ff658e62ec25053aa",
2+
"commit": "ac37959b38c84ccd089938bfd001b81a89b54067",
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].1.20220727.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/[email protected].2",
7-
"use": "@autorest/[email protected].1.20220727.1"
6+
"release_tool": "@azure-tools/[email protected].4",
7+
"use": "@autorest/[email protected].2"
88
}

sdk/security/arm-security/package.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,5 @@
109109
}
110110
]
111111
},
112-
"autoPublish": true,
113-
"//sampleConfiguration": {
114-
"productName": "",
115-
"productSlugs": [
116-
"azure"
117-
],
118-
"disableDocsMs": true,
119-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-security?view=azure-node-preview"
120-
}
121-
}
112+
"autoPublish": true
113+
}

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

Lines changed: 55 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ export interface AlertSyncSettings extends Setting {
474474

475475
// @public
476476
export interface AllowedConnections {
477-
get(resourceGroupName: string, ascLocation: string, connectionType: ConnectionType, options?: AllowedConnectionsGetOptionalParams): Promise<AllowedConnectionsGetResponse>;
477+
get(resourceGroupName: string, ascLocation: string, connectionType: ConnectionType_2, options?: AllowedConnectionsGetOptionalParams): Promise<AllowedConnectionsGetResponse>;
478478
list(options?: AllowedConnectionsListOptionalParams): PagedAsyncIterableIterator<AllowedConnectionsResource>;
479479
listByHomeRegion(ascLocation: string, options?: AllowedConnectionsListByHomeRegionOptionalParams): PagedAsyncIterableIterator<AllowedConnectionsResource>;
480480
}
@@ -995,7 +995,7 @@ export interface AwsCredsAuthenticationDetailsProperties extends AuthenticationD
995995
}
996996

997997
// @public
998-
export interface AWSEnvironmentData extends EnvironmentData {
998+
export interface AwsEnvironmentData extends EnvironmentData {
999999
environmentType: "AwsAccount";
10001000
organizationalData?: AwsOrganizationalDataUnion;
10011001
}
@@ -1113,11 +1113,11 @@ export type CloudName = string;
11131113
// @public
11141114
export interface CloudOffering {
11151115
readonly description?: string;
1116-
offeringType: "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "InformationProtectionAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps";
1116+
offeringType: "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "InformationProtectionAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "DefenderForDevOpsGithub" | "DefenderForDevOpsAzureDevOps";
11171117
}
11181118

11191119
// @public (undocumented)
1120-
export type CloudOfferingUnion = CloudOffering | CspmMonitorAwsOffering | DefenderForContainersAwsOffering | DefenderForServersAwsOffering | DefenderFoDatabasesAwsOffering | InformationProtectionAwsOffering | CspmMonitorGcpOffering | DefenderForServersGcpOffering | DefenderForDatabasesGcpOffering | DefenderForContainersGcpOffering | CspmMonitorGithubOffering | CspmMonitorAzureDevOpsOffering;
1120+
export type CloudOfferingUnion = CloudOffering | CspmMonitorAwsOffering | DefenderForContainersAwsOffering | DefenderForServersAwsOffering | DefenderFoDatabasesAwsOffering | InformationProtectionAwsOffering | CspmMonitorGcpOffering | DefenderForServersGcpOffering | DefenderForDatabasesGcpOffering | DefenderForContainersGcpOffering | CspmMonitorGithubOffering | CspmMonitorAzureDevOpsOffering | DefenderCspmAwsOffering | DefenderCspmGcpOffering | DefenderForDevOpsGithubOffering | DefenderForDevOpsAzureDevOpsOffering;
11211121

11221122
// @public
11231123
export interface Compliance extends Resource {
@@ -1248,7 +1248,8 @@ export interface ConnectionToIpNotAllowed extends AllowlistCustomAlertRule {
12481248
}
12491249

12501250
// @public
1251-
export type ConnectionType = string;
1251+
type ConnectionType_2 = string;
1252+
export { ConnectionType_2 as ConnectionType }
12521253

12531254
// @public
12541255
export interface Connectors {
@@ -1543,24 +1544,49 @@ export interface DataExportSettings extends Setting {
15431544
// @public
15441545
export type DataSource = string;
15451546

1547+
// @public
1548+
export interface DefenderCspmAwsOffering extends CloudOffering {
1549+
offeringType: "DefenderCspmAws";
1550+
vmScanners?: DefenderCspmAwsOfferingVmScanners;
1551+
}
1552+
1553+
// @public
1554+
export interface DefenderCspmAwsOfferingVmScanners {
1555+
configuration?: DefenderCspmAwsOfferingVmScannersConfiguration;
1556+
enabled?: boolean;
1557+
}
1558+
1559+
// @public
1560+
export interface DefenderCspmAwsOfferingVmScannersConfiguration {
1561+
cloudRoleArn?: string;
1562+
exclusionTags?: {
1563+
[propertyName: string]: string;
1564+
};
1565+
scanningMode?: ScanningMode;
1566+
}
1567+
1568+
// @public
1569+
export interface DefenderCspmGcpOffering extends CloudOffering {
1570+
offeringType: "DefenderCspmGcp";
1571+
}
1572+
15461573
// @public
15471574
export interface DefenderFoDatabasesAwsOffering extends CloudOffering {
15481575
arcAutoProvisioning?: DefenderFoDatabasesAwsOfferingArcAutoProvisioning;
15491576
offeringType: "DefenderForDatabasesAws";
1577+
rds?: DefenderFoDatabasesAwsOfferingRds;
15501578
}
15511579

15521580
// @public
15531581
export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning {
15541582
cloudRoleArn?: string;
15551583
enabled?: boolean;
1556-
servicePrincipalSecretMetadata?: DefenderFoDatabasesAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata;
15571584
}
15581585

15591586
// @public
1560-
export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata {
1561-
expiryDate?: Date;
1562-
parameterNameInStore?: string;
1563-
parameterStoreRegion?: string;
1587+
export interface DefenderFoDatabasesAwsOfferingRds {
1588+
cloudRoleArn?: string;
1589+
enabled?: boolean;
15641590
}
15651591

15661592
// @public
@@ -1639,22 +1665,25 @@ export interface DefenderForDatabasesGcpOffering extends CloudOffering {
16391665

16401666
// @public
16411667
export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning {
1642-
configuration?: DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration;
16431668
enabled?: boolean;
16441669
}
16451670

1646-
// @public
1647-
export interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration {
1648-
agentOnboardingServiceAccountNumericId?: string;
1649-
clientId?: string;
1650-
}
1651-
16521671
// @public
16531672
export interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning {
16541673
serviceAccountEmailAddress?: string;
16551674
workloadIdentityProviderId?: string;
16561675
}
16571676

1677+
// @public
1678+
export interface DefenderForDevOpsAzureDevOpsOffering extends CloudOffering {
1679+
offeringType: "DefenderForDevOpsAzureDevOps";
1680+
}
1681+
1682+
// @public
1683+
export interface DefenderForDevOpsGithubOffering extends CloudOffering {
1684+
offeringType: "DefenderForDevOpsGithub";
1685+
}
1686+
16581687
// @public
16591688
export interface DefenderForServersAwsOffering extends CloudOffering {
16601689
arcAutoProvisioning?: DefenderForServersAwsOfferingArcAutoProvisioning;
@@ -1670,14 +1699,6 @@ export interface DefenderForServersAwsOffering extends CloudOffering {
16701699
export interface DefenderForServersAwsOfferingArcAutoProvisioning {
16711700
cloudRoleArn?: string;
16721701
enabled?: boolean;
1673-
servicePrincipalSecretMetadata?: DefenderForServersAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata;
1674-
}
1675-
1676-
// @public
1677-
export interface DefenderForServersAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata {
1678-
expiryDate?: string;
1679-
parameterNameInStore?: string;
1680-
parameterStoreRegion?: string;
16811702
}
16821703

16831704
// @public
@@ -1716,7 +1737,9 @@ export interface DefenderForServersAwsOfferingVmScanners {
17161737
// @public
17171738
export interface DefenderForServersAwsOfferingVmScannersConfiguration {
17181739
cloudRoleArn?: string;
1719-
exclusionTags?: Record<string, unknown>;
1740+
exclusionTags?: {
1741+
[propertyName: string]: string;
1742+
};
17201743
scanningMode?: ScanningMode;
17211744
}
17221745

@@ -1732,16 +1755,9 @@ export interface DefenderForServersGcpOffering extends CloudOffering {
17321755

17331756
// @public
17341757
export interface DefenderForServersGcpOfferingArcAutoProvisioning {
1735-
configuration?: DefenderForServersGcpOfferingArcAutoProvisioningConfiguration;
17361758
enabled?: boolean;
17371759
}
17381760

1739-
// @public
1740-
export interface DefenderForServersGcpOfferingArcAutoProvisioningConfiguration {
1741-
agentOnboardingServiceAccountNumericId?: string;
1742-
clientId?: string;
1743-
}
1744-
17451761
// @public
17461762
export interface DefenderForServersGcpOfferingDefenderForServers {
17471763
serviceAccountEmailAddress?: string;
@@ -1916,7 +1932,7 @@ export interface EnvironmentData {
19161932
}
19171933

19181934
// @public (undocumented)
1919-
export type EnvironmentDataUnion = EnvironmentData | AWSEnvironmentData | GcpProjectEnvironmentData | GithubScopeEnvironmentData | AzureDevOpsScopeEnvironmentData;
1935+
export type EnvironmentDataUnion = EnvironmentData | AwsEnvironmentData | GcpProjectEnvironmentData | GithubScopeEnvironmentData | AzureDevOpsScopeEnvironmentData;
19201936

19211937
// @public
19221938
export type EnvironmentType = string;
@@ -2994,6 +3010,7 @@ export enum KnownAlertStatus {
29943010
// @public
29953011
export enum KnownApplicationConditionOperator {
29963012
Contains = "Contains",
3013+
Equals = "Equals",
29973014
In = "In"
29983015
}
29993016

@@ -3276,10 +3293,14 @@ export enum KnownOfferingType {
32763293
CspmMonitorAzureDevOps = "CspmMonitorAzureDevOps",
32773294
CspmMonitorGcp = "CspmMonitorGcp",
32783295
CspmMonitorGithub = "CspmMonitorGithub",
3296+
DefenderCspmAws = "DefenderCspmAws",
3297+
DefenderCspmGcp = "DefenderCspmGcp",
32793298
DefenderForContainersAws = "DefenderForContainersAws",
32803299
DefenderForContainersGcp = "DefenderForContainersGcp",
32813300
DefenderForDatabasesAws = "DefenderForDatabasesAws",
32823301
DefenderForDatabasesGcp = "DefenderForDatabasesGcp",
3302+
DefenderForDevOpsAzureDevOps = "DefenderForDevOpsAzureDevOps",
3303+
DefenderForDevOpsGithub = "DefenderForDevOpsGithub",
32833304
DefenderForServersAws = "DefenderForServersAws",
32843305
DefenderForServersGcp = "DefenderForServersGcp",
32853306
InformationProtectionAws = "InformationProtectionAws"

0 commit comments

Comments
 (0)