@vendasta/mission-control 3.7.0 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -95,6 +95,14 @@ var KubernetesController;
95
95
  KubernetesController[KubernetesController["KUBERNETES_CONTROLLER_DEPLOYMENT"] = 0] = "KUBERNETES_CONTROLLER_DEPLOYMENT";
96
96
  KubernetesController[KubernetesController["KUBERNETES_CONTROLLER_ARGOROLLOUT"] = 1] = "KUBERNETES_CONTROLLER_ARGOROLLOUT";
97
97
  })(KubernetesController || (KubernetesController = {}));
98
+ var VulnerabilitySeverity;
99
+ (function (VulnerabilitySeverity) {
100
+ VulnerabilitySeverity[VulnerabilitySeverity["VULNERABILITY_SEVERITY_UNSPECIFIED"] = 0] = "VULNERABILITY_SEVERITY_UNSPECIFIED";
101
+ VulnerabilitySeverity[VulnerabilitySeverity["VULNERABILITY_SEVERITY_LOW"] = 1] = "VULNERABILITY_SEVERITY_LOW";
102
+ VulnerabilitySeverity[VulnerabilitySeverity["VULNERABILITY_SEVERITY_MODERATE"] = 2] = "VULNERABILITY_SEVERITY_MODERATE";
103
+ VulnerabilitySeverity[VulnerabilitySeverity["VULNERABILITY_SEVERITY_HIGH"] = 3] = "VULNERABILITY_SEVERITY_HIGH";
104
+ VulnerabilitySeverity[VulnerabilitySeverity["VULNERABILITY_SEVERITY_CRITICAL"] = 4] = "VULNERABILITY_SEVERITY_CRITICAL";
105
+ })(VulnerabilitySeverity || (VulnerabilitySeverity = {}));
98
106
 
99
107
  // *********************************
100
108
  // Code generated by sdkgen
@@ -1316,6 +1324,12 @@ class Deployment {
1316
1324
  if (proto.k8sConfig) {
1317
1325
  m.k8sConfig = K8SConfig.fromProto(proto.k8sConfig);
1318
1326
  }
1327
+ if (proto.vulnerabilitySummary) {
1328
+ m.vulnerabilitySummary = VulnerabilitySummary.fromProto(proto.vulnerabilitySummary);
1329
+ }
1330
+ if (proto.vulnerabilitySnapshot) {
1331
+ m.vulnerabilitySnapshot = VulnerabilitySnapshot.fromProto(proto.vulnerabilitySnapshot);
1332
+ }
1319
1333
  return m;
1320
1334
  }
1321
1335
  constructor(kwargs) {
@@ -1377,6 +1391,12 @@ class Deployment {
1377
1391
  if (typeof this.k8sConfig !== 'undefined' && this.k8sConfig !== null) {
1378
1392
  toReturn['k8sConfig'] = 'toApiJson' in this.k8sConfig ? this.k8sConfig.toApiJson() : this.k8sConfig;
1379
1393
  }
1394
+ if (typeof this.vulnerabilitySummary !== 'undefined' && this.vulnerabilitySummary !== null) {
1395
+ toReturn['vulnerabilitySummary'] = 'toApiJson' in this.vulnerabilitySummary ? this.vulnerabilitySummary.toApiJson() : this.vulnerabilitySummary;
1396
+ }
1397
+ if (typeof this.vulnerabilitySnapshot !== 'undefined' && this.vulnerabilitySnapshot !== null) {
1398
+ toReturn['vulnerabilitySnapshot'] = 'toApiJson' in this.vulnerabilitySnapshot ? this.vulnerabilitySnapshot.toApiJson() : this.vulnerabilitySnapshot;
1399
+ }
1380
1400
  return toReturn;
1381
1401
  }
1382
1402
  }
@@ -1497,6 +1517,61 @@ class GetApplicationLinksResponse {
1497
1517
  return toReturn;
1498
1518
  }
1499
1519
  }
