google-apis-ondemandscanning_v1beta1 0.2.0 → 0.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c4f90429c50fc86290e10804922c90859591fd5faafa12d7d96c8d7254b9e50
4
- data.tar.gz: 61ef5827300cc2fab30129e2c498c8494f933bada62de3da7d03b104ad7878e6
3
+ metadata.gz: 94b032b0917ac7d81241f387c136bb0f3b559e0bfd5c8a0c9a6d003241904758
4
+ data.tar.gz: 7176215f04ffbbcb154cd7e5c78ad9f609e9cb9b089f874ba27b023a33153ba3
5
5
  SHA512:
6
- metadata.gz: c61eb25e47eea816f4be5917dca7fad070c6755d2ac97ae2517488808e1bea5ccb1ab7b5710d82c27a7e6507517aafa498e625220efa8c46b1aa21475dba820d
7
- data.tar.gz: f264bc18bcc3e308c8b566325ae9e0ccf4cea190de92af88a95eeafcbb48593e7e983d1260423fdcb33479bfd551d6ce033706d4d46a7e85586a93e06ec5fdbf
6
+ metadata.gz: fe5220d4e2b2f6648a177e69e27ed5412d76b3831b6049a83edc1291619278afde40a1c19a51181de620de992e5c2095d825d42e2d4aa89f0464b0ba9eaf4f69
7
+ data.tar.gz: e8da7fbe81d77c9095333df550905c951483a28d08040ccfe8454bf26bb83706fbaa9e421e5e4e014224103747860509bc4c0eec4d3de125b83007c9c34afe87
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-ondemandscanning_v1beta1
2
2
 
3
+ ### v0.7.0 (2021-05-27)
4
+
5
+ * Regenerated from discovery document revision 20210524
6
+
7
+ ### v0.6.0 (2021-05-19)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.5.0 (2021-04-16)
12
+
13
+ * Regenerated from discovery document revision 20210410
14
+
15
+ ### v0.4.0 (2021-03-30)
16
+
17
+ * Regenerated from discovery document revision 20210329
18
+
19
+ ### v0.3.0 (2021-03-23)
20
+
21
+ * Regenerated from discovery document revision 20210319
22
+ * Regenerated using generator version 0.2.0
23
+
3
24
  ### v0.2.0 (2021-03-04)
4
25
 
5
26
  * Unspecified changes
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1beta1'
31
31
 
32
- # View and manage your data across Google Cloud Platform services
32
+ # See, edit, configure, and delete your Google Cloud Platform data
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
@@ -73,6 +73,32 @@ module Google
73
73
  end
74
74
  end
75
75
 
76
+ # AnalyzePackagesMetadata contains metadata for an active scan of a container
77
+ # image.
78
+ class AnalyzePackagesMetadataV1
79
+ include Google::Apis::Core::Hashable
80
+
81
+ # When the scan was created.
82
+ # Corresponds to the JSON property `createTime`
83
+ # @return [String]
84
+ attr_accessor :create_time
85
+
86
+ # The resource URI of the container image being scanned.
87
+ # Corresponds to the JSON property `resourceUri`
88
+ # @return [String]
89
+ attr_accessor :resource_uri
90
+
91
+ def initialize(**args)
92
+ update!(**args)
93
+ end
94
+
95
+ # Update properties of this object
96
+ def update!(**args)
97
+ @create_time = args[:create_time] if args.key?(:create_time)
98
+ @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
99
+ end
100
+ end
101
+
76
102
  # AnalyzePackagesRequest is the request to analyze a list of packages and create
77
103
  # Vulnerability Occurrences for it.
78
104
  class AnalyzePackagesRequest
@@ -119,6 +145,26 @@ module Google
119
145
  end
120
146
  end
121
147
 
148
+ # AnalyzePackagesResponse contains the information necessary to find results for
149
+ # the given scan.
150
+ class AnalyzePackagesResponseV1
151
+ include Google::Apis::Core::Hashable
152
+
153
+ # The name of the scan resource created by this successful scan.
154
+ # Corresponds to the JSON property `scan`
155
+ # @return [String]
156
+ attr_accessor :scan
157
+
158
+ def initialize(**args)
159
+ update!(**args)
160
+ end
161
+
162
+ # Update properties of this object
163
+ def update!(**args)
164
+ @scan = args[:scan] if args.key?(:scan)
165
+ end
166
+ end
167
+
122
168
  # Artifact describes a build product.
123
169
  class Artifact
124
170
  include Google::Apis::Core::Hashable
@@ -440,6 +486,32 @@ module Google
440
486
  end
