google-apis-containeranalysis_v1beta1 0.27.0 → 0.29.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: 1da5485c69700c4d5c8877fa80ba9c5dd3b9758dcfdd678deffde4d0b05f176a
4
- data.tar.gz: 1b9c754721bf6320e7a93ab96db8b02372f6626c3e4418a60d154a0941d25325
3
+ metadata.gz: 4b1d8f80ae84bb6822376713ec200e02372d1ce98ac1d9de7029bdbdca98cba2
4
+ data.tar.gz: 9041aa67fdbb6e7bb19738a404c3d86d120b848b567dc2fe90942e44ca13ed9e
5
5
  SHA512:
6
- metadata.gz: d62ad8c3de199ffa0e0f5f1a04a0b0d6e54ee86039f154c6684cf7d1623fb141534e57c7fada9585abc3640e1eef0918d5d30c15483b849056d9242658bed5c5
7
- data.tar.gz: 3c48ec94035770cf36dc9f73f1526f50cc4c97ab94a14781a8c639ac227828eb242645d6b6cf2c67781e94aa582ea6c0f905e11b3e4ae50b3344ab0898956326
6
+ metadata.gz: f03b74f0e394b2a99ff1ede2461ee163829661f836a4e400dbe6f5664e68f3d8eca8c2db94fbe3677cc50d6228d8a6cd700d2321f75c9a14d1045317c56911ef
7
+ data.tar.gz: fb8f7cec9eb04e79daef23150631a1bd7e213f96fb73a921de8d47849472560d19863294661966056dc26b1d71175e14e3781feb64c1100e4528eb644a34b4e3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-containeranalysis_v1beta1
2
2
 
3
+ ### v0.29.0 (2022-11-11)
4
+
5
+ * Regenerated from discovery document revision 20221107
6
+
7
+ ### v0.28.0 (2022-10-27)
8
+
9
+ * Regenerated from discovery document revision 20221015
10
+ * Regenerated using generator version 0.11.0
11
+
3
12
  ### v0.27.0 (2022-10-17)
4
13
 
5
14
  * Regenerated from discovery document revision 20221001
@@ -562,6 +562,165 @@ module Google
562
562
  end
563
563
  end
564
564
 
