google-cloud-audit_manager-v1 0.a → 0.2.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.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +154 -8
- data/lib/google/cloud/audit_manager/v1/audit_manager/client.rb +1275 -0
- data/lib/google/cloud/audit_manager/v1/audit_manager/credentials.rb +47 -0
- data/lib/google/cloud/audit_manager/v1/audit_manager/operations.rb +843 -0
- data/lib/google/cloud/audit_manager/v1/audit_manager/paths.rb +265 -0
- data/lib/google/cloud/audit_manager/v1/audit_manager/rest/client.rb +1184 -0
- data/lib/google/cloud/audit_manager/v1/audit_manager/rest/operations.rb +956 -0
- data/lib/google/cloud/audit_manager/v1/audit_manager/rest/service_stub.rb +660 -0
- data/lib/google/cloud/audit_manager/v1/audit_manager/rest.rb +54 -0
- data/lib/google/cloud/audit_manager/v1/audit_manager.rb +56 -0
- data/lib/google/cloud/audit_manager/v1/bindings_override.rb +75 -0
- data/lib/google/cloud/audit_manager/v1/rest.rb +38 -0
- data/lib/google/cloud/audit_manager/v1/version.rb +7 -2
- data/lib/google/cloud/audit_manager/v1.rb +45 -0
- data/lib/google/cloud/auditmanager/v1/auditmanager_pb.rb +57 -0
- data/lib/google/cloud/auditmanager/v1/auditmanager_services_pb.rb +66 -0
- data/lib/google-cloud-audit_manager-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +593 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/auditmanager/v1/auditmanager.rb +648 -0
- data/proto_docs/google/longrunning/operations.rb +191 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +79 -9
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/rest"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/audit_manager/v1/version"
|
|
24
|
+
require "google/cloud/audit_manager/v1/bindings_override"
|
|
25
|
+
|
|
26
|
+
require "google/cloud/audit_manager/v1/audit_manager/credentials"
|
|
27
|
+
require "google/cloud/audit_manager/v1/audit_manager/paths"
|
|
28
|
+
require "google/cloud/audit_manager/v1/audit_manager/rest/operations"
|
|
29
|
+
require "google/cloud/audit_manager/v1/audit_manager/rest/client"
|
|
30
|
+
|
|
31
|
+
module Google
|
|
32
|
+
module Cloud
|
|
33
|
+
module AuditManager
|
|
34
|
+
module V1
|
|
35
|
+
##
|
|
36
|
+
# Service describing handlers for resources
|
|
37
|
+
#
|
|
38
|
+
# To load this service and instantiate a REST client:
|
|
39
|
+
#
|
|
40
|
+
# require "google/cloud/audit_manager/v1/audit_manager/rest"
|
|
41
|
+
# client = ::Google::Cloud::AuditManager::V1::AuditManager::Rest::Client.new
|
|
42
|
+
#
|
|
43
|
+
module AuditManager
|
|
44
|
+
# Client for the REST transport
|
|
45
|
+
module Rest
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
|
54
|
+
require "google/cloud/audit_manager/v1/audit_manager/rest/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/common"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/audit_manager/v1/version"
|
|
24
|
+
|
|
25
|
+
require "google/cloud/audit_manager/v1/audit_manager/credentials"
|
|
26
|
+
require "google/cloud/audit_manager/v1/audit_manager/paths"
|
|
27
|
+
require "google/cloud/audit_manager/v1/audit_manager/operations"
|
|
28
|
+
require "google/cloud/audit_manager/v1/audit_manager/client"
|
|
29
|
+
require "google/cloud/audit_manager/v1/audit_manager/rest"
|
|
30
|
+
|
|
31
|
+
module Google
|
|
32
|
+
module Cloud
|
|
33
|
+
module AuditManager
|
|
34
|
+
module V1
|
|
35
|
+
##
|
|
36
|
+
# Service describing handlers for resources
|
|
37
|
+
#
|
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
|
39
|
+
#
|
|
40
|
+
# require "google/cloud/audit_manager/v1/audit_manager"
|
|
41
|
+
# client = ::Google::Cloud::AuditManager::V1::AuditManager::Client.new
|
|
42
|
+
#
|
|
43
|
+
# @example Load this service and instantiate a REST client
|
|
44
|
+
#
|
|
45
|
+
# require "google/cloud/audit_manager/v1/audit_manager/rest"
|
|
46
|
+
# client = ::Google::Cloud::AuditManager::V1::AuditManager::Rest::Client.new
|
|
47
|
+
#
|
|
48
|
+
module AuditManager
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
helper_path = ::File.join __dir__, "audit_manager", "helpers.rb"
|
|
56
|
+
require "google/cloud/audit_manager/v1/audit_manager/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/rest"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module AuditManager
|
|
24
|
+
##
|
|
25
|
+
# @example Loading just the REST part of this package, including all its services, and instantiating a REST client
|
|
26
|
+
#
|
|
27
|
+
# require "google/cloud/audit_manager/v1/rest"
|
|
28
|
+
# client = ::Google::Cloud::AuditManager::V1::AuditManager::Rest::Client.new
|
|
29
|
+
#
|
|
30
|
+
module V1
|
|
31
|
+
##
|
|
32
|
+
# @private
|
|
33
|
+
# Initialize the mixin bindings configuration
|
|
34
|
+
#
|
|
35
|
+
def self.configure
|
|
36
|
+
@configure ||= begin
|
|
37
|
+
namespace = ["Google", "Cloud", "AuditManager"]
|
|
38
|
+
parent_config = while namespace.any?
|
|
39
|
+
parent_name = namespace.join "::"
|
|
40
|
+
parent_const = const_get parent_name
|
|
41
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
|
42
|
+
namespace.pop
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config
|
|
46
|
+
default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
|
|
47
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
|
48
|
+
uri_method: :get,
|
|
49
|
+
uri_template: "/v1/{name}",
|
|
50
|
+
matches: [
|
|
51
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
52
|
+
],
|
|
53
|
+
body: nil
|
|
54
|
+
)
|
|
55
|
+
]
|
|
56
|
+
default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
|
|
57
|
+
|
|
58
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
|
59
|
+
uri_method: :get,
|
|
60
|
+
uri_template: "/v1/{name}/locations",
|
|
61
|
+
matches: [
|
|
62
|
+
["name", %r{^projects/[^/]+/?$}, false]
|
|
63
|
+
],
|
|
64
|
+
body: nil
|
|
65
|
+
)
|
|
66
|
+
]
|
|
67
|
+
default_config
|
|
68
|
+
end
|
|
69
|
+
yield @configure if block_given?
|
|
70
|
+
@configure
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "google/cloud/audit_manager/v1/audit_manager/rest"
|
|
20
|
+
require "google/cloud/audit_manager/v1/bindings_override"
|
|
21
|
+
require "google/cloud/audit_manager/v1/version"
|
|
22
|
+
|
|
23
|
+
module Google
|
|
24
|
+
module Cloud
|
|
25
|
+
module AuditManager
|
|
26
|
+
##
|
|
27
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
|
28
|
+
#
|
|
29
|
+
# @example
|
|
30
|
+
#
|
|
31
|
+
# require "google/cloud/audit_manager/v1/rest"
|
|
32
|
+
# client = ::Google::Cloud::AuditManager::V1::AuditManager::Rest::Client.new
|
|
33
|
+
#
|
|
34
|
+
module V1
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
# Copyright 2026 Google LLC
|
|
2
4
|
#
|
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
6
|
# you may not use this file except in compliance with the License.
|
|
5
7
|
# You may obtain a copy of the License at
|
|
6
8
|
#
|
|
7
|
-
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
8
10
|
#
|
|
9
11
|
# Unless required by applicable law or agreed to in writing, software
|
|
10
12
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
@@ -12,11 +14,14 @@
|
|
|
12
14
|
# See the License for the specific language governing permissions and
|
|
13
15
|
# limitations under the License.
|
|
14
16
|
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
15
20
|
module Google
|
|
16
21
|
module Cloud
|
|
17
22
|
module AuditManager
|
|
18
23
|
module V1
|
|
19
|
-
VERSION = "0.
|
|
24
|
+
VERSION = "0.2.0"
|
|
20
25
|
end
|
|
21
26
|
end
|
|
22
27
|
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "google/cloud/audit_manager/v1/audit_manager"
|
|
20
|
+
require "google/cloud/audit_manager/v1/version"
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module AuditManager
|
|
25
|
+
##
|
|
26
|
+
# API client module.
|
|
27
|
+
#
|
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
|
29
|
+
#
|
|
30
|
+
# require "google/cloud/audit_manager/v1"
|
|
31
|
+
# client = ::Google::Cloud::AuditManager::V1::AuditManager::Client.new
|
|
32
|
+
#
|
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
|
34
|
+
#
|
|
35
|
+
# require "google/cloud/audit_manager/v1"
|
|
36
|
+
# client = ::Google::Cloud::AuditManager::V1::AuditManager::Rest::Client.new
|
|
37
|
+
#
|
|
38
|
+
module V1
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
|
45
|
+
require "google/cloud/audit_manager/v1/_helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/auditmanager/v1/auditmanager.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/annotations_pb'
|
|
8
|
+
require 'google/api/client_pb'
|
|
9
|
+
require 'google/api/field_behavior_pb'
|
|
10
|
+
require 'google/api/resource_pb'
|
|
11
|
+
require 'google/longrunning/operations_pb'
|
|
12
|
+
require 'google/protobuf/timestamp_pb'
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
descriptor_data = "\n/google/cloud/auditmanager/v1/auditmanager.proto\x12\x1cgoogle.cloud.auditmanager.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xde\x01\n\x15\x45nrollResourceRequest\x12\x12\n\x05scope\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x62\n\x0c\x64\x65stinations\x18\x02 \x03(\x0b\x32G.google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestinationB\x03\xe0\x41\x02\x1aM\n\x13\x45ligibleDestination\x12\x1d\n\x13\x65ligible_gcs_bucket\x18\x03 \x01(\tH\x00\x42\x17\n\x15\x65ligible_destinations\"\xd4\x02\n\x1fGenerateAuditScopeReportRequest\x12\x12\n\x05scope\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13\x63ompliance_standard\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12p\n\rreport_format\x18\x04 \x01(\x0e\x32T.google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.AuditScopeReportFormatB\x03\xe0\x41\x02\x12!\n\x14\x63ompliance_framework\x18\x05 \x01(\tB\x03\xe0\x41\x02\"f\n\x16\x41uditScopeReportFormat\x12)\n%AUDIT_SCOPE_REPORT_FORMAT_UNSPECIFIED\x10\x00\x12!\n\x1d\x41UDIT_SCOPE_REPORT_FORMAT_ODF\x10\x01\"\xd6\x02\n\x1aGenerateAuditReportRequest\x12\x11\n\x07gcs_uri\x18\x02 \x01(\tH\x00\x12\x12\n\x05scope\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13\x63ompliance_standard\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x66\n\rreport_format\x18\x04 \x01(\x0e\x32J.google.cloud.auditmanager.v1.GenerateAuditReportRequest.AuditReportFormatB\x03\xe0\x41\x02\x12!\n\x14\x63ompliance_framework\x18\x05 \x01(\tB\x03\xe0\x41\x02\"U\n\x11\x41uditReportFormat\x12#\n\x1f\x41UDIT_REPORT_FORMAT_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x41UDIT_REPORT_FORMAT_ODF\x10\x01\x42\r\n\x0b\x64\x65stination\"p\n\"GetResourceEnrollmentStatusRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4auditmanager.googleapis.com/ResourceEnrollmentStatus\"\xa3\x01\n%ListResourceEnrollmentStatusesRequest\x12I\n\x06parent\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1auditmanager.googleapis.com/EnrollmentStatusScope\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa4\x01\n&ListResourceEnrollmentStatusesResponse\x12\\\n\x1cresource_enrollment_statuses\x18\x01 \x03(\x0b\x32\x36.google.cloud.auditmanager.v1.ResourceEnrollmentStatus\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\x8b\x01\n\x17ListAuditReportsRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'auditmanager.googleapis.com/AuditReport\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x7f\n\x18ListAuditReportsResponse\x12\x45\n\raudit_reports\x18\x01 \x03(\x0b\x32).google.cloud.auditmanager.v1.AuditReportB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\"V\n\x15GetAuditReportRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'auditmanager.googleapis.com/AuditReport\"\x84\x01\n\x13ListControlsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$auditmanager.googleapis.com/Standard\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"r\n\x14ListControlsResponse\x12<\n\x08\x63ontrols\x18\x01 \x03(\x0b\x32%.google.cloud.auditmanager.v1.ControlB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xe1\x02\n\x18ReportGenerationProgress\x12@\n\x05state\x18\x01 \x01(\x0e\x32,.google.cloud.auditmanager.v1.OperationStateB\x03\xe0\x41\x03\x12\x1b\n\x0e\x66\x61ilure_reason\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12#\n\x1b\x65valuation_percent_complete\x18\x14 \x01(\x01\x12*\n\"report_generation_percent_complete\x18\x1e \x01(\x01\x12)\n!report_uploading_percent_complete\x18( \x01(\x01\x12#\n\x16\x64\x65stination_gcs_bucket\x18\x32 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x0c\x61udit_report\x18\x33 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'auditmanager.googleapis.com/AuditReport\"\x89\x03\n\nEnrollment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12R\n\x13\x64\x65stination_details\x18\x03 \x03(\x0b\x32\x30.google.cloud.auditmanager.v1.DestinationDetailsB\x03\xe0\x41\x03:\x93\x02\xea\x41\x8f\x02\n&auditmanager.googleapis.com/Enrollment\x12@projects/{project}/locations/{location}/enrollments/{enrollment}\x12>folders/{folder}/locations/{location}/enrollments/{enrollment}\x12Jorganizations/{organization}/locations/{location}/enrollments/{enrollment}*\x0b\x65nrollments2\nenrollment\"\xce\x02\n\x10\x41uditScopeReport\x12\x1f\n\x15scope_report_contents\x18\x01 \x01(\x0cH\x00\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x08:\xf5\x01\xea\x41\xf1\x01\n,auditmanager.googleapis.com/AuditScopeReport\x12Nprojects/{project}/locations/{location}/auditScopeReports/{audit_scope_report}\x12Lfolders/{folder}/locations/{location}/auditScopeReports/{audit_scope_report}*\x11\x61uditScopeReports2\x10\x61uditScopeReportB\x0e\n\x0c\x61udit_report\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\xa6\x06\n\x18ResourceEnrollmentStatus\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x41\n\nenrollment\x18\x02 \x01(\x0b\x32(.google.cloud.auditmanager.v1.EnrollmentB\x03\xe0\x41\x03\x12\x17\n\x08\x65nrolled\x18\x03 \x01(\x08\x42\x05\x18\x01\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12m\n\x10\x65nrollment_state\x18\x05 \x01(\x0e\x32N.google.cloud.auditmanager.v1.ResourceEnrollmentStatus.ResourceEnrollmentStateB\x03\xe0\x41\x03\"s\n\x17ResourceEnrollmentState\x12)\n%RESOURCE_ENROLLMENT_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cNOT_ENROLLED\x10\x01\x12\r\n\tINHERITED\x10\x02\x12\x0c\n\x08\x45NROLLED\x10\x03:\x9b\x03\xea\x41\x97\x03\n4auditmanager.googleapis.com/ResourceEnrollmentStatus\x12]folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}\x12_projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}\x12iorganizations/{organization}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}*\x1aresourceEnrollmentStatuses2\x18resourceEnrollmentStatus\"\x89\x07\n\x0b\x41uditReport\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12H\n\x0ereport_summary\x18\x02 \x01(\x0b\x32+.google.cloud.auditmanager.v1.ReportSummaryB\x03\xe0\x41\x03\x12\x19\n\x0coperation_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12R\n\x13\x64\x65stination_details\x18\x04 \x01(\x0b\x32\x30.google.cloud.auditmanager.v1.DestinationDetailsB\x03\xe0\x41\x03\x12 \n\x13\x63ompliance_standard\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05scope\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12J\n\x0f\x63ontrol_details\x18\x08 \x03(\x0b\x32,.google.cloud.auditmanager.v1.ControlDetailsB\x03\xe0\x41\x03\x12\x65\n\x17report_generation_state\x18\t \x01(\x0e\x32?.google.cloud.auditmanager.v1.AuditReport.ReportGenerationStateB\x03\xe0\x41\x03\x12!\n\x14\x63ompliance_framework\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08scope_id\x18\x0b \x01(\tB\x03\xe0\x41\x03\"\x81\x01\n\x15ReportGenerationState\x12\'\n#REPORT_GENERATION_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\r\n\tCOMPLETED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x13\n\x0fSUMMARY_UNKNOWN\x10\x04:\xd0\x01\xea\x41\xcc\x01\n\'auditmanager.googleapis.com/AuditReport\x12\x43projects/{project}/locations/{location}/auditReports/{audit_report}\x12\x41\x66olders/{folder}/locations/{location}/auditReports/{audit_report}*\x0c\x61uditReports2\x0b\x61uditReport\"8\n\rControlFamily\x12\x11\n\tfamily_id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\"\xfb\x04\n\x07\x43ontrol\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x06\x66\x61mily\x18\x03 \x01(\x0e\x32,.google.cloud.auditmanager.v1.Control.FamilyB\x03\xe0\x41\x03\x12H\n\x0e\x63ontrol_family\x18\n \x01(\x0b\x32+.google.cloud.auditmanager.v1.ControlFamilyB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12 \n\x13responsibility_type\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12.\n!google_responsibility_description\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x31\n$google_responsibility_implementation\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x30\n#customer_responsibility_description\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x33\n&customer_responsibility_implementation\x18\t \x01(\tB\x03\xe0\x41\x03\"\xb0\x01\n\x06\x46\x61mily\x12\x16\n\x12\x46\x41MILY_UNSPECIFIED\x10\x00\x12\x06\n\x02\x41\x43\x10\x01\x12\x06\n\x02\x41T\x10\x02\x12\x06\n\x02\x41U\x10\x03\x12\x06\n\x02\x43\x41\x10\x04\x12\x06\n\x02\x43M\x10\x05\x12\x06\n\x02\x43P\x10\x06\x12\x06\n\x02IA\x10\x07\x12\x06\n\x02IR\x10\x08\x12\x06\n\x02MA\x10\t\x12\x06\n\x02MP\x10\n\x12\x06\n\x02PE\x10\x0b\x12\x06\n\x02PL\x10\x0c\x12\x06\n\x02PS\x10\r\x12\x06\n\x02RA\x10\x0e\x12\x06\n\x02SA\x10\x0f\x12\x06\n\x02SC\x10\x10\x12\x06\n\x02SI\x10\x11\x12\x06\n\x02SR\x10\x12\"=\n\x12\x44\x65stinationDetails\x12\x18\n\x0egcs_bucket_uri\x18\x01 \x01(\tH\x00\x42\r\n\x0b\x64\x65stination\"\x8f\x01\n\rReportSummary\x12\x13\n\x0btotal_count\x18\x01 \x01(\x05\x12\x17\n\x0f\x63ompliant_count\x18\x02 \x01(\x05\x12\x17\n\x0fviolation_count\x18\x03 \x01(\x05\x12\"\n\x1amanual_review_needed_count\x18\x04 \x01(\x05\x12\x13\n\x0b\x65rror_count\x18\x05 \x01(\x05\"\xe3\x01\n\x0e\x43ontrolDetails\x12\x36\n\x07\x63ontrol\x18\x01 \x01(\x0b\x32%.google.cloud.auditmanager.v1.Control\x12L\n\x10\x63ompliance_state\x18\x02 \x01(\x0e\x32-.google.cloud.auditmanager.v1.ComplianceStateB\x03\xe0\x41\x03\x12K\n\x16\x63ontrol_report_summary\x18\x03 \x01(\x0b\x32+.google.cloud.auditmanager.v1.ReportSummary*\xfb\x02\n\x0eOperationState\x12\x1f\n\x1bOPERATION_STATE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bOPERATION_STATE_NOT_STARTED\x10\n\x12*\n&OPERATION_STATE_EVALUATION_IN_PROGRESS\x10\x14\x12#\n\x1fOPERATION_STATE_EVALUATION_DONE\x10\x15\x12:\n6OPERATION_STATE_EVIDENCE_REPORT_GENERATION_IN_PROGRESS\x10\x1e\x12\x33\n/OPERATION_STATE_EVIDENCE_REPORT_GENERATION_DONE\x10\x1f\x12/\n+OPERATION_STATE_EVIDENCE_UPLOAD_IN_PROGRESS\x10(\x12\x18\n\x14OPERATION_STATE_DONE\x10\x32\x12\x1a\n\x16OPERATION_STATE_FAILED\x10<*\x8f\x01\n\x0f\x43omplianceState\x12 \n\x1c\x43OMPLIANCE_STATE_UNSPECIFIED\x10\x00\x12\r\n\tCOMPLIANT\x10\x01\x12\r\n\tVIOLATION\x10\x02\x12\x18\n\x14MANUAL_REVIEW_NEEDED\x10\x03\x12\t\n\x05\x45RROR\x10\x04\x12\x17\n\x13\x41UDIT_NOT_SUPPORTED\x10\x05\x32\xc0\x14\n\x0c\x41uditManager\x12\xb8\x02\n\x0e\x45nrollResource\x12\x33.google.cloud.auditmanager.v1.EnrollResourceRequest\x1a(.google.cloud.auditmanager.v1.Enrollment\"\xc6\x01\xda\x41\x12scope,destinations\x82\xd3\xe4\x93\x02\xaa\x01\"0/v1/{scope=folders/*/locations/*}:enrollResource:\x01*Z6\"1/v1/{scope=projects/*/locations/*}:enrollResource:\x01*Z;\"6/v1/{scope=organizations/*/locations/*}:enrollResource:\x01*\x12\xc2\x02\n\x18GenerateAuditScopeReport\x12=.google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest\x1a..google.cloud.auditmanager.v1.AuditScopeReport\"\xb6\x01\xda\x41\'scope,compliance_standard,report_format\x82\xd3\xe4\x93\x02\x85\x01\"</v1/{scope=folders/*/locations/*}/auditScopeReports:generate:\x01*ZB\"=/v1/{scope=projects/*/locations/*}/auditScopeReports:generate:\x01*\x12\xc7\x02\n\x13GenerateAuditReport\x12\x38.google.cloud.auditmanager.v1.GenerateAuditReportRequest\x1a\x1d.google.longrunning.Operation\"\xd6\x01\xca\x41 \n\x0b\x41uditReport\x12\x11OperationMetadata\xda\x41/scope,gcs_uri,compliance_standard,report_format\x82\xd3\xe4\x93\x02{\"7/v1/{scope=folders/*/locations/*}/auditReports:generate:\x01*Z=\"8/v1/{scope=projects/*/locations/*}/auditReports:generate:\x01*\x12\xb2\x02\n\x10ListAuditReports\x12\x35.google.cloud.auditmanager.v1.ListAuditReportsRequest\x1a\x36.google.cloud.auditmanager.v1.ListAuditReportsResponse\"\xae\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x9e\x01\x12\x35/v1/{parent=organizations/*/locations/*}/auditReportsZ1\x12//v1/{parent=folders/*/locations/*}/auditReportsZ2\x12\x30/v1/{parent=projects/*/locations/*}/auditReports\x12\xe4\x01\n\x0eGetAuditReport\x12\x33.google.cloud.auditmanager.v1.GetAuditReportRequest\x1a).google.cloud.auditmanager.v1.AuditReport\"r\xda\x41\x04name\x82\xd3\xe4\x93\x02\x65\x12//v1/{name=folders/*/locations/*/auditReports/*}Z2\x12\x30/v1/{name=projects/*/locations/*/auditReports/*}\x12\xf0\x02\n\x1bGetResourceEnrollmentStatus\x12@.google.cloud.auditmanager.v1.GetResourceEnrollmentStatusRequest\x1a\x36.google.cloud.auditmanager.v1.ResourceEnrollmentStatus\"\xd6\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xc8\x01\x12>/v1/{name=projects/*/locations/*/resourceEnrollmentStatuses/*}Z?\x12=/v1/{name=folders/*/locations/*/resourceEnrollmentStatuses/*}ZE\x12\x43/v1/{name=organizations/*/locations/*/resourceEnrollmentStatuses/*}\x12\xc4\x02\n\x1eListResourceEnrollmentStatuses\x12\x43.google.cloud.auditmanager.v1.ListResourceEnrollmentStatusesRequest\x1a\x44.google.cloud.auditmanager.v1.ListResourceEnrollmentStatusesResponse\"\x96\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x86\x01\x12\x43/v1/{parent=organizations/*/locations/*}/resourceEnrollmentStatusesZ?\x12=/v1/{parent=folders/*/locations/*}/resourceEnrollmentStatuses\x12\xbe\x02\n\x0cListControls\x12\x31.google.cloud.auditmanager.v1.ListControlsRequest\x1a\x32.google.cloud.auditmanager.v1.ListControlsResponse\"\xc6\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xb6\x01\x12=/v1/{parent=organizations/*/locations/*/standards/*}/controlsZ9\x12\x37/v1/{parent=folders/*/locations/*/standards/*}/controlsZ:\x12\x38/v1/{parent=projects/*/locations/*/standards/*}/controls\x1aO\xca\x41\x1b\x61uditmanager.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x92\x06\n com.google.cloud.auditmanager.v1B\x0bV1mainProtoP\x01ZDcloud.google.com/go/auditmanager/apiv1/auditmanagerpb;auditmanagerpb\xaa\x02\x1cGoogle.Cloud.AuditManager.V1\xca\x02\x1cGoogle\\Cloud\\AuditManager\\V1\xea\x02\x1fGoogle::Cloud::AuditManager::V1\xea\x41S\n*auditmanager.googleapis.com/FolderLocation\x12%folders/{folder}/locations/{location}\xea\x41\x65\n0auditmanager.googleapis.com/OrganizationLocation\x12\x31organizations/{organization}/locations/{location}\xea\x41\xe8\x01\n$auditmanager.googleapis.com/Standard\x12<projects/{project}/locations/{location}/standards/{standard}\x12:folders/{folder}/locations/{location}/standards/{standard}\x12\x46organizations/{organization}/locations/{location}/standards/{standard}\xea\x41\x8d\x01\n1auditmanager.googleapis.com/EnrollmentStatusScope\x12%folders/{folder}/locations/{location}\x12\x31organizations/{organization}/locations/{location}b\x06proto3"
|
|
16
|
+
|
|
17
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module AuditManager
|
|
23
|
+
module V1
|
|
24
|
+
EnrollResourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.EnrollResourceRequest").msgclass
|
|
25
|
+
EnrollResourceRequest::EligibleDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.EnrollResourceRequest.EligibleDestination").msgclass
|
|
26
|
+
GenerateAuditScopeReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest").msgclass
|
|
27
|
+
GenerateAuditScopeReportRequest::AuditScopeReportFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.AuditScopeReportFormat").enummodule
|
|
28
|
+
GenerateAuditReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.GenerateAuditReportRequest").msgclass
|
|
29
|
+
GenerateAuditReportRequest::AuditReportFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.GenerateAuditReportRequest.AuditReportFormat").enummodule
|
|
30
|
+
GetResourceEnrollmentStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.GetResourceEnrollmentStatusRequest").msgclass
|
|
31
|
+
ListResourceEnrollmentStatusesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.ListResourceEnrollmentStatusesRequest").msgclass
|
|
32
|
+
ListResourceEnrollmentStatusesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.ListResourceEnrollmentStatusesResponse").msgclass
|
|
33
|
+
ListAuditReportsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.ListAuditReportsRequest").msgclass
|
|
34
|
+
ListAuditReportsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.ListAuditReportsResponse").msgclass
|
|
35
|
+
GetAuditReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.GetAuditReportRequest").msgclass
|
|
36
|
+
ListControlsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.ListControlsRequest").msgclass
|
|
37
|
+
ListControlsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.ListControlsResponse").msgclass
|
|
38
|
+
ReportGenerationProgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.ReportGenerationProgress").msgclass
|
|
39
|
+
Enrollment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.Enrollment").msgclass
|
|
40
|
+
AuditScopeReport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.AuditScopeReport").msgclass
|
|
41
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.OperationMetadata").msgclass
|
|
42
|
+
ResourceEnrollmentStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.ResourceEnrollmentStatus").msgclass
|
|
43
|
+
ResourceEnrollmentStatus::ResourceEnrollmentState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.ResourceEnrollmentStatus.ResourceEnrollmentState").enummodule
|
|
44
|
+
AuditReport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.AuditReport").msgclass
|
|
45
|
+
AuditReport::ReportGenerationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.AuditReport.ReportGenerationState").enummodule
|
|
46
|
+
ControlFamily = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.ControlFamily").msgclass
|
|
47
|
+
Control = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.Control").msgclass
|
|
48
|
+
Control::Family = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.Control.Family").enummodule
|
|
49
|
+
DestinationDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.DestinationDetails").msgclass
|
|
50
|
+
ReportSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.ReportSummary").msgclass
|
|
51
|
+
ControlDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.ControlDetails").msgclass
|
|
52
|
+
OperationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.OperationState").enummodule
|
|
53
|
+
ComplianceState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.auditmanager.v1.ComplianceState").enummodule
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: google/cloud/auditmanager/v1/auditmanager.proto for package 'Google.Cloud.AuditManager.V1'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# Copyright 2026 Google LLC
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
require 'grpc'
|
|
20
|
+
require 'google/cloud/auditmanager/v1/auditmanager_pb'
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module AuditManager
|
|
25
|
+
module V1
|
|
26
|
+
module AuditManager
|
|
27
|
+
# Service describing handlers for resources
|
|
28
|
+
class Service
|
|
29
|
+
|
|
30
|
+
include ::GRPC::GenericService
|
|
31
|
+
|
|
32
|
+
self.marshal_class_method = :encode
|
|
33
|
+
self.unmarshal_class_method = :decode
|
|
34
|
+
self.service_name = 'google.cloud.auditmanager.v1.AuditManager'
|
|
35
|
+
|
|
36
|
+
# Enrolls the customer resource(folder/project/organization) to the audit
|
|
37
|
+
# manager service by creating the audit managers Service Agent in customers
|
|
38
|
+
# workload and granting required permissions to the Service Agent. Please
|
|
39
|
+
# note that if enrollment request is made on the already enrolled workload
|
|
40
|
+
# then enrollment is executed overriding the existing set of destinations.
|
|
41
|
+
rpc :EnrollResource, ::Google::Cloud::AuditManager::V1::EnrollResourceRequest, ::Google::Cloud::AuditManager::V1::Enrollment
|
|
42
|
+
# Generates a demo report highlighting different responsibilities
|
|
43
|
+
# (Google/Customer/ shared) required to be fulfilled for the customer's
|
|
44
|
+
# workload to be compliant with the given standard.
|
|
45
|
+
rpc :GenerateAuditScopeReport, ::Google::Cloud::AuditManager::V1::GenerateAuditScopeReportRequest, ::Google::Cloud::AuditManager::V1::AuditScopeReport
|
|
46
|
+
# Register the Audit Report generation requests and returns the OperationId
|
|
47
|
+
# using which the customer can track the report generation progress.
|
|
48
|
+
rpc :GenerateAuditReport, ::Google::Cloud::AuditManager::V1::GenerateAuditReportRequest, ::Google::Longrunning::Operation
|
|
49
|
+
# Lists audit reports in the selected parent scope
|
|
50
|
+
rpc :ListAuditReports, ::Google::Cloud::AuditManager::V1::ListAuditReportsRequest, ::Google::Cloud::AuditManager::V1::ListAuditReportsResponse
|
|
51
|
+
# Get the overall audit report
|
|
52
|
+
rpc :GetAuditReport, ::Google::Cloud::AuditManager::V1::GetAuditReportRequest, ::Google::Cloud::AuditManager::V1::AuditReport
|
|
53
|
+
# Get a resource along with its enrollment status.
|
|
54
|
+
rpc :GetResourceEnrollmentStatus, ::Google::Cloud::AuditManager::V1::GetResourceEnrollmentStatusRequest, ::Google::Cloud::AuditManager::V1::ResourceEnrollmentStatus
|
|
55
|
+
# Fetches all resources under the parent along with their enrollment.
|
|
56
|
+
rpc :ListResourceEnrollmentStatuses, ::Google::Cloud::AuditManager::V1::ListResourceEnrollmentStatusesRequest, ::Google::Cloud::AuditManager::V1::ListResourceEnrollmentStatusesResponse
|
|
57
|
+
# Gets controls needed to be implemented to be compliant to a standard.
|
|
58
|
+
rpc :ListControls, ::Google::Cloud::AuditManager::V1::ListControlsRequest, ::Google::Cloud::AuditManager::V1::ListControlsResponse
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
Stub = Service.rpc_stub_class
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
|
21
|
+
# require "google/cloud/audit_manager/v1"
|