441
487
  end
442
488
 
489
+ # An indication that the compliance checks in the associated ComplianceNote were
490
+ # not satisfied for particular resources or a specified reason.
491
+ class ComplianceOccurrence
492
+ include Google::Apis::Core::Hashable
493
+
494
+ #
495
+ # Corresponds to the JSON property `nonComplianceReason`
496
+ # @return [String]
497
+ attr_accessor :non_compliance_reason
498
+
499
+ #
500
+ # Corresponds to the JSON property `nonCompliantFiles`
501
+ # @return [Array<Google::Apis::OndemandscanningV1beta1::NonCompliantFile>]
502
+ attr_accessor :non_compliant_files
503
+
504
+ def initialize(**args)
505
+ update!(**args)
506
+ end
507
+
508
+ # Update properties of this object
509
+ def update!(**args)
510
+ @non_compliance_reason = args[:non_compliance_reason] if args.key?(:non_compliance_reason)
511
+ @non_compliant_files = args[:non_compliant_files] if args.key?(:non_compliant_files)
512
+ end
513
+ end
514
+
443
515
  # The period during which some deployable was active in a runtime.
444
516
  class DeploymentOccurrence
445
517
  include Google::Apis::Core::Hashable
@@ -903,6 +975,39 @@ module Google
903
975
  end
904
976
  end
905
977
 
978
+ # Details about files that caused a compliance check to fail.
979
+ class NonCompliantFile
980
+ include Google::Apis::Core::Hashable
981
+
982
+ # Command to display the non-compliant files.
983
+ # Corresponds to the JSON property `displayCommand`
984
+ # @return [String]
985
+ attr_accessor :display_command
986
+
987
+ # display_command is a single command that can be used to display a list of non
988
+ # compliant files. When there is no such command, we can also iterate a list of
989
+ # non compliant file using 'path'. Empty if `display_command` is set.
990
+ # Corresponds to the JSON property `path`
991
+ # @return [String]
992
+ attr_accessor :path
993
+
994
+ # Explains why a file is non compliant for a CIS check.
995
+ # Corresponds to the JSON property `reason`
996
+ # @return [String]
997
+ attr_accessor :reason
998
+
999
+ def initialize(**args)
1000
+ update!(**args)
1001
+ end
1002
+
1003
+ # Update properties of this object
1004
+ def update!(**args)
1005
+ @display_command = args[:display_command] if args.key?(:display_command)
1006
+ @path = args[:path] if args.key?(:path)
1007
+ @reason = args[:reason] if args.key?(:reason)
1008
+ end
1009
+ end
1010
+
906
1011
  # An instance of an analysis type that has been found on a resource.
907
1012
  class Occurrence
908
1013
  include Google::Apis::Core::Hashable
@@ -923,6 +1028,12 @@ module Google
923
1028
  # @return [Google::Apis::OndemandscanningV1beta1::BuildOccurrence]
924
1029
  attr_accessor :build
925
1030
 
1031
+ # An indication that the compliance checks in the associated ComplianceNote were
1032
+ # not satisfied for particular resources or a specified reason.
1033
+ # Corresponds to the JSON property `compliance`
1034
+ # @return [Google::Apis::OndemandscanningV1beta1::ComplianceOccurrence]
1035
+ attr_accessor :compliance
1036
+
926
1037
  # Output only. The time this occurrence was created.
927
1038
  # Corresponds to the JSON property `createTime`
928
1039
  # @return [String]
@@ -1007,6 +1118,7 @@ module Google
1007
1118
  def update!(**args)
1008
1119
  @attestation = args[:attestation] if args.key?(:attestation)
1009
1120
  @build = args[:build] if args.key?(:build)
1121
+ @compliance = args[:compliance] if args.key?(:compliance)
1010
1122
  @create_time = args[:create_time] if args.key?(:create_time)
1011
1123
  @deployment = args[:deployment] if args.key?(:deployment)
1012
1124
  @discovery = args[:discovery] if args.key?(:discovery)
@@ -1113,6 +1225,11 @@ module Google
1113
1225
  # @return [String]
1114
1226
  attr_accessor :package
1115
1227
 
1228
+ #
1229
+ # Corresponds to the JSON property `unused`
1230
+ # @return [String]
1231
+ attr_accessor :unused
1232
+
1116
1233
  # The version of the package being analysed
1117
1234
  # Corresponds to the JSON property `version`
1118
1235
  # @return [String]
@@ -1128,6 +1245,7 @@ module Google
1128
1245
  @os = args[:os] if args.key?(:os)