565
+ # A step in the build pipeline. Next ID: 20
566
+ class BuildStep
567
+ include Google::Apis::Core::Hashable
568
+
569
+ # Allow this build step to fail without failing the entire build if and only if
570
+ # the exit code is one of the specified codes. If allow_failure is also
571
+ # specified, this field will take precedence.
572
+ # Corresponds to the JSON property `allowExitCodes`
573
+ # @return [Array<Fixnum>]
574
+ attr_accessor :allow_exit_codes
575
+
576
+ # Allow this build step to fail without failing the entire build. If false, the
577
+ # entire build will fail if this step fails. Otherwise, the build will succeed,
578
+ # but this step will still have a failure status. Error information will be
579
+ # reported in the failure_detail field.
580
+ # Corresponds to the JSON property `allowFailure`
581
+ # @return [Boolean]
582
+ attr_accessor :allow_failure
583
+ alias_method :allow_failure?, :allow_failure
584
+
585
+ # A list of arguments that will be presented to the step when it is started. If
586
+ # the image used to run the step's container has an entrypoint, the `args` are
587
+ # used as arguments to that entrypoint. If the image does not define an
588
+ # entrypoint, the first element in args is used as the entrypoint, and the
589
+ # remainder will be used as arguments.
590
+ # Corresponds to the JSON property `args`
591
+ # @return [Array<String>]
592
+ attr_accessor :args
593
+
594
+ # Working directory to use when running this step's container. If this value is
595
+ # a relative path, it is relative to the build's working directory. If this
596
+ # value is absolute, it may be outside the build's working directory, in which
597
+ # case the contents of the path may not be persisted across build step
598
+ # executions, unless a `volume` for that path is specified. If the build
599
+ # specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies
600
+ # an absolute path, the `RepoSource` `dir` is ignored for the step's execution.
601
+ # Corresponds to the JSON property `dir`
602
+ # @return [String]
603
+ attr_accessor :dir
604
+
605
+ # Entrypoint to be used instead of the build step image's default entrypoint. If
606
+ # unset, the image's default entrypoint is used.
607
+ # Corresponds to the JSON property `entrypoint`
608
+ # @return [String]
609
+ attr_accessor :entrypoint
610
+
611
+ # A list of environment variable definitions to be used when running a step. The
612
+ # elements are of the form "KEY=VALUE" for the environment variable "KEY" being
613
+ # given the value "VALUE".
614
+ # Corresponds to the JSON property `env`
615
+ # @return [Array<String>]
616
+ attr_accessor :env
617
+
618
+ # Output only. Return code from running the step.
619
+ # Corresponds to the JSON property `exitCode`
620
+ # @return [Fixnum]
621
+ attr_accessor :exit_code
622
+
623
+ # Unique identifier for this build step, used in `wait_for` to reference this
624
+ # build step as a dependency.
625
+ # Corresponds to the JSON property `id`
626
+ # @return [String]
627
+ attr_accessor :id
628
+
629
+ # Required. The name of the container image that will run this particular build
630
+ # step. If the image is available in the host's Docker daemon's cache, it will
631
+ # be run directly. If not, the host will attempt to pull the image first, using
632
+ # the builder service account's credentials if necessary. The Docker daemon's
633
+ # cache will already have the latest versions of all of the officially supported
634
+ # build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://
635
+ # github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also
636
+ # have cached many of the layers for some popular images, like "ubuntu", "debian"
637
+ # , but they will be refreshed at the time you attempt to use them. If you built
638
+ # an image in a previous build step, it will be stored in the host's Docker
639
+ # daemon's cache and is available to use as the name for a later build step.
640
+ # Corresponds to the JSON property `name`
641
+ # @return [String]
642
+ attr_accessor :name
643
+
644
+ # Start and end times for a build execution phase. Next ID: 3
645
+ # Corresponds to the JSON property `pullTiming`
646
+ # @return [Google::Apis::ContaineranalysisV1beta1::TimeSpan]
647
+ attr_accessor :pull_timing
648
+
649
+ # A shell script to be executed in the step. When script is provided, the user
650
+ # cannot specify the entrypoint or args.
651
+ # Corresponds to the JSON property `script`
652
+ # @return [String]
653
+ attr_accessor :script
654
+
655
+ # A list of environment variables which are encrypted using a Cloud Key
656
+ # Management Service crypto key. These values must be specified in the build's `
657
+ # Secret`.
658
+ # Corresponds to the JSON property `secretEnv`
659
+ # @return [Array<String>]
660
+ attr_accessor :secret_env
661
+
662
+ # Output only. Status of the build step. At this time, build step status is only
663
+ # updated on build completion; step status is not updated in real-time as the
664
+ # build progresses.
665
+ # Corresponds to the JSON property `status`
666
+ # @return [String]
667
+ attr_accessor :status
668
+
669
+ # Time limit for executing this build step. If not defined, the step has no time
670
+ # limit and will be allowed to continue to run until either it completes or the
671
+ # build itself times out.
672
+ # Corresponds to the JSON property `timeout`
673
+ # @return [String]
674
+ attr_accessor :timeout
675
+
676
+ # Start and end times for a build execution phase. Next ID: 3
677
+ # Corresponds to the JSON property `timing`
678
+ # @return [Google::Apis::ContaineranalysisV1beta1::TimeSpan]
679
+ attr_accessor :timing
680
+
681
+ # List of volumes to mount into the build step. Each volume is created as an
682
+ # empty volume prior to execution of the build step. Upon completion of the
683
+ # build, volumes and their contents are discarded. Using a named volume in only
684
+ # one step is not valid as it is indicative of a build request with an incorrect
685
+ # configuration.
686
+ # Corresponds to the JSON property `volumes`
687
+ # @return [Array<Google::Apis::ContaineranalysisV1beta1::Volume>]
688
+ attr_accessor :volumes
689
+
690
+ # The ID(s) of the step(s) that this build step depends on. This build step will
691
+ # not start until all the build steps in `wait_for` have completed successfully.
692
+ # If `wait_for` is empty, this build step will start when all previous build
693
+ # steps in the `Build.Steps` list have completed successfully.
694
+ # Corresponds to the JSON property `waitFor`
695
+ # @return [Array<String>]
696
+ attr_accessor :wait_for
697
+
698
+ def initialize(**args)
699
+ update!(**args)
700
+ end
701
+
702
+ # Update properties of this object
703
+ def update!(**args)
704
+ @allow_exit_codes = args[:allow_exit_codes] if args.key?(:allow_exit_codes)
705
+ @allow_failure = args[:allow_failure] if args.key?(:allow_failure)
706
+ @args = args[:args] if args.key?(:args)
707
+ @dir = args[:dir] if args.key?(:dir)
708
+ @entrypoint = args[:entrypoint] if args.key?(:entrypoint)
709
+ @env = args[:env] if args.key?(:env)
710
+ @exit_code = args[:exit_code] if args.key?(:exit_code)
711
+ @id = args[:id] if args.key?(:id)
712
+ @name = args[:name] if args.key?(:name)
713
+ @pull_timing = args[:pull_timing] if args.key?(:pull_timing)
714
+ @script = args[:script] if args.key?(:script)
715
+ @secret_env = args[:secret_env] if args.key?(:secret_env)
716
+ @status = args[:status] if args.key?(:status)
717
+ @timeout = args[:timeout] if args.key?(:timeout)
718
+ @timing = args[:timing] if args.key?(:timing)
719
+ @volumes = args[:volumes] if args.key?(:volumes)
720
+ @wait_for = args[:wait_for] if args.key?(:wait_for)
721
+ end
722
+ end
723
+
565
724
  # Defines an object for the byproducts field in in-toto links. The suggested
