google-cloud-cloud_security_compliance-v1 0.1.0 → 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/AUTHENTICATION.md +4 -4
- data/README.md +4 -4
- data/lib/google/cloud/cloud_security_compliance/v1/audit/client.rb +859 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/credentials.rb +47 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/operations.rb +841 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/paths.rb +110 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/client.rb +796 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/operations.rb +925 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/service_stub.rb +387 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit/rest.rb +54 -0
- data/lib/google/cloud/cloud_security_compliance/v1/audit.rb +56 -0
- data/lib/google/cloud/cloud_security_compliance/v1/bindings_override.rb +1 -1
- data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/client.rb +608 -0
- data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/credentials.rb +47 -0
- data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/paths.rb +72 -0
- data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest/client.rb +559 -0
- data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest/service_stub.rb +234 -0
- data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest.rb +54 -0
- data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service.rb +56 -0
- data/lib/google/cloud/cloud_security_compliance/v1/config/client.rb +133 -102
- data/lib/google/cloud/cloud_security_compliance/v1/config/rest/client.rb +113 -99
- data/lib/google/cloud/cloud_security_compliance/v1/deployment/client.rb +80 -41
- data/lib/google/cloud/cloud_security_compliance/v1/deployment/operations.rb +20 -3
- data/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/client.rb +60 -38
- data/lib/google/cloud/cloud_security_compliance/v1/monitoring/client.rb +940 -0
- data/lib/google/cloud/cloud_security_compliance/v1/monitoring/credentials.rb +47 -0
- data/lib/google/cloud/cloud_security_compliance/v1/monitoring/paths.rb +142 -0
- data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/client.rb +870 -0
- data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/service_stub.rb +456 -0
- data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest.rb +53 -0
- data/lib/google/cloud/cloud_security_compliance/v1/monitoring.rb +55 -0
- data/lib/google/cloud/cloud_security_compliance/v1/rest.rb +4 -1
- data/lib/google/cloud/cloud_security_compliance/v1/version.rb +1 -1
- data/lib/google/cloud/cloud_security_compliance/v1.rb +5 -2
- data/lib/google/cloud/cloudsecuritycompliance/v1/audit_pb.rb +70 -0
- data/lib/google/cloud/cloudsecuritycompliance/v1/audit_services_pb.rb +51 -0
- data/lib/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service_pb.rb +54 -0
- data/lib/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service_services_pb.rb +54 -0
- data/lib/google/cloud/cloudsecuritycompliance/v1/common_pb.rb +4 -1
- data/lib/google/cloud/cloudsecuritycompliance/v1/config_pb.rb +1 -1
- data/lib/google/cloud/cloudsecuritycompliance/v1/config_services_pb.rb +58 -55
- data/lib/google/cloud/cloudsecuritycompliance/v1/deployment_services_pb.rb +9 -6
- data/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_pb.rb +74 -0
- data/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_services_pb.rb +53 -0
- data/proto_docs/google/cloud/cloudsecuritycompliance/v1/audit.rb +413 -0
- data/proto_docs/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.rb +108 -0
- data/proto_docs/google/cloud/cloudsecuritycompliance/v1/common.rb +210 -181
- data/proto_docs/google/cloud/cloudsecuritycompliance/v1/config.rb +69 -57
- data/proto_docs/google/cloud/cloudsecuritycompliance/v1/deployment.rb +180 -139
- data/proto_docs/google/cloud/cloudsecuritycompliance/v1/monitoring.rb +527 -0
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +34 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2025 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 "googleauth"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module CloudSecurityCompliance
|
|
24
|
+
module V1
|
|
25
|
+
module Monitoring
|
|
26
|
+
# Credentials for the Monitoring API.
|
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
|
28
|
+
self.scope = [
|
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
|
30
|
+
]
|
|
31
|
+
self.env_vars = [
|
|
32
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
|
33
|
+
"GOOGLE_CLOUD_KEYFILE",
|
|
34
|
+
"GCLOUD_KEYFILE",
|
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
|
36
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
|
37
|
+
"GCLOUD_KEYFILE_JSON"
|
|
38
|
+
]
|
|
39
|
+
self.paths = [
|
|
40
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
|
41
|
+
]
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2025 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
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module CloudSecurityCompliance
|
|
23
|
+
module V1
|
|
24
|
+
module Monitoring
|
|
25
|
+
# Path helper methods for the Monitoring API.
|
|
26
|
+
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified FolderLocation resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `folders/{folder}/locations/{location}`
|
|
33
|
+
#
|
|
34
|
+
# @param folder [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
#
|
|
37
|
+
# @return [::String]
|
|
38
|
+
def folder_location_path folder:, location:
|
|
39
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
|
40
|
+
|
|
41
|
+
"folders/#{folder}/locations/#{location}"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
##
|
|
45
|
+
# Create a fully-qualified FrameworkComplianceReport resource string.
|
|
46
|
+
#
|
|
47
|
+
# @overload framework_compliance_report_path(project:, location:, framework_compliance_report:)
|
|
48
|
+
# The resource will be in the following format:
|
|
49
|
+
#
|
|
50
|
+
# `projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}`
|
|
51
|
+
#
|
|
52
|
+
# @param project [String]
|
|
53
|
+
# @param location [String]
|
|
54
|
+
# @param framework_compliance_report [String]
|
|
55
|
+
#
|
|
56
|
+
# @overload framework_compliance_report_path(folder:, location:, framework_compliance_report:)
|
|
57
|
+
# The resource will be in the following format:
|
|
58
|
+
#
|
|
59
|
+
# `folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}`
|
|
60
|
+
#
|
|
61
|
+
# @param folder [String]
|
|
62
|
+
# @param location [String]
|
|
63
|
+
# @param framework_compliance_report [String]
|
|
64
|
+
#
|
|
65
|
+
# @overload framework_compliance_report_path(organization:, location:, framework_compliance_report:)
|
|
66
|
+
# The resource will be in the following format:
|
|
67
|
+
#
|
|
68
|
+
# `organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}`
|
|
69
|
+
#
|
|
70
|
+
# @param organization [String]
|
|
71
|
+
# @param location [String]
|
|
72
|
+
# @param framework_compliance_report [String]
|
|
73
|
+
#
|
|
74
|
+
# @return [::String]
|
|
75
|
+
def framework_compliance_report_path **args
|
|
76
|
+
resources = {
|
|
77
|
+
"framework_compliance_report:location:project" => (proc do |project:, location:, framework_compliance_report:|
|
|
78
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
79
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
80
|
+
|
|
81
|
+
"projects/#{project}/locations/#{location}/frameworkComplianceReports/#{framework_compliance_report}"
|
|
82
|
+
end),
|
|
83
|
+
"folder:framework_compliance_report:location" => (proc do |folder:, location:, framework_compliance_report:|
|
|
84
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
|
85
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
86
|
+
|
|
87
|
+
"folders/#{folder}/locations/#{location}/frameworkComplianceReports/#{framework_compliance_report}"
|
|
88
|
+
end),
|
|
89
|
+
"framework_compliance_report:location:organization" => (proc do |organization:, location:, framework_compliance_report:|
|
|
90
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
|
91
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
92
|
+
|
|
93
|
+
"organizations/#{organization}/locations/#{location}/frameworkComplianceReports/#{framework_compliance_report}"
|
|
94
|
+
end)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
resource = resources[args.keys.sort.join(":")]
|
|
98
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
|
99
|
+
resource.call(**args)
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
##
|
|
103
|
+
# Create a fully-qualified Location resource string.
|
|
104
|
+
#
|
|
105
|
+
# The resource will be in the following format:
|
|
106
|
+
#
|
|
107
|
+
# `projects/{project}/locations/{location}`
|
|
108
|
+
#
|
|
109
|
+
# @param project [String]
|
|
110
|
+
# @param location [String]
|
|
111
|
+
#
|
|
112
|
+
# @return [::String]
|
|
113
|
+
def location_path project:, location:
|
|
114
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
115
|
+
|
|
116
|
+
"projects/#{project}/locations/#{location}"
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
##
|
|
120
|
+
# Create a fully-qualified OrganizationLocation resource string.
|
|
121
|
+
#
|
|
122
|
+
# The resource will be in the following format:
|
|
123
|
+
#
|
|
124
|
+
# `organizations/{organization}/locations/{location}`
|
|
125
|
+
#
|
|
126
|
+
# @param organization [String]
|
|
127
|
+
# @param location [String]
|
|
128
|
+
#
|
|
129
|
+
# @return [::String]
|
|
130
|
+
def organization_location_path organization:, location:
|
|
131
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
|
132
|
+
|
|
133
|
+
"organizations/#{organization}/locations/#{location}"
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
extend self
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|