Skip to content

Commit 07faf78

Browse files
author
SDKAuto
committed
CodeGen from PR 21407 in Azure/azure-rest-api-specs
Merge 9b2e7c5e787509e720bb87d9fb8a6324a9970b10 into fa8bd476e1768f419063cba8c1d696e9f8c43511
1 parent af9ee8f commit 07faf78

File tree

10 files changed

+337
-244
lines changed

10 files changed

+337
-244
lines changed

sdk/security/arm-security/CHANGELOG.md

Lines changed: 17 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-11-03)
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
@@ -240,6 +234,7 @@
240234
- Added Type Alias ApplicationsListResponse
241235
- Added Type Alias ApplicationSourceResourceType
242236
- Added Type Alias AwsOrganizationalDataUnion
237+
- Added Type Alias ConnectionType
243238
- Added Type Alias EnvironmentDataUnion
244239
- Added Type Alias EnvironmentType
245240
- Added Type Alias GcpOrganizationalDataUnion
@@ -305,16 +300,22 @@
305300
- Enum KnownOfferingType has a new value CspmMonitorAzureDevOps
306301
- Enum KnownOfferingType has a new value CspmMonitorGcp
307302
- Enum KnownOfferingType has a new value CspmMonitorGithub
303+
- Enum KnownOfferingType has a new value DefenderCspmAws
304+
- Enum KnownOfferingType has a new value DefenderCspmGcp
308305
- Enum KnownOfferingType has a new value DefenderForContainersGcp
309306
- Enum KnownOfferingType has a new value DefenderForDatabasesAws
310307
- Enum KnownOfferingType has a new value DefenderForDatabasesGcp
308+
- Enum KnownOfferingType has a new value DefenderForDevOpsAzureDevOps
309+
- Enum KnownOfferingType has a new value DefenderForDevOpsGithub
311310
- Enum KnownOfferingType has a new value DefenderForServersGcp
312311
- Enum KnownSettingName has a new value WdatpUnifiedSolution
313312

314313
**Breaking Changes**
315314