566
725
  # fields are "stderr", "stdout", and "return-value".
567
726
  class ByProducts
@@ -1361,7 +1520,7 @@ module Google
1361
1520
  # disk free"; some of the space will be used by the operating system and build
1362
1521
  # utilities. Also note that this is the minimum disk size that will be allocated
1363
1522
  # for the build -- the build may run with a larger disk than requested. At
1364
- # present, the maximum disk size is 1000GB; builds that request more than the
1523
+ # present, the maximum disk size is 2000GB; builds that request more than the
1365
1524
  # maximum are rejected with an error.
1366
1525
  # Corresponds to the JSON property `diskSizeGb`
1367
1526
  # @return [Fixnum]
@@ -3974,32 +4133,6 @@ module Google
3974
4133
  end
3975
4134
  end
3976
4135
 
3977
- # Response for listing scan configurations.
3978
- class ListScanConfigsResponse
3979
- include Google::Apis::Core::Hashable
3980
-
3981
- # The next pagination token in the list response. It should be used as `
3982
- # page_token` for the following request. An empty value means no more results.
3983
- # Corresponds to the JSON property `nextPageToken`
3984
- # @return [String]
3985
- attr_accessor :next_page_token
3986
-
3987
- # The scan configurations requested.
3988
- # Corresponds to the JSON property `scanConfigs`
3989
- # @return [Array<Google::Apis::ContaineranalysisV1beta1::ScanConfig>]
3990
- attr_accessor :scan_configs
3991
-
3992
- def initialize(**args)
3993
- update!(**args)
3994
- end
3995
-
3996
- # Update properties of this object
3997
- def update!(**args)
3998
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3999
- @scan_configs = args[:scan_configs] if args.key?(:scan_configs)
4000
- end
4001
- end
4002
-
4003
4136
  # An occurrence of a particular package installation found within a system's
4004
4137
  # filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
4005
4138
  class Location
@@ -4997,53 +5130,6 @@ module Google
4997
5130
  end
4998
5131
  end
4999
5132
 
