google-cloud-chronicle-v1 0.8.0 → 0.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.
- checksums.yaml +4 -4
- data/lib/google/cloud/chronicle/v1/findings_refinement_pb.rb +50 -0
- data/lib/google/cloud/chronicle/v1/findings_refinement_service/client.rb +1331 -0
- data/lib/google/cloud/chronicle/v1/findings_refinement_service/credentials.rb +49 -0
- data/lib/google/cloud/chronicle/v1/findings_refinement_service/paths.rb +159 -0
- data/lib/google/cloud/chronicle/v1/findings_refinement_service/rest/client.rb +1225 -0
- data/lib/google/cloud/chronicle/v1/findings_refinement_service/rest/service_stub.rb +635 -0
- data/lib/google/cloud/chronicle/v1/findings_refinement_service/rest.rb +54 -0
- data/lib/google/cloud/chronicle/v1/findings_refinement_service.rb +57 -0
- data/lib/google/cloud/chronicle/v1/findings_refinement_services_pb.rb +63 -0
- data/lib/google/cloud/chronicle/v1/rest.rb +1 -0
- data/lib/google/cloud/chronicle/v1/version.rb +1 -1
- data/lib/google/cloud/chronicle/v1.rb +1 -0
- data/proto_docs/google/cloud/chronicle/v1/findings_refinement.rb +439 -0
- metadata +11 -1
|
@@ -0,0 +1,49 @@
|
|
|
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 "googleauth"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module Chronicle
|
|
24
|
+
module V1
|
|
25
|
+
module FindingsRefinementService
|
|
26
|
+
# Credentials for the FindingsRefinementService API.
|
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
|
28
|
+
self.scope = [
|
|
29
|
+
"https://www.googleapis.com/auth/chronicle",
|
|
30
|
+
"https://www.googleapis.com/auth/chronicle.readonly",
|
|
31
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
|
32
|
+
]
|
|
33
|
+
self.env_vars = [
|
|
34
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
|
35
|
+
"GOOGLE_CLOUD_KEYFILE",
|
|
36
|
+
"GCLOUD_KEYFILE",
|
|
37
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
|
38
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
|
39
|
+
"GCLOUD_KEYFILE_JSON"
|
|
40
|
+
]
|
|
41
|
+
self.paths = [
|
|
42
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
|
43
|
+
]
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,159 @@
|
|
|
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 Chronicle
|
|
23
|
+
module V1
|
|
24
|
+
module FindingsRefinementService
|
|
25
|
+
# Path helper methods for the FindingsRefinementService API.
|
|
26
|
+
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified CuratedRule resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}/instances/{instance}/curatedRules/{curated_rule}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
# @param instance [String]
|
|
37
|
+
# @param curated_rule [String]
|
|
38
|
+
#
|
|
39
|
+
# @return [::String]
|
|
40
|
+
def curated_rule_path project:, location:, instance:, curated_rule:
|
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
43
|
+
raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
|
|
44
|
+
|
|
45
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}/curatedRules/#{curated_rule}"
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
##
|
|
49
|
+
# Create a fully-qualified CuratedRuleSet resource string.
|
|
50
|
+
#
|
|
51
|
+
# The resource will be in the following format:
|
|
52
|
+
#
|
|
53
|
+
# `projects/{project}/locations/{location}/instances/{instance}/curatedRuleSetCategories/{category}/curatedRuleSets/{rule_set}`
|
|
54
|
+
#
|
|
55
|
+
# @param project [String]
|
|
56
|
+
# @param location [String]
|
|
57
|
+
# @param instance [String]
|
|
58
|
+
# @param category [String]
|
|
59
|
+
# @param rule_set [String]
|
|
60
|
+
#
|
|
61
|
+
# @return [::String]
|
|
62
|
+
def curated_rule_set_path project:, location:, instance:, category:, rule_set:
|
|
63
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
64
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
65
|
+
raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
|
|
66
|
+
raise ::ArgumentError, "category cannot contain /" if category.to_s.include? "/"
|
|
67
|
+
|
|
68
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}/curatedRuleSetCategories/#{category}/curatedRuleSets/#{rule_set}"
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
##
|
|
72
|
+
# Create a fully-qualified FindingsRefinement resource string.
|
|
73
|
+
#
|
|
74
|
+
# The resource will be in the following format:
|
|
75
|
+
#
|
|
76
|
+
# `projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}`
|
|
77
|
+
#
|
|
78
|
+
# @param project [String]
|
|
79
|
+
# @param location [String]
|
|
80
|
+
# @param instance [String]
|
|
81
|
+
# @param findings_refinement [String]
|
|
82
|
+
#
|
|
83
|
+
# @return [::String]
|
|
84
|
+
def findings_refinement_path project:, location:, instance:, findings_refinement:
|
|
85
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
86
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
87
|
+
raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
|
|
88
|
+
|
|
89
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}/findingsRefinements/#{findings_refinement}"
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
##
|
|
93
|
+
# Create a fully-qualified FindingsRefinementDeployment resource string.
|
|
94
|
+
#
|
|
95
|
+
# The resource will be in the following format:
|
|
96
|
+
#
|
|
97
|
+
# `projects/{project}/locations/{location}/instances/{instance}/findingsRefinements/{findings_refinement}/deployment`
|
|
98
|
+
#
|
|
99
|
+
# @param project [String]
|
|
100
|
+
# @param location [String]
|
|
101
|
+
# @param instance [String]
|
|
102
|
+
# @param findings_refinement [String]
|
|
103
|
+
#
|
|
104
|
+
# @return [::String]
|
|
105
|
+
def findings_refinement_deployment_path project:, location:, instance:, findings_refinement:
|
|
106
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
107
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
108
|
+
raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
|
|
109
|
+
|
|
110
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}/findingsRefinements/#{findings_refinement}/deployment"
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
##
|
|
114
|
+
# Create a fully-qualified Instance resource string.
|
|
115
|
+
#
|
|
116
|
+
# The resource will be in the following format:
|
|
117
|
+
#
|
|
118
|
+
# `projects/{project}/locations/{location}/instances/{instance}`
|
|
119
|
+
#
|
|
120
|
+
# @param project [String]
|
|
121
|
+
# @param location [String]
|
|
122
|
+
# @param instance [String]
|
|
123
|
+
#
|
|
124
|
+
# @return [::String]
|
|
125
|
+
def instance_path project:, location:, instance:
|
|
126
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
127
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
128
|
+
|
|
129
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}"
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
##
|
|
133
|
+
# Create a fully-qualified Rule resource string.
|
|
134
|
+
#
|
|
135
|
+
# The resource will be in the following format:
|
|
136
|
+
#
|
|
137
|
+
# `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}`
|
|
138
|
+
#
|
|
139
|
+
# @param project [String]
|
|
140
|
+
# @param location [String]
|
|
141
|
+
# @param instance [String]
|
|
142
|
+
# @param rule [String]
|
|
143
|
+
#
|
|
144
|
+
# @return [::String]
|
|
145
|
+
def rule_path project:, location:, instance:, rule:
|
|
146
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
147
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
148
|
+
raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
|
|
149
|
+
|
|
150
|
+
"projects/#{project}/locations/#{location}/instances/#{instance}/rules/#{rule}"
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
extend self
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
end
|