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,265 @@
|
|
|
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
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module AuditManager
|
|
23
|
+
module V1
|
|
24
|
+
module AuditManager
|
|
25
|
+
# Path helper methods for the AuditManager API.
|
|
26
|
+
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified AuditReport resource string.
|
|
29
|
+
#
|
|
30
|
+
# @overload audit_report_path(project:, location:, audit_report:)
|
|
31
|
+
# The resource will be in the following format:
|
|
32
|
+
#
|
|
33
|
+
# `projects/{project}/locations/{location}/auditReports/{audit_report}`
|
|
34
|
+
#
|
|
35
|
+
# @param project [String]
|
|
36
|
+
# @param location [String]
|
|
37
|
+
# @param audit_report [String]
|
|
38
|
+
#
|
|
39
|
+
# @overload audit_report_path(folder:, location:, audit_report:)
|
|
40
|
+
# The resource will be in the following format:
|
|
41
|
+
#
|
|
42
|
+
# `folders/{folder}/locations/{location}/auditReports/{audit_report}`
|
|
43
|
+
#
|
|
44
|
+
# @param folder [String]
|
|
45
|
+
# @param location [String]
|
|
46
|
+
# @param audit_report [String]
|
|
47
|
+
#
|
|
48
|
+
# @return [::String]
|
|
49
|
+
def audit_report_path **args
|
|
50
|
+
resources = {
|
|
51
|
+
"audit_report:location:project" => (proc do |project:, location:, audit_report:|
|
|
52
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
53
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
54
|
+
|
|
55
|
+
"projects/#{project}/locations/#{location}/auditReports/#{audit_report}"
|
|
56
|
+
end),
|
|
57
|
+
"audit_report:folder:location" => (proc do |folder:, location:, audit_report:|
|
|
58
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
|
59
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
60
|
+
|
|
61
|
+
"folders/#{folder}/locations/#{location}/auditReports/#{audit_report}"
|
|
62
|
+
end)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
resource = resources[args.keys.sort.join(":")]
|
|
66
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
|
67
|
+
resource.call(**args)
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
##
|
|
71
|
+
# Create a fully-qualified EnrollmentStatusScope resource string.
|
|
72
|
+
#
|
|
73
|
+
# @overload enrollment_status_scope_path(folder:, location:)
|
|
74
|
+
# The resource will be in the following format:
|
|
75
|
+
#
|
|
76
|
+
# `folders/{folder}/locations/{location}`
|
|
77
|
+
#
|
|
78
|
+
# @param folder [String]
|
|
79
|
+
# @param location [String]
|
|
80
|
+
#
|
|
81
|
+
# @overload enrollment_status_scope_path(organization:, location:)
|
|
82
|
+
# The resource will be in the following format:
|
|
83
|
+
#
|
|
84
|
+
# `organizations/{organization}/locations/{location}`
|
|
85
|
+
#
|
|
86
|
+
# @param organization [String]
|
|
87
|
+
# @param location [String]
|
|
88
|
+
#
|
|
89
|
+
# @return [::String]
|
|
90
|
+
def enrollment_status_scope_path **args
|
|
91
|
+
resources = {
|
|
92
|
+
"folder:location" => (proc do |folder:, location:|
|
|
93
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
|
94
|
+
|
|
95
|
+
"folders/#{folder}/locations/#{location}"
|
|
96
|
+
end),
|
|
97
|
+
"location:organization" => (proc do |organization:, location:|
|
|
98
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
|
99
|
+
|
|
100
|
+
"organizations/#{organization}/locations/#{location}"
|
|
101
|
+
end)
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
resource = resources[args.keys.sort.join(":")]
|
|
105
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
|
106
|
+
resource.call(**args)
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
##
|
|
110
|
+
# Create a fully-qualified FolderLocation resource string.
|
|
111
|
+
#
|
|
112
|
+
# The resource will be in the following format:
|
|
113
|
+
#
|
|
114
|
+
# `folders/{folder}/locations/{location}`
|
|
115
|
+
#
|
|
116
|
+
# @param folder [String]
|
|
117
|
+
# @param location [String]
|
|
118
|
+
#
|
|
119
|
+
# @return [::String]
|
|
120
|
+
def folder_location_path folder:, location:
|
|
121
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
|
122
|
+
|
|
123
|
+
"folders/#{folder}/locations/#{location}"
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
##
|
|
127
|
+
# Create a fully-qualified Location resource string.
|
|
128
|
+
#
|
|
129
|
+
# The resource will be in the following format:
|
|
130
|
+
#
|
|
131
|
+
# `projects/{project}/locations/{location}`
|
|
132
|
+
#
|
|
133
|
+
# @param project [String]
|
|
134
|
+
# @param location [String]
|
|
135
|
+
#
|
|
136
|
+
# @return [::String]
|
|
137
|
+
def location_path project:, location:
|
|
138
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
139
|
+
|
|
140
|
+
"projects/#{project}/locations/#{location}"
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
##
|
|
144
|
+
# Create a fully-qualified ResourceEnrollmentStatus resource string.
|
|
145
|
+
#
|
|
146
|
+
# @overload resource_enrollment_status_path(folder:, location:, resource_enrollment_status:)
|
|
147
|
+
# The resource will be in the following format:
|
|
148
|
+
#
|
|
149
|
+
# `folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}`
|
|
150
|
+
#
|
|
151
|
+
# @param folder [String]
|
|
152
|
+
# @param location [String]
|
|
153
|
+
# @param resource_enrollment_status [String]
|
|
154
|
+
#
|
|
155
|
+
# @overload resource_enrollment_status_path(project:, location:, resource_enrollment_status:)
|
|
156
|
+
# The resource will be in the following format:
|
|
157
|
+
#
|
|
158
|
+
# `projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}`
|
|
159
|
+
#
|
|
160
|
+
# @param project [String]
|
|
161
|
+
# @param location [String]
|
|
162
|
+
# @param resource_enrollment_status [String]
|
|
163
|
+
#
|
|
164
|
+
# @overload resource_enrollment_status_path(organization:, location:, resource_enrollment_status:)
|
|
165
|
+
# The resource will be in the following format:
|
|
166
|
+
#
|
|
167
|
+
# `organizations/{organization}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}`
|
|
168
|
+
#
|
|
169
|
+
# @param organization [String]
|
|
170
|
+
# @param location [String]
|
|
171
|
+
# @param resource_enrollment_status [String]
|
|
172
|
+
#
|
|
173
|
+
# @return [::String]
|
|
174
|
+
def resource_enrollment_status_path **args
|
|
175
|
+
resources = {
|
|
176
|
+
"folder:location:resource_enrollment_status" => (proc do |folder:, location:, resource_enrollment_status:|
|
|
177
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
|
178
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
179
|
+
|
|
180
|
+
"folders/#{folder}/locations/#{location}/resourceEnrollmentStatuses/#{resource_enrollment_status}"
|
|
181
|
+
end),
|
|
182
|
+
"location:project:resource_enrollment_status" => (proc do |project:, location:, resource_enrollment_status:|
|
|
183
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
184
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
185
|
+
|
|
186
|
+
"projects/#{project}/locations/#{location}/resourceEnrollmentStatuses/#{resource_enrollment_status}"
|
|
187
|
+
end),
|
|
188
|
+
"location:organization:resource_enrollment_status" => (proc do |organization:, location:, resource_enrollment_status:|
|
|
189
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
|
190
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
191
|
+
|
|
192
|
+
"organizations/#{organization}/locations/#{location}/resourceEnrollmentStatuses/#{resource_enrollment_status}"
|
|
193
|
+
end)
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
resource = resources[args.keys.sort.join(":")]
|
|
197
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
|
198
|
+
resource.call(**args)
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
##
|
|
202
|
+
# Create a fully-qualified Standard resource string.
|
|
203
|
+
#
|
|
204
|
+
# @overload standard_path(project:, location:, standard:)
|
|
205
|
+
# The resource will be in the following format:
|
|
206
|
+
#
|
|
207
|
+
# `projects/{project}/locations/{location}/standards/{standard}`
|
|
208
|
+
#
|
|
209
|
+
# @param project [String]
|
|
210
|
+
# @param location [String]
|
|
211
|
+
# @param standard [String]
|
|
212
|
+
#
|
|
213
|
+
# @overload standard_path(folder:, location:, standard:)
|
|
214
|
+
# The resource will be in the following format:
|
|
215
|
+
#
|
|
216
|
+
# `folders/{folder}/locations/{location}/standards/{standard}`
|
|
217
|
+
#
|
|
218
|
+
# @param folder [String]
|
|
219
|
+
# @param location [String]
|
|
220
|
+
# @param standard [String]
|
|
221
|
+
#
|
|
222
|
+
# @overload standard_path(organization:, location:, standard:)
|
|
223
|
+
# The resource will be in the following format:
|
|
224
|
+
#
|
|
225
|
+
# `organizations/{organization}/locations/{location}/standards/{standard}`
|
|
226
|
+
#
|
|
227
|
+
# @param organization [String]
|
|
228
|
+
# @param location [String]
|
|
229
|
+
# @param standard [String]
|
|
230
|
+
#
|
|
231
|
+
# @return [::String]
|
|
232
|
+
def standard_path **args
|
|
233
|
+
resources = {
|
|
234
|
+
"location:project:standard" => (proc do |project:, location:, standard:|
|
|
235
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
236
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
237
|
+
|
|
238
|
+
"projects/#{project}/locations/#{location}/standards/#{standard}"
|
|
239
|
+
end),
|
|
240
|
+
"folder:location:standard" => (proc do |folder:, location:, standard:|
|
|
241
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
|
242
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
243
|
+
|
|
244
|
+
"folders/#{folder}/locations/#{location}/standards/#{standard}"
|
|
245
|
+
end),
|
|
246
|
+
"location:organization:standard" => (proc do |organization:, location:, standard:|
|
|
247
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
|
248
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
249
|
+
|
|
250
|
+
"organizations/#{organization}/locations/#{location}/standards/#{standard}"
|
|
251
|
+
end)
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
resource = resources[args.keys.sort.join(":")]
|
|
255
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
|
256
|
+
resource.call(**args)
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
extend self
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
end
|