5000
- # A scan configuration specifies whether Cloud components in a project have a
5001
- # particular type of analysis being run. For example, it can configure whether
5002
- # vulnerability scanning is being done on Docker images or not.
5003
- class ScanConfig
5004
- include Google::Apis::Core::Hashable
5005
-
5006
- # Output only. The time this scan config was created.
5007
- # Corresponds to the JSON property `createTime`
5008
- # @return [String]
5009
- attr_accessor :create_time
5010
-
5011
- # Output only. A human-readable description of what the scan configuration does.
5012
- # Corresponds to the JSON property `description`
5013
- # @return [String]
5014
- attr_accessor :description
5015
-
5016
- # Whether the scan is enabled.
5017
- # Corresponds to the JSON property `enabled`
5018
- # @return [Boolean]
5019
- attr_accessor :enabled
5020
- alias_method :enabled?, :enabled
5021
-
5022
- # Output only. The name of the scan configuration in the form of `projects/[
5023
- # PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
5024
- # Corresponds to the JSON property `name`
5025
- # @return [String]
5026
- attr_accessor :name
5027
-
5028
- # Output only. The time this scan config was last updated.
5029
- # Corresponds to the JSON property `updateTime`
5030
- # @return [String]
5031
- attr_accessor :update_time
5032
-
5033
- def initialize(**args)
5034
- update!(**args)
5035
- end
5036
-
5037
- # Update properties of this object
5038
- def update!(**args)
5039
- @create_time = args[:create_time] if args.key?(:create_time)
5040
- @description = args[:description] if args.key?(:description)
5041
- @enabled = args[:enabled] if args.key?(:enabled)
5042
- @name = args[:name] if args.key?(:name)
5043
- @update_time = args[:update_time] if args.key?(:update_time)
5044
- end
5045
- end
5046
-
5047
5133
  # Request message for `SetIamPolicy` method.
5048
5134
  class SetIamPolicyRequest
5049
5135
  include Google::Apis::Core::Hashable
@@ -5353,6 +5439,31 @@ module Google
5353
5439
  end
5354
5440
  end
5355
5441
 
5442
+ # Start and end times for a build execution phase. Next ID: 3
5443
+ class TimeSpan
5444
+ include Google::Apis::Core::Hashable
5445
+
5446
+ # End of time span.
5447
+ # Corresponds to the JSON property `endTime`
5448
+ # @return [String]
5449
+ attr_accessor :end_time
5450
+
5451
+ # Start of time span.
5452
+ # Corresponds to the JSON property `startTime`
5453
+ # @return [String]
5454
+ attr_accessor :start_time
5455
+
5456
+ def initialize(**args)
5457
+ update!(**args)
5458
+ end
5459
+
5460
+ # Update properties of this object
5461
+ def update!(**args)
5462
+ @end_time = args[:end_time] if args.key?(:end_time)
5463
+ @start_time = args[:start_time] if args.key?(:start_time)
5464
+ end
5465
+ end
5466
+
5356
5467
  # Version contains structured information about the version of a package.
5357
5468
  class Version
5358
5469
  include Google::Apis::Core::Hashable
@@ -5402,6 +5513,36 @@ module Google
5402
5513
  end
5403
5514
  end
5404
5515
 
5516
+ # Volume describes a Docker container volume which is mounted into build steps
5517
+ # in order to persist files across build step execution. Next ID: 3
5518
+ class Volume
5519
+ include Google::Apis::Core::Hashable
5520
+
5521
+ # Name of the volume to mount. Volume names must be unique per build step and
5522
+ # must be valid names for Docker volumes. Each named volume must be used by at
5523
+ # least two build steps.
5524
+ # Corresponds to the JSON property `name`
5525
+ # @return [String]
5526
+ attr_accessor :name
5527
+
5528
+ # Path at which to mount the volume. Paths must be absolute and cannot conflict
5529
+ # with other volume paths on the same build step or with certain reserved volume
5530
+ # paths.
5531
+ # Corresponds to the JSON property `path`
5532
+ # @return [String]
5533
+ attr_accessor :path
5534
+
5535
+ def initialize(**args)
5536
+ update!(**args)
5537
+ end
5538
+
5539
+ # Update properties of this object
5540
+ def update!(**args)
5541
+ @name = args[:name] if args.key?(:name)
5542
+ @path = args[:path] if args.key?(:path)
5543
+ end
5544
+ end
5545
+
5405
5546
  # Vulnerability provides metadata about a security vulnerability in a Note.