1520
+ class GetDeploymentRequest {
1521
+ static fromProto(proto) {
1522
+ let m = new GetDeploymentRequest();
1523
+ m = Object.assign(m, proto);
1524
+ if (proto.environment) {
1525
+ m.environment = enumStringToValue$2(Environment, proto.environment);
1526
+ }
1527
+ return m;
1528
+ }
1529
+ constructor(kwargs) {
1530
+ if (!kwargs) {
1531
+ return;
1532
+ }
1533
+ Object.assign(this, kwargs);
1534
+ }
1535
+ toApiJson() {
1536
+ const toReturn = {};
1537
+ if (typeof this.appId !== 'undefined') {
1538
+ toReturn['appId'] = this.appId;
1539
+ }
1540
+ if (typeof this.environment !== 'undefined') {
1541
+ toReturn['environment'] = this.environment;
1542
+ }
1543
+ if (typeof this.deploymentId !== 'undefined') {
1544
+ toReturn['deploymentId'] = this.deploymentId;
1545
+ }
1546
+ if (typeof this.includeVulnerabilitySnapshot !== 'undefined') {
1547
+ toReturn['includeVulnerabilitySnapshot'] = this.includeVulnerabilitySnapshot;
1548
+ }
1549
+ return toReturn;
1550
+ }
1551
+ }
1552
+ class GetDeploymentResponse {
1553
+ static fromProto(proto) {
1554
+ let m = new GetDeploymentResponse();
1555
+ m = Object.assign(m, proto);
1556
+ if (proto.deployment) {
1557
+ m.deployment = Deployment.fromProto(proto.deployment);
1558
+ }
1559
+ return m;
1560
+ }
1561
+ constructor(kwargs) {
1562
+ if (!kwargs) {
1563
+ return;
1564
+ }
1565
+ Object.assign(this, kwargs);
1566
+ }
1567
+ toApiJson() {
1568
+ const toReturn = {};
1569
+ if (typeof this.deployment !== 'undefined' && this.deployment !== null) {
1570
+ toReturn['deployment'] = 'toApiJson' in this.deployment ? this.deployment.toApiJson() : this.deployment;
1571
+ }
1572
+ return toReturn;
1573
+ }
1574
+ }
1500
1575
  class GetSecurityVulnerabilitiesRequest {
1501
1576
  static fromProto(proto) {
1502
1577
  let m = new GetSecurityVulnerabilitiesRequest();
@@ -1899,6 +1974,9 @@ class ListDeploymentsRequest {
1899
1974
  if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
1900
1975
  toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
1901
1976
  }
1977
+ if (typeof this.includeVulnerabilitySnapshot !== 'undefined') {
1978
+ toReturn['includeVulnerabilitySnapshot'] = this.includeVulnerabilitySnapshot;
1979
+ }
1902
1980
  return toReturn;
1903
1981
  }
1904
1982
  }
@@ -2265,6 +2343,64 @@ class UserSettings {
2265
2343
  return toReturn;
2266
2344
  }
2267
2345
  }