1129
1246
  @os_version = args[:os_version] if args.key?(:os_version)
1130
1247
  @package = args[:package] if args.key?(:package)
1248
+ @unused = args[:unused] if args.key?(:unused)
1131
1249
  @version = args[:version] if args.key?(:version)
1132
1250
  end
1133
1251
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module OndemandscanningV1beta1
18
18
  # Version of the google-apis-ondemandscanning_v1beta1 gem
19
- GEM_VERSION = "0.2.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210222"
25
+ REVISION = "20210524"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class AnalyzePackagesMetadataV1
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class AnalyzePackagesRequest
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -46,6 +52,12 @@ module Google
46
52
  include Google::Apis::Core::JsonObjectSupport
47
53
  end
48
54
 
55
+ class AnalyzePackagesResponseV1
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
49
61
  class Artifact
50
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
63
 
@@ -88,6 +100,12 @@ module Google
88
100
  include Google::Apis::Core::JsonObjectSupport
89
101
  end
90
102
 
103
+ class ComplianceOccurrence
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
91
109
  class DeploymentOccurrence
92
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
111
 
@@ -178,6 +196,12 @@ module Google
178
196
  include Google::Apis::Core::JsonObjectSupport
179
197
  end
180
198
 
199
+ class NonCompliantFile
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
181
205
  class Occurrence
182
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
207
 
@@ -296,6 +320,14 @@ module Google
296
320
  end
297
321
  end
298
322
 
323
+ class AnalyzePackagesMetadataV1
324
+ # @private
325
+ class Representation < Google::Apis::Core::JsonRepresentation
326
+ property :create_time, as: 'createTime'
327
+ property :resource_uri, as: 'resourceUri'
328
+ end
329
+ end
330
+
299
331
  class AnalyzePackagesRequest
300
332
  # @private
301
333
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -312,6 +344,13 @@ module Google
312
344
  end
313
345
  end
314
346
 
347
+ class AnalyzePackagesResponseV1
348
+ # @private
349
+ class Representation < Google::Apis::Core::JsonRepresentation
350
+ property :scan, as: 'scan'
351
+ end
352
+ end
353
+
315
354
  class Artifact
316
355
  # @private
317
356
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -394,6 +433,15 @@ module Google
394
433
  end
395
434
  end
396
435
 
436
+ class ComplianceOccurrence
437
+ # @private
438
+ class Representation < Google::Apis::Core::JsonRepresentation
439
+ property :non_compliance_reason, as: 'nonComplianceReason'
440
+ collection :non_compliant_files, as: 'nonCompliantFiles', class: Google::Apis::OndemandscanningV1beta1::NonCompliantFile, decorator: Google::Apis::OndemandscanningV1beta1::NonCompliantFile::Representation
441
+
442
+ end
443
+ end
444
+
397
445
  class DeploymentOccurrence
398
446
  # @private
399
447
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -532,6 +580,15 @@ module Google
532
580
  end
533
581
  end
534
582
 
583
+ class NonCompliantFile
584
+ # @private
585
+ class Representation < Google::Apis::Core::JsonRepresentation
586
+ property :display_command, as: 'displayCommand'
587
+ property :path, as: 'path'
588
+ property :reason, as: 'reason'
589
+ end
590
+ end
591
+
535
592
  class Occurrence
536
593
  # @private
537
594
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -539,6 +596,8 @@ module Google
539
596
 
540
597
  property :build, as: 'build', class: Google::Apis::OndemandscanningV1beta1::BuildOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::BuildOccurrence::Representation
541
598
 
599
+ property :compliance, as: 'compliance', class: Google::Apis::OndemandscanningV1beta1::ComplianceOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::ComplianceOccurrence::Representation
600
+
542
601
  property :create_time, as: 'createTime'
543
602
  property :deployment, as: 'deployment', class: Google::Apis::OndemandscanningV1beta1::DeploymentOccurrence, decorator: Google::Apis::OndemandscanningV1beta1::DeploymentOccurrence::Representation
544
603
 
@@ -580,6 +639,7 @@ module Google
580
639
  property :os, as: 'os'
581
640
  property :os_version, as: 'osVersion'
582
641
  property :package, as: 'package'
642
+ property :unused, as: 'unused'
583
643
  property :version, as: 'version'
584
644
  end
585
645
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-ondemandscanning_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-08 00:00:00.000000000 Z
11
+ date: 2021-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-ondemandscanning_v1beta1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1beta1/v0.2.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1beta1/v0.7.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-ondemandscanning_v1beta1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for On-Demand Scanning API V1beta1