5406
5547
  class Vulnerability
5407
5548
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContaineranalysisV1beta1
18
18
  # Version of the google-apis-containeranalysis_v1beta1 gem
19
- GEM_VERSION = "0.27.0"
19
+ GEM_VERSION = "0.29.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.10.0"
22
+ GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221001"
25
+ REVISION = "20221107"
26
26
  end
27
27
  end
28
28
  end
@@ -118,6 +118,12 @@ module Google
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
+ class BuildStep
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
121
127
  class ByProducts
122
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
129
 
@@ -616,12 +622,6 @@ module Google
616
622
  include Google::Apis::Core::JsonObjectSupport
617
623
  end
618
624
 
619
- class ListScanConfigsResponse
620
- class Representation < Google::Apis::Core::JsonRepresentation; end
621
-
622
- include Google::Apis::Core::JsonObjectSupport
623
- end
624
-
625
625
  class Location
626
626
  class Representation < Google::Apis::Core::JsonRepresentation; end
627
627
 
@@ -712,12 +712,6 @@ module Google
712
712
  include Google::Apis::Core::JsonObjectSupport
713
713
  end
714
714
 
715
- class ScanConfig
716
- class Representation < Google::Apis::Core::JsonRepresentation; end
717
-
718
- include Google::Apis::Core::JsonObjectSupport
719
- end
720
-
721
715
  class SetIamPolicyRequest
722
716
  class Representation < Google::Apis::Core::JsonRepresentation; end
723
717
 
@@ -766,12 +760,24 @@ module Google
766
760
  include Google::Apis::Core::JsonObjectSupport
767
761
  end
768
762
 
763
+ class TimeSpan
764
+ class Representation < Google::Apis::Core::JsonRepresentation; end
765
+
766
+ include Google::Apis::Core::JsonObjectSupport
767
+ end
768
+
769
769
  class Version
770
770
  class Representation < Google::Apis::Core::JsonRepresentation; end
771
771
 
772
772
  include Google::Apis::Core::JsonObjectSupport
773
773
  end
774
774
 
775
+ class Volume
776
+ class Representation < Google::Apis::Core::JsonRepresentation; end
777
+
778
+ include Google::Apis::Core::JsonObjectSupport
779
+ end
780
+
775
781
  class Vulnerability
776
782
  class Representation < Google::Apis::Core::JsonRepresentation; end
777
783
 
@@ -944,6 +950,32 @@ module Google
944
950
  end
945
951
  end
946
952
 
953
+ class BuildStep
954
+ # @private
955
+ class Representation < Google::Apis::Core::JsonRepresentation
956
+ collection :allow_exit_codes, as: 'allowExitCodes'
957
+ property :allow_failure, as: 'allowFailure'
958
+ collection :args, as: 'args'
959
+ property :dir, as: 'dir'
960
+ property :entrypoint, as: 'entrypoint'
961
+ collection :env, as: 'env'
962
+ property :exit_code, as: 'exitCode'
963
+ property :id, as: 'id'
964
+ property :name, as: 'name'
965
+ property :pull_timing, as: 'pullTiming', class: Google::Apis::ContaineranalysisV1beta1::TimeSpan, decorator: Google::Apis::ContaineranalysisV1beta1::TimeSpan::Representation
966
+
967
+ property :script, as: 'script'
968
+ collection :secret_env, as: 'secretEnv'
969
+ property :status, as: 'status'
970
+ property :timeout, as: 'timeout'
971
+ property :timing, as: 'timing', class: Google::Apis::ContaineranalysisV1beta1::TimeSpan, decorator: Google::Apis::ContaineranalysisV1beta1::TimeSpan::Representation
972
+
973
+ collection :volumes, as: 'volumes', class: Google::Apis::ContaineranalysisV1beta1::Volume, decorator: Google::Apis::ContaineranalysisV1beta1::Volume::Representation
974
+
975
+ collection :wait_for, as: 'waitFor'
976
+ end
977
+ end
978
+
947
979
  class ByProducts
