google-apis-ondemandscanning_v1 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0da1e9a13b41e8e350c28a0cbcbebd7cdc3c3944042d11cf62c1d39bc65ea15b
4
- data.tar.gz: 0b0080789e1908c6750819050d49b3e3f5bb2f345e69ad473db5103c13757bd5
3
+ metadata.gz: fdf23e2a110d8f2a0c87f9eeb02bfe9da5bbcf757b3e8ce6986d543e8a0d3de6
4
+ data.tar.gz: 0f5a4d07c85b54f30d1a5653ceb5717256149b564c12c021a47cfada8ed38db5
5
5
  SHA512:
6
- metadata.gz: ec957cc85f83b7d471d542914f61087dc77b73992d7373058bb5fb9b1ca92b98c2d370b9f23f9aef2e1a134616eeaa2e95222da99904d205bf8d9afefde0f41c
7
- data.tar.gz: d73a10bf2a4a0b778eeb76aca2180b1e73455277f2df5061a157edad6150396be8e3dc71f7dc817c2adb647b5523ae10a0edc85a09f6f796edc05980d20e02fa
6
+ metadata.gz: 0125d50a0ac7c595f0aa8b5c34e173b2e67e5665eaedfc7a5cf9b4ef242ba0b42c98e145e8fe9c373e8f79afa6970fbc70f794d0f8b68c14f27d50a44c2ea04f
7
+ data.tar.gz: 4a0c24f8d722563fc91f39921543d10f28869f68103445421d6e11573e5fd78609e184a1888f120fb489beb295aa6bcaa7f1eb7012d7482e7010ccc4a00341f4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-ondemandscanning_v1
2
2
 
3
+ ### v0.4.0 (2021-05-27)
4
+
5
+ * Regenerated from discovery document revision 20210524
6
+
3
7
  ### v0.3.0 (2021-05-19)
4
8
 
5
9
  * Unspecified changes
@@ -486,6 +486,32 @@ module Google
486
486
  end
487
487
  end
488
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::OndemandscanningV1::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
+
489
515
  # The period during which some deployable was active in a runtime.
490
516
  class DeploymentOccurrence
491
517
  include Google::Apis::Core::Hashable
@@ -949,6 +975,39 @@ module Google
949
975
  end
950
976
  end
951
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
+
952
1011
  # An instance of an analysis type that has been found on a resource.
953
1012
  class Occurrence
954
1013
  include Google::Apis::Core::Hashable
@@ -969,6 +1028,12 @@ module Google
969
1028
  # @return [Google::Apis::OndemandscanningV1::BuildOccurrence]
970
1029
  attr_accessor :build
971
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::OndemandscanningV1::ComplianceOccurrence]
1035
+ attr_accessor :compliance
1036
+
972
1037
  # Output only. The time this occurrence was created.
973
1038
  # Corresponds to the JSON property `createTime`
974
1039
  # @return [String]
@@ -1053,6 +1118,7 @@ module Google
1053
1118
  def update!(**args)
1054
1119
  @attestation = args[:attestation] if args.key?(:attestation)
1055
1120
  @build = args[:build] if args.key?(:build)
1121
+ @compliance = args[:compliance] if args.key?(:compliance)
1056
1122
  @create_time = args[:create_time] if args.key?(:create_time)
1057
1123
  @deployment = args[:deployment] if args.key?(:deployment)
1058
1124
  @discovery = args[:discovery] if args.key?(:discovery)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module OndemandscanningV1
18
18
  # Version of the google-apis-ondemandscanning_v1 gem
19
- GEM_VERSION = "0.3.0"
19
+ GEM_VERSION = "0.4.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210410"
25
+ REVISION = "20210524"
26
26
  end
27
27
  end
28
28
  end
@@ -100,6 +100,12 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
+ class ComplianceOccurrence
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
103
109
  class DeploymentOccurrence
104
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
111
 
@@ -190,6 +196,12 @@ module Google
190
196
  include Google::Apis::Core::JsonObjectSupport
191
197
  end
192
198
 
199
+ class NonCompliantFile
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
193
205
  class Occurrence
194
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
207
 
@@ -421,6 +433,15 @@ module Google
421
433
  end
422
434
  end
423
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::OndemandscanningV1::NonCompliantFile, decorator: Google::Apis::OndemandscanningV1::NonCompliantFile::Representation
441
+
442
+ end
443
+ end
444
+
424
445
  class DeploymentOccurrence
425
446
  # @private
426
447
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -559,6 +580,15 @@ module Google
559
580
  end
560
581
  end
561
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
+
562
592
  class Occurrence
563
593
  # @private
564
594
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -566,6 +596,8 @@ module Google
566
596
 
567
597
  property :build, as: 'build', class: Google::Apis::OndemandscanningV1::BuildOccurrence, decorator: Google::Apis::OndemandscanningV1::BuildOccurrence::Representation
568
598
 
599
+ property :compliance, as: 'compliance', class: Google::Apis::OndemandscanningV1::ComplianceOccurrence, decorator: Google::Apis::OndemandscanningV1::ComplianceOccurrence::Representation
600
+
569
601
  property :create_time, as: 'createTime'
570
602
  property :deployment, as: 'deployment', class: Google::Apis::OndemandscanningV1::DeploymentOccurrence, decorator: Google::Apis::OndemandscanningV1::DeploymentOccurrence::Representation
571
603
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-ondemandscanning_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.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-05-24 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_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1/v0.3.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-ondemandscanning_v1/v0.4.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-ondemandscanning_v1
57
57
  post_install_message:
58
58
  rdoc_options: []