2346
+ class VulnerabilitySnapshot {
2347
+ static fromProto(proto) {
2348
+ let m = new VulnerabilitySnapshot();
2349
+ m = Object.assign(m, proto);
2350
+ return m;
2351
+ }
2352
+ constructor(kwargs) {
2353
+ if (!kwargs) {
2354
+ return;
2355
+ }
2356
+ Object.assign(this, kwargs);
2357
+ }
2358
+ toApiJson() {
2359
+ const toReturn = {};
2360
+ if (typeof this.scannerType !== 'undefined') {
2361
+ toReturn['scannerType'] = this.scannerType;
2362
+ }
2363
+ if (typeof this.scannerVersion !== 'undefined') {
2364
+ toReturn['scannerVersion'] = this.scannerVersion;
2365
+ }
2366
+ if (typeof this.rawReportJson !== 'undefined') {
2367
+ toReturn['rawReportJson'] = this.rawReportJson;
2368
+ }
2369
+ return toReturn;
2370
+ }
2371
+ }
2372
+ class VulnerabilitySummary {
2373
+ static fromProto(proto) {
2374
+ let m = new VulnerabilitySummary();
2375
+ m = Object.assign(m, proto);
2376
+ return m;
2377
+ }
2378
+ constructor(kwargs) {
2379
+ if (!kwargs) {
2380
+ return;
2381
+ }
2382
+ Object.assign(this, kwargs);
2383
+ }
2384
+ toApiJson() {
2385
+ const toReturn = {};
2386
+ if (typeof this.totalCount !== 'undefined') {
2387
+ toReturn['totalCount'] = this.totalCount;
2388
+ }
2389
+ if (typeof this.criticalCount !== 'undefined') {
2390
+ toReturn['criticalCount'] = this.criticalCount;
2391
+ }
2392
+ if (typeof this.highCount !== 'undefined') {
2393
+ toReturn['highCount'] = this.highCount;
2394
+ }
2395
+ if (typeof this.moderateCount !== 'undefined') {
2396
+ toReturn['moderateCount'] = this.moderateCount;
2397
+ }
2398
+ if (typeof this.lowCount !== 'undefined') {
2399
+ toReturn['lowCount'] = this.lowCount;
2400
+ }
2401
+ return toReturn;
2402
+ }
2403
+ }
2268
2404
 
2269
2405
  function enumStringToValue$1(enumRef, value) {
2270
2406
  if (typeof value === 'number') {
@@ -2682,6 +2818,11 @@ class MissionControlApiService {
2682
2818
  return this.http.post(this._host + "/missioncontrol.v2.MissionControl/ListDeployments", request.toApiJson(), this.apiOptions())
2683
2819
  .pipe(map(resp => ListDeploymentsResponse.fromProto(resp)));
2684
2820
  }
2821
+ getDeployment(r) {
2822
+ const request = (r.toApiJson) ? r : new GetDeploymentRequest(r);
2823
+ return this.http.post(this._host + "/missioncontrol.v2.MissionControl/GetDeployment", request.toApiJson(), this.apiOptions())
2824
+ .pipe(map(resp => GetDeploymentResponse.fromProto(resp)));
2825
+ }
2685
2826
  updateDeployment(r) {
2686
2827
  const request = (r.toApiJson) ? r : new UpdateDeploymentRequest(r);
2687
2828
  return this.http.post(this._host + "/missioncontrol.v2.MissionControl/UpdateDeployment", request.toApiJson(), this.apiOptions())
@@ -2841,5 +2982,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2841
2982
  * Generated bundle index. Do not edit.
2842
2983
  */
2843
2984
 
2844
- export { Alert, AlertType, AppConfig, AppMetricsApiService, AppType, Application, ApplicationLink, Artifacts, BuildStatus, ChangeFailData, ChangeFailGetMultiRequest, ChangeFailGetMultiResponse, CreateApplicationRequest, CreateDeliveryRequest, CreateDeliveryResponse, CreateDeploymentRequest, CreateDeploymentResponse, DeleteApplicationRequest, DeleteDeliveryRequest, Delivery, DeliveryLock, DeliveryMethod, DeliveryType, Deployment, DeploymentFrequencyData, DeploymentFrequencyGetMultiRequest, DeploymentFrequencyGetMultiResponse, DeploymentStatus, Environment, Event, EventType, GetApplicationLinksRequest, GetApplicationLinksResponse, GetSecurityVulnerabilitiesRequest, GetSecurityVulnerabilitiesResponse, GetServiceLevelsRequest, GetUserSettingsRequest, GetUserSettingsRequestV2, GetUserSettingsResponse, GetUserSettingsResponseV2, GetZonesRequest, GetZonesResponse, GitCommitDetails, GithubCommitUser, K8SConfig, KubernetesController, LeadTime, LeadTimeGetMultiRequest, LeadTimeGetMultiResponse, LeadTimeListRequest, LeadTimeListResponse, LeadTimeSummary, ListApplicationsRequest, ListApplicationsResponse, ListDeliveriesByUserRequest, ListDeliveriesRequest, ListDeliveriesResponse, ListDeploymentsRequest, ListDeploymentsResponse, ListEventsRequest, ListEventsResponse, MTTRData, MTTRGetMultiRequest, MTTRGetMultiResponse, MissionControlApiService, PagedRequestOptions, PagedResponseMetadata, QueryServiceLevelsRequest, SecurityVulnerability, SendBuildNotificationRequest, ServiceLevel, ServiceLevelsApiService, ServiceLevelsResponse, ServiceReadiness, StatRate, StatRateUnit, StatSnapshot, TimeRange, UpdateApplicationRequest, UpdateDeliveryRequest, UpdateDeploymentRequest, UpdateDeploymentResponse, UpdateUserSettingsRequest, UpdateUserSettingsRequestV2, UserApiService, UserDeployFrequencyData, UserDeployFrequencyGetMultiRequest, UserDeployFrequencyGetMultiResponse, UserNotifications, UserNotificationsV2, UserSettings, UserSettingsV2 };
2985
+ export { Alert, AlertType, AppConfig, AppMetricsApiService, AppType, Application, ApplicationLink, Artifacts, BuildStatus, ChangeFailData, ChangeFailGetMultiRequest, ChangeFailGetMultiResponse, CreateApplicationRequest, CreateDeliveryRequest, CreateDeliveryResponse, CreateDeploymentRequest, CreateDeploymentResponse, DeleteApplicationRequest, DeleteDeliveryRequest, Delivery, DeliveryLock, DeliveryMethod, DeliveryType, Deployment, DeploymentFrequencyData, DeploymentFrequencyGetMultiRequest, DeploymentFrequencyGetMultiResponse, DeploymentStatus, Environment, Event, EventType, GetApplicationLinksRequest, GetApplicationLinksResponse, GetDeploymentRequest, GetDeploymentResponse, GetSecurityVulnerabilitiesRequest, GetSecurityVulnerabilitiesResponse, GetServiceLevelsRequest, GetUserSettingsRequest, GetUserSettingsRequestV2, GetUserSettingsResponse, GetUserSettingsResponseV2, GetZonesRequest, GetZonesResponse, GitCommitDetails, GithubCommitUser, K8SConfig, KubernetesController, LeadTime, LeadTimeGetMultiRequest, LeadTimeGetMultiResponse, LeadTimeListRequest, LeadTimeListResponse, LeadTimeSummary, ListApplicationsRequest, ListApplicationsResponse, ListDeliveriesByUserRequest, ListDeliveriesRequest, ListDeliveriesResponse, ListDeploymentsRequest, ListDeploymentsResponse, ListEventsRequest, ListEventsResponse, MTTRData, MTTRGetMultiRequest, MTTRGetMultiResponse, MissionControlApiService, PagedRequestOptions, PagedResponseMetadata, QueryServiceLevelsRequest, SecurityVulnerability, SendBuildNotificationRequest, ServiceLevel, ServiceLevelsApiService, ServiceLevelsResponse, ServiceReadiness, StatRate, StatRateUnit, StatSnapshot, TimeRange, UpdateApplicationRequest, UpdateDeliveryRequest, UpdateDeploymentRequest, UpdateDeploymentResponse, UpdateUserSettingsRequest, UpdateUserSettingsRequestV2, UserApiService, UserDeployFrequencyData, UserDeployFrequencyGetMultiRequest, UserDeployFrequencyGetMultiResponse, UserNotifications, UserNotificationsV2, UserSettings, UserSettingsV2, VulnerabilitySeverity, VulnerabilitySnapshot, VulnerabilitySummary };
2845
2986
  //# sourceMappingURL=vendasta-mission-control.mjs.map