948
980
  # @private
949
981
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1850,15 +1882,6 @@ module Google
1850
1882
  end
1851
1883
  end
1852
1884
 
1853
- class ListScanConfigsResponse
1854
- # @private
1855
- class Representation < Google::Apis::Core::JsonRepresentation
1856
- property :next_page_token, as: 'nextPageToken'
1857
- collection :scan_configs, as: 'scanConfigs', class: Google::Apis::ContaineranalysisV1beta1::ScanConfig, decorator: Google::Apis::ContaineranalysisV1beta1::ScanConfig::Representation
1858
-
1859
- end
1860
- end
1861
-
1862
1885
  class Location
1863
1886
  # @private
1864
1887
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2096,17 +2119,6 @@ module Google
2096
2119
  end
2097
2120
  end
2098
2121
 
2099
- class ScanConfig
2100
- # @private
2101
- class Representation < Google::Apis::Core::JsonRepresentation
2102
- property :create_time, as: 'createTime'
2103
- property :description, as: 'description'
2104
- property :enabled, as: 'enabled'
2105
- property :name, as: 'name'
2106
- property :update_time, as: 'updateTime'
2107
- end
2108
- end
2109
-
2110
2122
  class SetIamPolicyRequest
2111
2123
  # @private
2112
2124
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2182,6 +2194,14 @@ module Google
2182
2194
  end
2183
2195
  end
2184
2196
 
2197
+ class TimeSpan
2198
+ # @private
2199
+ class Representation < Google::Apis::Core::JsonRepresentation
2200
+ property :end_time, as: 'endTime'
2201
+ property :start_time, as: 'startTime'
2202
+ end
2203
+ end
2204
+
2185
2205
  class Version
2186
2206
  # @private
2187
2207
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2193,6 +2213,14 @@ module Google
2193
2213
  end
2194
2214
  end
2195
2215
 
2216
+ class Volume
2217
+ # @private
2218
+ class Representation < Google::Apis::Core::JsonRepresentation
2219
+ property :name, as: 'name'
2220
+ property :path, as: 'path'
2221
+ end
2222
+ end
2223
+
2196
2224
  class Vulnerability
2197
2225
  # @private
2198
2226
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -813,111 +813,6 @@ module Google
813
813
  command.query['quotaUser'] = quota_user unless quota_user.nil?
814
814
  execute_or_queue_command(command, &block)
815
815
  end
