google-apis-containeranalysis_v1beta1 0.28.0 → 0.29.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/CHANGELOG.md +4 -0
- data/lib/google/apis/containeranalysis_v1beta1/classes.rb +1 -74
- data/lib/google/apis/containeranalysis_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/containeranalysis_v1beta1/representations.rb +0 -32
- data/lib/google/apis/containeranalysis_v1beta1/service.rb +0 -105
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b1d8f80ae84bb6822376713ec200e02372d1ce98ac1d9de7029bdbdca98cba2
|
|
4
|
+
data.tar.gz: 9041aa67fdbb6e7bb19738a404c3d86d120b848b567dc2fe90942e44ca13ed9e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f03b74f0e394b2a99ff1ede2461ee163829661f836a4e400dbe6f5664e68f3d8eca8c2db94fbe3677cc50d6228d8a6cd700d2321f75c9a14d1045317c56911ef
|
|
7
|
+
data.tar.gz: fb8f7cec9eb04e79daef23150631a1bd7e213f96fb73a921de8d47849472560d19863294661966056dc26b1d71175e14e3781feb64c1100e4528eb644a34b4e3
|
data/CHANGELOG.md
CHANGED
|
@@ -1520,7 +1520,7 @@ module Google
|
|
|
1520
1520
|
# disk free"; some of the space will be used by the operating system and build
|
|
1521
1521
|
# utilities. Also note that this is the minimum disk size that will be allocated
|
|
1522
1522
|
# for the build -- the build may run with a larger disk than requested. At
|
|
1523
|
-
# present, the maximum disk size is
|
|
1523
|
+
# present, the maximum disk size is 2000GB; builds that request more than the
|
|
1524
1524
|
# maximum are rejected with an error.
|
|
1525
1525
|
# Corresponds to the JSON property `diskSizeGb`
|
|
1526
1526
|
# @return [Fixnum]
|
|
@@ -4133,32 +4133,6 @@ module Google
|
|
|
4133
4133
|
end
|
|
4134
4134
|
end
|
|
4135
4135
|
|
|
4136
|
-
# Response for listing scan configurations.
|
|
4137
|
-
class ListScanConfigsResponse
|
|
4138
|
-
include Google::Apis::Core::Hashable
|
|
4139
|
-
|
|
4140
|
-
# The next pagination token in the list response. It should be used as `
|
|
4141
|
-
# page_token` for the following request. An empty value means no more results.
|
|
4142
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
4143
|
-
# @return [String]
|
|
4144
|
-
attr_accessor :next_page_token
|
|
4145
|
-
|
|
4146
|
-
# The scan configurations requested.
|
|
4147
|
-
# Corresponds to the JSON property `scanConfigs`
|
|
4148
|
-
# @return [Array<Google::Apis::ContaineranalysisV1beta1::ScanConfig>]
|
|
4149
|
-
attr_accessor :scan_configs
|
|
4150
|
-
|
|
4151
|
-
def initialize(**args)
|
|
4152
|
-
update!(**args)
|
|
4153
|
-
end
|
|
4154
|
-
|
|
4155
|
-
# Update properties of this object
|
|
4156
|
-
def update!(**args)
|
|
4157
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
4158
|
-
@scan_configs = args[:scan_configs] if args.key?(:scan_configs)
|
|
4159
|
-
end
|
|
4160
|
-
end
|
|
4161
|
-
|
|
4162
4136
|
# An occurrence of a particular package installation found within a system's
|
|
4163
4137
|
# filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
|
|
4164
4138
|
class Location
|
|
@@ -5156,53 +5130,6 @@ module Google
|
|
|
5156
5130
|
end
|
|
5157
5131
|
end
|
|
5158
5132
|
|
|
5159
|
-
# A scan configuration specifies whether Cloud components in a project have a
|
|
5160
|
-
# particular type of analysis being run. For example, it can configure whether
|
|
5161
|
-
# vulnerability scanning is being done on Docker images or not.
|
|
5162
|
-
class ScanConfig
|
|
5163
|
-
include Google::Apis::Core::Hashable
|
|
5164
|
-
|
|
5165
|
-
# Output only. The time this scan config was created.
|
|
5166
|
-
# Corresponds to the JSON property `createTime`
|
|
5167
|
-
# @return [String]
|
|
5168
|
-
attr_accessor :create_time
|
|
5169
|
-
|
|
5170
|
-
# Output only. A human-readable description of what the scan configuration does.
|
|
5171
|
-
# Corresponds to the JSON property `description`
|
|
5172
|
-
# @return [String]
|
|
5173
|
-
attr_accessor :description
|
|
5174
|
-
|
|
5175
|
-
# Whether the scan is enabled.
|
|
5176
|
-
# Corresponds to the JSON property `enabled`
|
|
5177
|
-
# @return [Boolean]
|
|
5178
|
-
attr_accessor :enabled
|
|
5179
|
-
alias_method :enabled?, :enabled
|
|
5180
|
-
|
|
5181
|
-
# Output only. The name of the scan configuration in the form of `projects/[
|
|
5182
|
-
# PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
|
|
5183
|
-
# Corresponds to the JSON property `name`
|
|
5184
|
-
# @return [String]
|
|
5185
|
-
attr_accessor :name
|
|
5186
|
-
|
|
5187
|
-
# Output only. The time this scan config was last updated.
|
|
5188
|
-
# Corresponds to the JSON property `updateTime`
|
|
5189
|
-
# @return [String]
|
|
5190
|
-
attr_accessor :update_time
|
|
5191
|
-
|
|
5192
|
-
def initialize(**args)
|
|
5193
|
-
update!(**args)
|
|
5194
|
-
end
|
|
5195
|
-
|
|
5196
|
-
# Update properties of this object
|
|
5197
|
-
def update!(**args)
|
|
5198
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
|
5199
|
-
@description = args[:description] if args.key?(:description)
|
|
5200
|
-
@enabled = args[:enabled] if args.key?(:enabled)
|
|
5201
|
-
@name = args[:name] if args.key?(:name)
|
|
5202
|
-
@update_time = args[:update_time] if args.key?(:update_time)
|
|
5203
|
-
end
|
|
5204
|
-
end
|
|
5205
|
-
|
|
5206
5133
|
# Request message for `SetIamPolicy` method.
|
|
5207
5134
|
class SetIamPolicyRequest
|
|
5208
5135
|
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.
|
|
19
|
+
GEM_VERSION = "0.29.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.11.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20221107"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -622,12 +622,6 @@ module Google
|
|
|
622
622
|
include Google::Apis::Core::JsonObjectSupport
|
|
623
623
|
end
|
|
624
624
|
|
|
625
|
-
class ListScanConfigsResponse
|
|
626
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
627
|
-
|
|
628
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
629
|
-
end
|
|
630
|
-
|
|
631
625
|
class Location
|
|
632
626
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
633
627
|
|
|
@@ -718,12 +712,6 @@ module Google
|
|
|
718
712
|
include Google::Apis::Core::JsonObjectSupport
|
|
719
713
|
end
|
|
720
714
|
|
|
721
|
-
class ScanConfig
|
|
722
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
723
|
-
|
|
724
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
725
|
-
end
|
|
726
|
-
|
|
727
715
|
class SetIamPolicyRequest
|
|
728
716
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
729
717
|
|
|
@@ -1894,15 +1882,6 @@ module Google
|
|
|
1894
1882
|
end
|
|
1895
1883
|
end
|
|
1896
1884
|
|
|
1897
|
-
class ListScanConfigsResponse
|
|
1898
|
-
# @private
|
|
1899
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1900
|
-
property :next_page_token, as: 'nextPageToken'
|
|
1901
|
-
collection :scan_configs, as: 'scanConfigs', class: Google::Apis::ContaineranalysisV1beta1::ScanConfig, decorator: Google::Apis::ContaineranalysisV1beta1::ScanConfig::Representation
|
|
1902
|
-
|
|
1903
|
-
end
|
|
1904
|
-
end
|
|
1905
|
-
|
|
1906
1885
|
class Location
|
|
1907
1886
|
# @private
|
|
1908
1887
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2140,17 +2119,6 @@ module Google
|
|
|
2140
2119
|
end
|
|
2141
2120
|
end
|
|
2142
2121
|
|
|
2143
|
-
class ScanConfig
|
|
2144
|
-
# @private
|
|
2145
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2146
|
-
property :create_time, as: 'createTime'
|
|
2147
|
-
property :description, as: 'description'
|
|
2148
|
-
property :enabled, as: 'enabled'
|
|
2149
|
-
property :name, as: 'name'
|
|
2150
|
-
property :update_time, as: 'updateTime'
|
|
2151
|
-
end
|
|
2152
|
-
end
|
|
2153
|
-
|
|
2154
2122
|
class SetIamPolicyRequest
|
|
2155
2123
|
# @private
|
|
2156
2124
|
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.
|
|
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-
|
|
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
|
|
@@ -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.
|
|
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: []
|