316315
- Removed operation Alerts.simulate
317316
- Removed operation SecurityContacts.update
317+
- Operation AllowedConnections.get has a new signature
318+
- Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter servicePrincipalSecretMetadata
318319
- Removed Enum KnownAlertNotifications
319320
- Removed Enum KnownAlertsToAdmins
320321

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": "f3204698625c0aa0b4c1ebf4cfa1a8bcc890a134",
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/js-sdk-release-tools@2.4.2",
7-
"use": "@autorest/[email protected].1.20220727.1"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.5.0",
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: 52 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -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 {
@@ -1543,24 +1543,49 @@ export interface DataExportSettings extends Setting {
15431543
// @public
15441544
export type DataSource = string;
15451545

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

15521579
// @public
15531580
export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning {
15541581
cloudRoleArn?: string;
15551582
enabled?: boolean;
1556-
servicePrincipalSecretMetadata?: DefenderFoDatabasesAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata;
15571583
}
15581584

15591585
// @public
1560-
export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata {
1561-
expiryDate?: Date;
1562-
parameterNameInStore?: string;
1563-
parameterStoreRegion?: string;
1586+
export interface DefenderFoDatabasesAwsOfferingRds {
1587+
cloudRoleArn?: string;
1588+
enabled?: boolean;
15641589
}
15651590

15661591
// @public
@@ -1639,22 +1664,25 @@ export interface DefenderForDatabasesGcpOffering extends CloudOffering {
16391664

16401665
// @public
16411666
export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning {
1642-
configuration?: DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration;
16431667
enabled?: boolean;
16441668
}
16451669

1646-
// @public
1647-
export interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration {
1648-
agentOnboardingServiceAccountNumericId?: string;
1649-
clientId?: string;
1650-
}
1651-
16521670
// @public
16531671
export interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning {
16541672
serviceAccountEmailAddress?: string;
16551673
workloadIdentityProviderId?: string;
16561674
}
16571675

1676+
// @public
1677+
export interface DefenderForDevOpsAzureDevOpsOffering extends CloudOffering {
1678+
offeringType: "DefenderForDevOpsAzureDevOps";
1679+
}
1680+
1681+
// @public
1682+
export interface DefenderForDevOpsGithubOffering extends CloudOffering {
1683+
offeringType: "DefenderForDevOpsGithub";
1684+
}
1685+
16581686
// @public
16591687
export interface DefenderForServersAwsOffering extends CloudOffering {
16601688
arcAutoProvisioning?: DefenderForServersAwsOfferingArcAutoProvisioning;
@@ -1670,14 +1698,6 @@ export interface DefenderForServersAwsOffering extends CloudOffering {
16701698
export interface DefenderForServersAwsOfferingArcAutoProvisioning {
16711699
cloudRoleArn?: string;
16721700
enabled?: boolean;
1673-
servicePrincipalSecretMetadata?: DefenderForServersAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata;
1674-
}
1675-
1676-
// @public
1677-
export interface DefenderForServersAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata {
1678-
expiryDate?: string;
1679-
parameterNameInStore?: string;
1680-
parameterStoreRegion?: string;
16811701
}
16821702

16831703
// @public
@@ -1716,7 +1736,9 @@ export interface DefenderForServersAwsOfferingVmScanners {
17161736
// @public
17171737
export interface DefenderForServersAwsOfferingVmScannersConfiguration {
17181738
cloudRoleArn?: string;
1719-
exclusionTags?: Record<string, unknown>;
1739+
exclusionTags?: {
1740+
[propertyName: string]: string;
1741+
};
17201742
scanningMode?: ScanningMode;
17211743
}
17221744

@@ -1732,16 +1754,9 @@ export interface DefenderForServersGcpOffering extends CloudOffering {
17321754

17331755
// @public
17341756
export interface DefenderForServersGcpOfferingArcAutoProvisioning {
1735-
configuration?: DefenderForServersGcpOfferingArcAutoProvisioningConfiguration;
17361757
enabled?: boolean;
17371758
}
17381759

1739-
// @public
1740-
export interface DefenderForServersGcpOfferingArcAutoProvisioningConfiguration {
1741-
agentOnboardingServiceAccountNumericId?: string;
1742-
clientId?: string;
1743-
}
1744-
17451760
// @public
17461761
export interface DefenderForServersGcpOfferingDefenderForServers {
17471762
serviceAccountEmailAddress?: string;
@@ -1916,7 +1931,7 @@ export interface EnvironmentData {
19161931
}
19171932

19181933
// @public (undocumented)
1919-
export type EnvironmentDataUnion = EnvironmentData | AWSEnvironmentData | GcpProjectEnvironmentData | GithubScopeEnvironmentData | AzureDevOpsScopeEnvironmentData;
1934+
export type EnvironmentDataUnion = EnvironmentData | AwsEnvironmentData | GcpProjectEnvironmentData | GithubScopeEnvironmentData | AzureDevOpsScopeEnvironmentData;
19201935

19211936
// @public
19221937
export type EnvironmentType = string;
@@ -2994,6 +3009,7 @@ export enum KnownAlertStatus {
29943009
// @public
29953010
export enum KnownApplicationConditionOperator {
29963011
Contains = "Contains",
3012+
Equals = "Equals",
29973013
In = "In"
29983014
}
29993015

@@ -3276,10 +3292,14 @@ export enum KnownOfferingType {
32763292
CspmMonitorAzureDevOps = "CspmMonitorAzureDevOps",
32773293
CspmMonitorGcp = "CspmMonitorGcp",
32783294
CspmMonitorGithub = "CspmMonitorGithub",
3295+
DefenderCspmAws = "DefenderCspmAws",
3296+
DefenderCspmGcp = "DefenderCspmGcp",
32793297
DefenderForContainersAws = "DefenderForContainersAws",
32803298
DefenderForContainersGcp = "DefenderForContainersGcp",
32813299
DefenderForDatabasesAws = "DefenderForDatabasesAws",
32823300
DefenderForDatabasesGcp = "DefenderForDatabasesGcp",
3301+
DefenderForDevOpsAzureDevOps = "DefenderForDevOpsAzureDevOps",
3302+
DefenderForDevOpsGithub = "DefenderForDevOpsGithub",
32833303
DefenderForServersAws = "DefenderForServersAws",
32843304
DefenderForServersGcp = "DefenderForServersGcp",
32853305
InformationProtectionAws = "InformationProtectionAws"

0 commit comments

Comments
 (0)