816
-
817
- # Gets the specified scan configuration.
818
- # @param [String] name
819
- # Required. The name of the scan configuration in the form of `projects/[
820
- # PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
821
- # @param [String] fields
822
- # Selector specifying which fields to include in a partial response.
823
- # @param [String] quota_user
824
- # Available to use for quota purposes for server-side applications. Can be any
825
- # arbitrary string assigned to a user, but should not exceed 40 characters.
826
- # @param [Google::Apis::RequestOptions] options
827
- # Request-specific options
828
- #
829
- # @yield [result, err] Result & error if block supplied
830
- # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::ScanConfig] parsed result object
831
- # @yieldparam err [StandardError] error object if request failed
832
- #
833
- # @return [Google::Apis::ContaineranalysisV1beta1::ScanConfig]
834
- #
835
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
836
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
837
- # @raise [Google::Apis::AuthorizationError] Authorization is required
838
- def get_project_scan_config(name, fields: nil, quota_user: nil, options: nil, &block)
839
- command = make_simple_command(:get, 'v1beta1/{+name}', options)
840
- command.response_representation = Google::Apis::ContaineranalysisV1beta1::ScanConfig::Representation
841
- command.response_class = Google::Apis::ContaineranalysisV1beta1::ScanConfig
842
- command.params['name'] = name unless name.nil?
843
- command.query['fields'] = fields unless fields.nil?
844
- command.query['quotaUser'] = quota_user unless quota_user.nil?
845
- execute_or_queue_command(command, &block)
846
- end
847
-
848
- # Lists scan configurations for the specified project.
849
- # @param [String] parent
850
- # Required. The name of the project to list scan configurations for in the form
851
- # of `projects/[PROJECT_ID]`.
852
- # @param [String] filter
853
- # Required. The filter expression.
854
- # @param [Fixnum] page_size
855
- # The number of scan configs to return in the list.
856
- # @param [String] page_token
857
- # Token to provide to skip to a particular spot in the list.
858
- # @param [String] fields
859
- # Selector specifying which fields to include in a partial response.
860
- # @param [String] quota_user
861
- # Available to use for quota purposes for server-side applications. Can be any
862
- # arbitrary string assigned to a user, but should not exceed 40 characters.
863
- # @param [Google::Apis::RequestOptions] options
864
- # Request-specific options
865
- #
866
- # @yield [result, err] Result & error if block supplied
867
- # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::ListScanConfigsResponse] parsed result object
868
- # @yieldparam err [StandardError] error object if request failed
869
- #
870
- # @return [Google::Apis::ContaineranalysisV1beta1::ListScanConfigsResponse]
871
- #
872
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
873
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
874
- # @raise [Google::Apis::AuthorizationError] Authorization is required
875
- def list_project_scan_configs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
876
- command = make_simple_command(:get, 'v1beta1/{+parent}/scanConfigs', options)
877
- command.response_representation = Google::Apis::ContaineranalysisV1beta1::ListScanConfigsResponse::Representation
878
- command.response_class = Google::Apis::ContaineranalysisV1beta1::ListScanConfigsResponse
879
- command.params['parent'] = parent unless parent.nil?
880
- command.query['filter'] = filter unless filter.nil?
881
- command.query['pageSize'] = page_size unless page_size.nil?
882
- command.query['pageToken'] = page_token unless page_token.nil?
883
- command.query['fields'] = fields unless fields.nil?
884
- command.query['quotaUser'] = quota_user unless quota_user.nil?
885
- execute_or_queue_command(command, &block)
886
- end
887
-
888
- # Updates the specified scan configuration.
889
- # @param [String] name
890
- # Required. The name of the scan configuration in the form of `projects/[
891
- # PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
892
- # @param [Google::Apis::ContaineranalysisV1beta1::ScanConfig] scan_config_object
893
- # @param [String] fields
894
- # Selector specifying which fields to include in a partial response.
895
- # @param [String] quota_user
896
- # Available to use for quota purposes for server-side applications. Can be any
897
- # arbitrary string assigned to a user, but should not exceed 40 characters.
898
- # @param [Google::Apis::RequestOptions] options
899
- # Request-specific options
900
- #
901
- # @yield [result, err] Result & error if block supplied
902
- # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::ScanConfig] parsed result object
903
- # @yieldparam err [StandardError] error object if request failed
904
- #
905
- # @return [Google::Apis::ContaineranalysisV1beta1::ScanConfig]
906
- #
907
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
908
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
909
- # @raise [Google::Apis::AuthorizationError] Authorization is required
910
- def update_project_scan_config(name, scan_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
911
- command = make_simple_command(:put, 'v1beta1/{+name}', options)
912
- command.request_representation = Google::Apis::ContaineranalysisV1beta1::ScanConfig::Representation
913
- command.request_object = scan_config_object
914
- command.response_representation = Google::Apis::ContaineranalysisV1beta1::ScanConfig::Representation
915
- command.response_class = Google::Apis::ContaineranalysisV1beta1::ScanConfig
916
- command.params['name'] = name unless name.nil?
917
- command.query['fields'] = fields unless fields.nil?
918
- command.query['quotaUser'] = quota_user unless quota_user.nil?
919
- execute_or_queue_command(command, &block)
920
- end
921
816
 
922
817
  protected
923
818
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-containeranalysis_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.29.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: 2022-10-17 00:00:00.000000000 Z
11
+ date: 2022-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.0
19
+ version: 0.9.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.0
29
+ version: 0.9.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.27.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.29.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []