Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
feat: add support for notification configs to v1 (#15)
  • Loading branch information
yoshi-automation committed Mar 10, 2020
1 parent 6a28717 commit 9720fa4
Show file tree
Hide file tree
Showing 30 changed files with 2,429 additions and 217 deletions.
481 changes: 464 additions & 17 deletions google/cloud/securitycenter_v1/gapic/security_center_client.py

Large diffs are not rendered by default.

Expand Up @@ -47,6 +47,21 @@
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"CreateNotificationConfig": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"DeleteNotificationConfig": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"GetNotificationConfig": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"GetOrganizationSettings": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
Expand All @@ -67,6 +82,11 @@
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"ListNotificationConfigs": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default",
},
"ListSources": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
Expand All @@ -92,6 +112,11 @@
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"UpdateNotificationConfig": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default",
},
"UpdateOrganizationSettings": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
Expand Down
Expand Up @@ -204,6 +204,45 @@ def create_finding(self):
"""
return self._stubs["security_center_stub"].CreateFinding

@property
def create_notification_config(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.create_notification_config`.
Creates a notification config.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["security_center_stub"].CreateNotificationConfig

@property
def delete_notification_config(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.delete_notification_config`.
Deletes a notification config.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["security_center_stub"].DeleteNotificationConfig

@property
def get_notification_config(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.get_notification_config`.
Gets a notification config.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["security_center_stub"].GetNotificationConfig

@property
def get_organization_settings(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.get_organization_settings`.
Expand Down Expand Up @@ -259,6 +298,19 @@ def list_findings(self):
"""
return self._stubs["security_center_stub"].ListFindings

@property
def list_notification_configs(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.list_notification_configs`.
Lists notification configs.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["security_center_stub"].ListNotificationConfigs

@property
def list_sources(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.list_sources`.
Expand Down Expand Up @@ -330,6 +382,19 @@ def update_finding(self):
"""
return self._stubs["security_center_stub"].UpdateFinding

@property
def update_notification_config(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.update_notification_config`.
Updates a notification config.
Returns:
Callable: A callable which accepts the appropriate
deserialized request object and returns a
deserialized response object.
"""
return self._stubs["security_center_stub"].UpdateNotificationConfig

@property
def update_organization_settings(self):
"""Return the gRPC stub for :meth:`SecurityCenterClient.update_organization_settings`.
Expand Down
5 changes: 2 additions & 3 deletions google/cloud/securitycenter_v1/proto/asset.proto
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,17 +11,16 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

syntax = "proto3";

package google.cloud.securitycenter.v1;

import "google/api/annotations.proto";
import "google/api/resource.proto";
import "google/cloud/securitycenter/v1/security_marks.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";

option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter";
Expand Down
12 changes: 6 additions & 6 deletions google/cloud/securitycenter_v1/proto/asset_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions google/cloud/securitycenter_v1/proto/finding.proto
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,18 +11,17 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

syntax = "proto3";

package google.cloud.securitycenter.v1;

import "google/api/annotations.proto";
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/securitycenter/v1/security_marks.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";

option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter";
Expand Down
6 changes: 3 additions & 3 deletions google/cloud/securitycenter_v1/proto/finding_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9720fa4

Please sign in to comment.