google-apis-containeranalysis_v1beta1 0.58.0 → 0.60.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: 13fbff3e56d583d6ce135ef6bccb5e41e1ea3ed33d007ef90d73676ef573bdb4
4
- data.tar.gz: f5e32638abd0a7521f5833434891ea2a7bfdfda396273546709bf1423a2fff15
3
+ metadata.gz: 6cb3781eea8921eb2a31bd05e1fe7d69f95c3f25f24dcc5c79973957eb62bfe9
4
+ data.tar.gz: b2019d246258da7a1f7de0a408a82e14c1dc1d3ef737da25f7a547e56c63b0df
5
5
  SHA512:
6
- metadata.gz: 4d25083753ca17190eda13535a66fc74bab0bea0c5c59184f76d9912da826611c2fcdfddc238951c22b9ec015c25c8cf6c09dbe4ee425473cc0cd5f197139d23
7
- data.tar.gz: 7f406ed3ccb9f7adaba39f3b98e38b8bf5121095809c2f0ef3c054764589cd453a39762f55f7e7ba686606851458ff8038e2bb69220bb0f74cb66167d9c9a083
6
+ metadata.gz: 69b9502ec593ba10534179614095012e458fbd027dd8ef0ea9db13efbf9b7530de86eaafc7ca5f290ce5f05b5eddd4bfe788f94661cac6cc93567df376588462
7
+ data.tar.gz: c5b213ca82fcec228bec09db6ee6e6c719adc38d1151b3f1c303e6a60c2c8be11edcedf0390c26e23840407ecc5cb05cb7c9d27e4c2384c6d1482261b5b0cac9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-containeranalysis_v1beta1
2
2
 
3
+ ### v0.60.0 (2025-02-26)
4
+
5
+ * Regenerated from discovery document revision 20250207
6
+ * Regenerated using generator version 0.16.0
7
+
8
+ ### v0.59.0 (2024-12-02)
9
+
10
+ * Regenerated from discovery document revision 20240924
11
+ * Regenerated using generator version 0.15.1
12
+
3
13
  ### v0.58.0 (2024-07-25)
4
14
 
5
15
  * Regenerated from discovery document revision 20240704
@@ -1248,6 +1248,13 @@ module Google
1248
1248
  class ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts
1249
1249
  include Google::Apis::Core::Hashable
1250
1250
 
1251
+ # Optional. A list of Go modules to be uploaded to Artifact Registry upon
1252
+ # successful completion of all build steps. If any objects fail to be pushed,
1253
+ # the build is marked FAILURE.
1254
+ # Corresponds to the JSON property `goModules`
1255
+ # @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule>]
1256
+ attr_accessor :go_modules
1257
+
1251
1258
  # A list of images to be pushed upon the successful completion of all build
1252
1259
  # steps. The images will be pushed using the builder service account's
1253
1260
  # credentials. The digests of the pushed images will be stored in the Build
@@ -1295,6 +1302,7 @@ module Google
1295
1302
 
1296
1303
  # Update properties of this object
1297
1304
  def update!(**args)
1305
+ @go_modules = args[:go_modules] if args.key?(:go_modules)
1298
1306
  @images = args[:images] if args.key?(:images)
1299
1307
  @maven_artifacts = args[:maven_artifacts] if args.key?(:maven_artifacts)
1300
1308
  @npm_packages = args[:npm_packages] if args.key?(:npm_packages)
@@ -1338,6 +1346,64 @@ module Google
1338
1346
  end
1339
1347
  end
1340
1348
 
1349
+ # Go module to upload to Artifact Registry upon successful completion of all
1350
+ # build steps. A module refers to all dependencies in a go.mod file.
1351
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule
1352
+ include Google::Apis::Core::Hashable
1353
+
1354
+ # Optional. The Go module's "module path". e.g. example.com/foo/v2
1355
+ # Corresponds to the JSON property `modulePath`
1356
+ # @return [String]
1357
+ attr_accessor :module_path
1358
+
1359
+ # Optional. The Go module's semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-
1360
+ # release identifiers can also be added by appending a dash and dot separated
1361
+ # ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5
1362
+ # Corresponds to the JSON property `moduleVersion`
1363
+ # @return [String]
1364
+ attr_accessor :module_version
1365
+
1366
+ # Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults
1367
+ # to the build’s location.
1368
+ # Corresponds to the JSON property `repositoryLocation`
1369
+ # @return [String]
1370
+ attr_accessor :repository_location
1371
+
1372
+ # Optional. Artifact Registry repository name. Specified Go modules will be
1373
+ # zipped and uploaded to Artifact Registry with this location as a prefix. e.g.
1374
+ # my-go-repo
1375
+ # Corresponds to the JSON property `repositoryName`
1376
+ # @return [String]
1377
+ attr_accessor :repository_name
1378
+
1379
+ # Optional. Project ID of the Artifact Registry repository. Defaults to the
1380
+ # build project.
1381
+ # Corresponds to the JSON property `repositoryProjectId`
1382
+ # @return [String]
1383
+ attr_accessor :repository_project_id
1384
+
1385
+ # Optional. Source path of the go.mod file in the build's workspace. If not
1386
+ # specified, this will default to the current directory. e.g. ~/code/go/
1387
+ # mypackage
1388
+ # Corresponds to the JSON property `sourcePath`
1389
+ # @return [String]
1390
+ attr_accessor :source_path
1391
+
1392
+ def initialize(**args)
1393
+ update!(**args)
1394
+ end
1395
+
1396
+ # Update properties of this object
1397
+ def update!(**args)
1398
+ @module_path = args[:module_path] if args.key?(:module_path)
1399
+ @module_version = args[:module_version] if args.key?(:module_version)
1400
+ @repository_location = args[:repository_location] if args.key?(:repository_location)
1401
+ @repository_name = args[:repository_name] if args.key?(:repository_name)
1402
+ @repository_project_id = args[:repository_project_id] if args.key?(:repository_project_id)
1403
+ @source_path = args[:source_path] if args.key?(:source_path)
1404
+ end
1405
+ end
1406
+
1341
1407
  # A Maven artifact to upload to Artifact Registry upon successful completion of
1342
1408
  # all build steps.
1343
1409
  class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact
@@ -1487,6 +1553,12 @@ module Google
1487
1553
  # @return [String]
1488
1554
  attr_accessor :create_time
1489
1555
 
1556
+ # Optional. Dependencies that the Cloud Build worker will fetch before executing
1557
+ # user steps.
1558
+ # Corresponds to the JSON property `dependencies`
1559
+ # @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency>]
1560
+ attr_accessor :dependencies
1561
+
1490
1562
  # A fatal problem encountered during the execution of the build.
1491
1563
  # Corresponds to the JSON property `failureInfo`
1492
1564
  # @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo]
@@ -1648,6 +1720,7 @@ module Google
1648
1720
  @available_secrets = args[:available_secrets] if args.key?(:available_secrets)
1649
1721
  @build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
1650
1722
  @create_time = args[:create_time] if args.key?(:create_time)
1723
+ @dependencies = args[:dependencies] if args.key?(:dependencies)
1651
1724
  @failure_info = args[:failure_info] if args.key?(:failure_info)
1652
1725
  @finish_time = args[:finish_time] if args.key?(:finish_time)
1653
1726
  @git_config = args[:git_config] if args.key?(:git_config)
@@ -1767,6 +1840,13 @@ module Google
1767
1840
  attr_accessor :dynamic_substitutions
1768
1841
  alias_method :dynamic_substitutions?, :dynamic_substitutions
1769
1842
 
1843
+ # Optional. Option to specify whether structured logging is enabled. If true,
1844
+ # JSON-formatted logs are parsed as structured logs.
1845
+ # Corresponds to the JSON property `enableStructuredLogging`
1846
+ # @return [Boolean]
1847
+ attr_accessor :enable_structured_logging
1848
+ alias_method :enable_structured_logging?, :enable_structured_logging
1849
+
1770
1850
  # A list of global environment variable definitions that will exist for all
1771
1851
  # build steps in this build. If a variable is defined in both globally and in a
1772
1852
  # build step, the variable will use the build step value. The elements are of
@@ -1799,6 +1879,11 @@ module Google
1799
1879
  # @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption]
1800
1880
  attr_accessor :pool
1801
1881
 
1882
+ # Optional. Option to specify the Pub/Sub topic to receive build status updates.
1883
+ # Corresponds to the JSON property `pubsubTopic`
1884
+ # @return [String]
1885
+ attr_accessor :pubsub_topic
1886
+
1802
1887
  # Requested verifiability options.
1803
1888
  # Corresponds to the JSON property `requestedVerifyOption`
1804
1889
  # @return [String]
@@ -1848,11 +1933,13 @@ module Google
1848
1933
  @default_logs_bucket_behavior = args[:default_logs_bucket_behavior] if args.key?(:default_logs_bucket_behavior)
1849
1934
  @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
1850
1935
  @dynamic_substitutions = args[:dynamic_substitutions] if args.key?(:dynamic_substitutions)
1936
+ @enable_structured_logging = args[:enable_structured_logging] if args.key?(:enable_structured_logging)
1851
1937
  @env = args[:env] if args.key?(:env)
1852
1938
  @log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option)
1853
1939
  @logging = args[:logging] if args.key?(:logging)
1854
1940
  @machine_type = args[:machine_type] if args.key?(:machine_type)
1855
1941
  @pool = args[:pool] if args.key?(:pool)
1942
+ @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
1856
1943
  @requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
1857
1944
  @secret_env = args[:secret_env] if args.key?(:secret_env)
1858
1945
  @source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
@@ -2142,6 +2229,106 @@ module Google
2142
2229
  end
2143
2230
  end
2144
2231
 
2232
+ # A dependency that the Cloud Build worker will fetch before executing user
2233
+ # steps.
2234
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency
2235
+ include Google::Apis::Core::Hashable
2236
+
2237
+ # If set to true disable all dependency fetching (ignoring the default source as
2238
+ # well).
2239
+ # Corresponds to the JSON property `empty`
2240
+ # @return [Boolean]
2241
+ attr_accessor :empty
2242
+ alias_method :empty?, :empty
2243
+
2244
+ # Represents a git repository as a build dependency.
2245
+ # Corresponds to the JSON property `gitSource`
2246
+ # @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency]
2247
+ attr_accessor :git_source
2248
+
2249
+ def initialize(**args)
2250
+ update!(**args)
2251
+ end
2252
+
2253
+ # Update properties of this object
2254
+ def update!(**args)
2255
+ @empty = args[:empty] if args.key?(:empty)
2256
+ @git_source = args[:git_source] if args.key?(:git_source)
2257
+ end
2258
+ end
2259
+
2260
+ # Represents a git repository as a build dependency.
2261
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency
2262
+ include Google::Apis::Core::Hashable
2263
+
2264
+ # Optional. How much history should be fetched for the build (default 1, -1 for
2265
+ # all history).
2266
+ # Corresponds to the JSON property `depth`
2267
+ # @return [Fixnum]
2268
+ attr_accessor :depth
2269
+
2270
+ # Required. Where should the files be placed on the worker.
2271
+ # Corresponds to the JSON property `destPath`
2272
+ # @return [String]
2273
+ attr_accessor :dest_path
2274
+
2275
+ # Optional. True if submodules should be fetched too (default false).
2276
+ # Corresponds to the JSON property `recurseSubmodules`
2277
+ # @return [Boolean]
2278
+ attr_accessor :recurse_submodules
2279
+ alias_method :recurse_submodules?, :recurse_submodules
2280
+
2281
+ # A repository for a git source.
2282
+ # Corresponds to the JSON property `repository`
2283
+ # @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository]
2284
+ attr_accessor :repository
2285
+
2286
+ # Required. The revision that we will fetch the repo at.
2287
+ # Corresponds to the JSON property `revision`
2288
+ # @return [String]
2289
+ attr_accessor :revision
2290
+
2291
+ def initialize(**args)
2292
+ update!(**args)
2293
+ end
2294
+
2295
+ # Update properties of this object
2296
+ def update!(**args)
2297
+ @depth = args[:depth] if args.key?(:depth)
2298
+ @dest_path = args[:dest_path] if args.key?(:dest_path)
2299
+ @recurse_submodules = args[:recurse_submodules] if args.key?(:recurse_submodules)
2300
+ @repository = args[:repository] if args.key?(:repository)
2301
+ @revision = args[:revision] if args.key?(:revision)
2302
+ end
2303
+ end
2304
+
2305
+ # A repository for a git source.
2306
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository
2307
+ include Google::Apis::Core::Hashable
2308
+
2309
+ # The Developer Connect Git repository link or the url that matches a repository
2310
+ # link in the current project, formatted as `projects/*/locations/*/connections/*
2311
+ # /gitRepositoryLink/*`
2312
+ # Corresponds to the JSON property `developerConnect`
2313
+ # @return [String]
2314
+ attr_accessor :developer_connect
2315
+
2316
+ # Location of the Git repository.
2317
+ # Corresponds to the JSON property `url`
2318
+ # @return [String]
2319
+ attr_accessor :url
2320
+
2321
+ def initialize(**args)
2322
+ update!(**args)
2323
+ end
2324
+
2325
+ # Update properties of this object
2326
+ def update!(**args)
2327
+ @developer_connect = args[:developer_connect] if args.key?(:developer_connect)
2328
+ @url = args[:url] if args.key?(:url)
2329
+ end
2330
+ end
2331
+
2145
2332
  # This config defines the location of a source through Developer Connect.
2146
2333
  class ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig
2147
2334
  include Google::Apis::Core::Hashable
@@ -2432,6 +2619,12 @@ module Google
2432
2619
  # @return [Array<String>]
2433
2620
  attr_accessor :build_step_outputs
2434
2621
 
2622
+ # Optional. Go module artifacts uploaded to Artifact Registry at the end of the
2623
+ # build.
2624
+ # Corresponds to the JSON property `goModules`
2625
+ # @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule>]
2626
+ attr_accessor :go_modules
2627
+
2435
2628
  # Container images that were built as a part of the build.
2436
2629
  # Corresponds to the JSON property `images`
2437
2630
  # @return [Array<Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage>]
@@ -2468,6 +2661,7 @@ module Google
2468
2661
  @artifact_timing = args[:artifact_timing] if args.key?(:artifact_timing)
2469
2662
  @build_step_images = args[:build_step_images] if args.key?(:build_step_images)
2470
2663
  @build_step_outputs = args[:build_step_outputs] if args.key?(:build_step_outputs)
2664
+ @go_modules = args[:go_modules] if args.key?(:go_modules)
2471
2665
  @images = args[:images] if args.key?(:images)
2472
2666
  @maven_artifacts = args[:maven_artifacts] if args.key?(:maven_artifacts)
2473
2667
  @npm_packages = args[:npm_packages] if args.key?(:npm_packages)
@@ -2771,6 +2965,39 @@ module Google
2771
2965
  end
2772
2966
  end
2773
2967
 
2968
+ # A Go module artifact uploaded to Artifact Registry using the GoModule
2969
+ # directive.
2970
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule
2971
+ include Google::Apis::Core::Hashable
2972
+
2973
+ # Container message for hashes of byte content of files, used in
2974
+ # SourceProvenance messages to verify integrity of source input to the build.
2975
+ # Corresponds to the JSON property `fileHashes`
2976
+ # @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes]
2977
+ attr_accessor :file_hashes
2978
+
2979
+ # Start and end times for a build execution phase.
2980
+ # Corresponds to the JSON property `pushTiming`
2981
+ # @return [Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan]
2982
+ attr_accessor :push_timing
2983
+
2984
+ # URI of the uploaded artifact.
2985
+ # Corresponds to the JSON property `uri`
2986
+ # @return [String]
2987
+ attr_accessor :uri
2988
+
2989
+ def initialize(**args)
2990
+ update!(**args)
2991
+ end
2992
+
2993
+ # Update properties of this object
2994
+ def update!(**args)
2995
+ @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
2996
+ @push_timing = args[:push_timing] if args.key?(:push_timing)
2997
+ @uri = args[:uri] if args.key?(:uri)
2998
+ end
2999
+ end
3000
+
2774
3001
  # A Maven artifact uploaded using the MavenArtifact directive.
2775
3002
  class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact
2776
3003
  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.58.0"
19
+ GEM_VERSION = "0.60.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240704"
25
+ REVISION = "20250207"
26
26
  end
27
27
  end
28
28
  end
@@ -196,6 +196,12 @@ module Google
196
196
  include Google::Apis::Core::JsonObjectSupport
197
197
  end
198
198
 
199
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
199
205
  class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact
200
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
207
 
@@ -268,6 +274,24 @@ module Google
268
274
  include Google::Apis::Core::JsonObjectSupport
269
275
  end
270
276
 
277
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
271
295
  class ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig
272
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
273
297
 
@@ -370,6 +394,12 @@ module Google
370
394
  include Google::Apis::Core::JsonObjectSupport
371
395
  end
372
396
 
397
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule
398
+ class Representation < Google::Apis::Core::JsonRepresentation; end
399
+
400
+ include Google::Apis::Core::JsonObjectSupport
401
+ end
402
+
373
403
  class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact
374
404
  class Representation < Google::Apis::Core::JsonRepresentation; end
375
405
 
@@ -1293,6 +1323,8 @@ module Google
1293
1323
  class ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts
1294
1324
  # @private
1295
1325
  class Representation < Google::Apis::Core::JsonRepresentation
1326
+ collection :go_modules, as: 'goModules', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule::Representation
1327
+
1296
1328
  collection :images, as: 'images'
1297
1329
  collection :maven_artifacts, as: 'mavenArtifacts', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact::Representation
1298
1330
 
@@ -1315,6 +1347,18 @@ module Google
1315
1347
  end
1316
1348
  end
1317
1349
 
1350
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsGoModule
1351
+ # @private
1352
+ class Representation < Google::Apis::Core::JsonRepresentation
1353
+ property :module_path, as: 'modulePath'
1354
+ property :module_version, as: 'moduleVersion'
1355
+ property :repository_location, as: 'repositoryLocation'
1356
+ property :repository_name, as: 'repositoryName'
1357
+ property :repository_project_id, as: 'repositoryProjectId'
1358
+ property :source_path, as: 'sourcePath'
1359
+ end
1360
+ end
1361
+
1318
1362
  class ContaineranalysisGoogleDevtoolsCloudbuildV1ArtifactsMavenArtifact
1319
1363
  # @private
1320
1364
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1353,6 +1397,8 @@ module Google
1353
1397
 
1354
1398
  property :build_trigger_id, as: 'buildTriggerId'
1355
1399
  property :create_time, as: 'createTime'
1400
+ collection :dependencies, as: 'dependencies', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency::Representation
1401
+
1356
1402
  property :failure_info, as: 'failureInfo', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildFailureInfo::Representation
1357
1403
 
1358
1404
  property :finish_time, as: 'finishTime'
@@ -1417,12 +1463,14 @@ module Google
1417
1463
  property :default_logs_bucket_behavior, as: 'defaultLogsBucketBehavior'
1418
1464
  property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
1419
1465
  property :dynamic_substitutions, as: 'dynamicSubstitutions'
1466
+ property :enable_structured_logging, as: 'enableStructuredLogging'
1420
1467
  collection :env, as: 'env'
1421
1468
  property :log_streaming_option, as: 'logStreamingOption'
1422
1469
  property :logging, as: 'logging'
1423
1470
  property :machine_type, as: 'machineType'
1424
1471
  property :pool, as: 'pool', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptionsPoolOption::Representation
1425
1472
 
1473
+ property :pubsub_topic, as: 'pubsubTopic'
1426
1474
  property :requested_verify_option, as: 'requestedVerifyOption'
1427
1475
  collection :secret_env, as: 'secretEnv'
1428
1476
  collection :source_provenance_hash, as: 'sourceProvenanceHash'
@@ -1494,6 +1542,35 @@ module Google
1494
1542
  end
1495
1543
  end
1496
1544
 
1545
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1Dependency
1546
+ # @private
1547
+ class Representation < Google::Apis::Core::JsonRepresentation
1548
+ property :empty, as: 'empty'
1549
+ property :git_source, as: 'gitSource', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency::Representation
1550
+
1551
+ end
1552
+ end
1553
+
1554
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceDependency
1555
+ # @private
1556
+ class Representation < Google::Apis::Core::JsonRepresentation
1557
+ property :depth, :numeric_string => true, as: 'depth'
1558
+ property :dest_path, as: 'destPath'
1559
+ property :recurse_submodules, as: 'recurseSubmodules'
1560
+ property :repository, as: 'repository', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository::Representation
1561
+
1562
+ property :revision, as: 'revision'
1563
+ end
1564
+ end
1565
+
1566
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1DependencyGitSourceRepository
1567
+ # @private
1568
+ class Representation < Google::Apis::Core::JsonRepresentation
1569
+ property :developer_connect, as: 'developerConnect'
1570
+ property :url, as: 'url'
1571
+ end
1572
+ end
1573
+
1497
1574
  class ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig
1498
1575
  # @private
1499
1576
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1573,6 +1650,8 @@ module Google
1573
1650
 
1574
1651
  collection :build_step_images, as: 'buildStepImages'
1575
1652
  collection :build_step_outputs, as: 'buildStepOutputs'
1653
+ collection :go_modules, as: 'goModules', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule::Representation
1654
+
1576
1655
  collection :images, as: 'images', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage::Representation
1577
1656
 
1578
1657
  collection :maven_artifacts, as: 'mavenArtifacts', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact::Representation
@@ -1674,6 +1753,17 @@ module Google
1674
1753
  end
1675
1754
  end
1676
1755
 
1756
+ class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedGoModule
1757
+ # @private
1758
+ class Representation < Google::Apis::Core::JsonRepresentation
1759
+ property :file_hashes, as: 'fileHashes', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes::Representation
1760
+
1761
+ property :push_timing, as: 'pushTiming', class: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan, decorator: Google::Apis::ContaineranalysisV1beta1::ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan::Representation
1762
+
1763
+ property :uri, as: 'uri'
1764
+ end
1765
+ end
1766
+
1677
1767
  class ContaineranalysisGoogleDevtoolsCloudbuildV1UploadedMavenArtifact
1678
1768
  # @private
1679
1769
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -55,6 +55,108 @@ module Google
55
55
  @batch_path = 'batch'
56
56
  end
57
57
 
58
+ # Creates new notes in batch.
59
+ # @param [String] parent
60
+ # Required. The name of the project in the form of `projects/[PROJECT_ID]`,
61
+ # under which the notes are to be created.
62
+ # @param [Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesRequest] batch_create_notes_request_object
63
+ # @param [String] fields
64
+ # Selector specifying which fields to include in a partial response.
65
+ # @param [String] quota_user
66
+ # Available to use for quota purposes for server-side applications. Can be any
67
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
68
+ # @param [Google::Apis::RequestOptions] options
69
+ # Request-specific options
70
+ #
71
+ # @yield [result, err] Result & error if block supplied
72
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesResponse] parsed result object
73
+ # @yieldparam err [StandardError] error object if request failed
74
+ #
75
+ # @return [Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesResponse]
76
+ #
77
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
78
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
79
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
80
+ def batch_project_location_note_create(parent, batch_create_notes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
81
+ command = make_simple_command(:post, 'v1beta1/{+parent}/notes:batchCreate', options)
82
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesRequest::Representation
83
+ command.request_object = batch_create_notes_request_object
84
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesResponse::Representation
85
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::BatchCreateNotesResponse
86
+ command.params['parent'] = parent unless parent.nil?
87
+ command.query['fields'] = fields unless fields.nil?
88
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
89
+ execute_or_queue_command(command, &block)
90
+ end
91
+
92
+ # Creates a new note.
93
+ # @param [String] parent
94
+ # Required. The name of the project in the form of `projects/[PROJECT_ID]`,
95
+ # under which the note is to be created.
96
+ # @param [Google::Apis::ContaineranalysisV1beta1::Note] note_object
97
+ # @param [String] note_id
98
+ # Required. The ID to use for this note.
99
+ # @param [String] fields
100
+ # Selector specifying which fields to include in a partial response.
101
+ # @param [String] quota_user
102
+ # Available to use for quota purposes for server-side applications. Can be any
103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
104
+ # @param [Google::Apis::RequestOptions] options
105
+ # Request-specific options
106
+ #
107
+ # @yield [result, err] Result & error if block supplied
108
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Note] parsed result object
109
+ # @yieldparam err [StandardError] error object if request failed
110
+ #
111
+ # @return [Google::Apis::ContaineranalysisV1beta1::Note]
112
+ #
113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
116
+ def create_project_location_note(parent, note_object = nil, note_id: nil, fields: nil, quota_user: nil, options: nil, &block)
117
+ command = make_simple_command(:post, 'v1beta1/{+parent}/notes', options)
118
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation
119
+ command.request_object = note_object
120
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation
121
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Note
122
+ command.params['parent'] = parent unless parent.nil?
123
+ command.query['noteId'] = note_id unless note_id.nil?
124
+ command.query['fields'] = fields unless fields.nil?
125
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
126
+ execute_or_queue_command(command, &block)
127
+ end
128
+
129
+ # Deletes the specified note.
130
+ # @param [String] name
131
+ # Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[
132
+ # NOTE_ID]`.
133
+ # @param [String] fields
134
+ # Selector specifying which fields to include in a partial response.
135
+ # @param [String] quota_user
136
+ # Available to use for quota purposes for server-side applications. Can be any
137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
138
+ # @param [Google::Apis::RequestOptions] options
139
+ # Request-specific options
140
+ #
141
+ # @yield [result, err] Result & error if block supplied
142
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Empty] parsed result object
143
+ # @yieldparam err [StandardError] error object if request failed
144
+ #
145
+ # @return [Google::Apis::ContaineranalysisV1beta1::Empty]
146
+ #
147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
150
+ def delete_project_location_note(name, fields: nil, quota_user: nil, options: nil, &block)
151
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
152
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Empty::Representation
153
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Empty
154
+ command.params['name'] = name unless name.nil?
155
+ command.query['fields'] = fields unless fields.nil?
156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
157
+ execute_or_queue_command(command, &block)
158
+ end
159
+
58
160
  # Gets the specified note.
59
161
  # @param [String] name
60
162
  # Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[
@@ -86,6 +188,45 @@ module Google
86
188
  execute_or_queue_command(command, &block)
87
189
  end
88
190
 
191
+ # Gets the access control policy for a note or an occurrence resource. Requires `
192
+ # containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.
193
+ # setIamPolicy` permission if the resource is a note or occurrence, respectively.
194
+ # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
195
+ # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
196
+ # @param [String] resource
197
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
198
+ # names](https://cloud.google.com/apis/design/resource_names) for the
199
+ # appropriate value for this field.
200
+ # @param [Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
201
+ # @param [String] fields
202
+ # Selector specifying which fields to include in a partial response.
203
+ # @param [String] quota_user
204
+ # Available to use for quota purposes for server-side applications. Can be any
205
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
206
+ # @param [Google::Apis::RequestOptions] options
207
+ # Request-specific options
208
+ #
209
+ # @yield [result, err] Result & error if block supplied
210
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Policy] parsed result object
211
+ # @yieldparam err [StandardError] error object if request failed
212
+ #
213
+ # @return [Google::Apis::ContaineranalysisV1beta1::Policy]
214
+ #
215
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
216
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
217
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
218
+ def get_project_location_note_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
219
+ command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
220
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest::Representation
221
+ command.request_object = get_iam_policy_request_object
222
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Policy::Representation
223
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Policy
224
+ command.params['resource'] = resource unless resource.nil?
225
+ command.query['fields'] = fields unless fields.nil?
226
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
227
+ execute_or_queue_command(command, &block)
228
+ end
229
+
89
230
  # Lists notes for the specified project.
90
231
  # @param [String] parent
91
232
  # Required. The name of the project to list notes for in the form of `projects/[
@@ -127,6 +268,122 @@ module Google
127
268
  execute_or_queue_command(command, &block)
128
269
  end
129
270
 
271
+ # Updates the specified note.
272
+ # @param [String] name
273
+ # Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[
274
+ # NOTE_ID]`.
275
+ # @param [Google::Apis::ContaineranalysisV1beta1::Note] note_object
276
+ # @param [String] update_mask
277
+ # The fields to update.
278
+ # @param [String] fields
279
+ # Selector specifying which fields to include in a partial response.
280
+ # @param [String] quota_user
281
+ # Available to use for quota purposes for server-side applications. Can be any
282
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
283
+ # @param [Google::Apis::RequestOptions] options
284
+ # Request-specific options
285
+ #
286
+ # @yield [result, err] Result & error if block supplied
287
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Note] parsed result object
288
+ # @yieldparam err [StandardError] error object if request failed
289
+ #
290
+ # @return [Google::Apis::ContaineranalysisV1beta1::Note]
291
+ #
292
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
293
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
294
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
295
+ def patch_project_location_note(name, note_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
296
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
297
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation
298
+ command.request_object = note_object
299
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Note::Representation
300
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Note
301
+ command.params['name'] = name unless name.nil?
302
+ command.query['updateMask'] = update_mask unless update_mask.nil?
303
+ command.query['fields'] = fields unless fields.nil?
304
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
305
+ execute_or_queue_command(command, &block)
306
+ end
307
+
308
+ # Sets the access control policy on the specified note or occurrence. Requires `
309
+ # containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.
310
+ # setIamPolicy` permission if the resource is a note or an occurrence,
311
+ # respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[
312
+ # NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`
313
+ # for occurrences.
314
+ # @param [String] resource
315
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
316
+ # names](https://cloud.google.com/apis/design/resource_names) for the
317
+ # appropriate value for this field.
318
+ # @param [Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
319
+ # @param [String] fields
320
+ # Selector specifying which fields to include in a partial response.
321
+ # @param [String] quota_user
322
+ # Available to use for quota purposes for server-side applications. Can be any
323
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
324
+ # @param [Google::Apis::RequestOptions] options
325
+ # Request-specific options
326
+ #
327
+ # @yield [result, err] Result & error if block supplied
328
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Policy] parsed result object
329
+ # @yieldparam err [StandardError] error object if request failed
330
+ #
331
+ # @return [Google::Apis::ContaineranalysisV1beta1::Policy]
332
+ #
333
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
334
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
335
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
336
+ def set_project_location_note_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
337
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
338
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest::Representation
339
+ command.request_object = set_iam_policy_request_object
340
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Policy::Representation
341
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Policy
342
+ command.params['resource'] = resource unless resource.nil?
343
+ command.query['fields'] = fields unless fields.nil?
344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
345
+ execute_or_queue_command(command, &block)
346
+ end
347
+
348
+ # Returns the permissions that a caller has on the specified note or occurrence.
349
+ # Requires list permission on the project (for example, `containeranalysis.notes.
350
+ # list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]`
351
+ # for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
352
+ # occurrences.
353
+ # @param [String] resource
354
+ # REQUIRED: The resource for which the policy detail is being requested. See [
355
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
356
+ # appropriate value for this field.
357
+ # @param [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
358
+ # @param [String] fields
359
+ # Selector specifying which fields to include in a partial response.
360
+ # @param [String] quota_user
361
+ # Available to use for quota purposes for server-side applications. Can be any
362
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
363
+ # @param [Google::Apis::RequestOptions] options
364
+ # Request-specific options
365
+ #
366
+ # @yield [result, err] Result & error if block supplied
367
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse] parsed result object
368
+ # @yieldparam err [StandardError] error object if request failed
369
+ #
370
+ # @return [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse]
371
+ #
372
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
373
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
374
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
375
+ def test_project_location_note_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
376
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
377
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsRequest::Representation
378
+ command.request_object = test_iam_permissions_request_object
379
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse::Representation
380
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse
381
+ command.params['resource'] = resource unless resource.nil?
382
+ command.query['fields'] = fields unless fields.nil?
383
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
384
+ execute_or_queue_command(command, &block)
385
+ end
386
+
130
387
  # Lists occurrences referencing the specified note. Provider projects can use
131
388
  # this method to get all occurrences across consumer projects referencing the
132
389
  # specified note.
@@ -169,6 +426,106 @@ module Google
169
426
  execute_or_queue_command(command, &block)
170
427
  end
171
428
 
429
+ # Creates new occurrences in batch.
430
+ # @param [String] parent
431
+ # Required. The name of the project in the form of `projects/[PROJECT_ID]`,
432
+ # under which the occurrences are to be created.
433
+ # @param [Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesRequest] batch_create_occurrences_request_object
434
+ # @param [String] fields
435
+ # Selector specifying which fields to include in a partial response.
436
+ # @param [String] quota_user
437
+ # Available to use for quota purposes for server-side applications. Can be any
438
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
439
+ # @param [Google::Apis::RequestOptions] options
440
+ # Request-specific options
441
+ #
442
+ # @yield [result, err] Result & error if block supplied
443
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesResponse] parsed result object
444
+ # @yieldparam err [StandardError] error object if request failed
445
+ #
446
+ # @return [Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesResponse]
447
+ #
448
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
449
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
450
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
451
+ def batch_project_location_occurrence_create(parent, batch_create_occurrences_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
452
+ command = make_simple_command(:post, 'v1beta1/{+parent}/occurrences:batchCreate', options)
453
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesRequest::Representation
454
+ command.request_object = batch_create_occurrences_request_object
455
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesResponse::Representation
456
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::BatchCreateOccurrencesResponse
457
+ command.params['parent'] = parent unless parent.nil?
458
+ command.query['fields'] = fields unless fields.nil?
459
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
460
+ execute_or_queue_command(command, &block)
461
+ end
462
+
463
+ # Creates a new occurrence.
464
+ # @param [String] parent
465
+ # Required. The name of the project in the form of `projects/[PROJECT_ID]`,
466
+ # under which the occurrence is to be created.
467
+ # @param [Google::Apis::ContaineranalysisV1beta1::Occurrence] occurrence_object
468
+ # @param [String] fields
469
+ # Selector specifying which fields to include in a partial response.
470
+ # @param [String] quota_user
471
+ # Available to use for quota purposes for server-side applications. Can be any
472
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
473
+ # @param [Google::Apis::RequestOptions] options
474
+ # Request-specific options
475
+ #
476
+ # @yield [result, err] Result & error if block supplied
477
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Occurrence] parsed result object
478
+ # @yieldparam err [StandardError] error object if request failed
479
+ #
480
+ # @return [Google::Apis::ContaineranalysisV1beta1::Occurrence]
481
+ #
482
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
483
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
484
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
485
+ def create_project_location_occurrence(parent, occurrence_object = nil, fields: nil, quota_user: nil, options: nil, &block)
486
+ command = make_simple_command(:post, 'v1beta1/{+parent}/occurrences', options)
487
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation
488
+ command.request_object = occurrence_object
489
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation
490
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Occurrence
491
+ command.params['parent'] = parent unless parent.nil?
492
+ command.query['fields'] = fields unless fields.nil?
493
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
494
+ execute_or_queue_command(command, &block)
495
+ end
496
+
497
+ # Deletes the specified occurrence. For example, use this method to delete an
498
+ # occurrence when the occurrence is no longer applicable for the given resource.
499
+ # @param [String] name
500
+ # Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/
501
+ # occurrences/[OCCURRENCE_ID]`.
502
+ # @param [String] fields
503
+ # Selector specifying which fields to include in a partial response.
504
+ # @param [String] quota_user
505
+ # Available to use for quota purposes for server-side applications. Can be any
506
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
507
+ # @param [Google::Apis::RequestOptions] options
508
+ # Request-specific options
509
+ #
510
+ # @yield [result, err] Result & error if block supplied
511
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Empty] parsed result object
512
+ # @yieldparam err [StandardError] error object if request failed
513
+ #
514
+ # @return [Google::Apis::ContaineranalysisV1beta1::Empty]
515
+ #
516
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
517
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
518
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
519
+ def delete_project_location_occurrence(name, fields: nil, quota_user: nil, options: nil, &block)
520
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
521
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Empty::Representation
522
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Empty
523
+ command.params['name'] = name unless name.nil?
524
+ command.query['fields'] = fields unless fields.nil?
525
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
526
+ execute_or_queue_command(command, &block)
527
+ end
528
+
172
529
  # Gets the specified occurrence.
173
530
  # @param [String] name
174
531
  # Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/
@@ -200,6 +557,45 @@ module Google
200
557
  execute_or_queue_command(command, &block)
201
558
  end
202
559
 
560
+ # Gets the access control policy for a note or an occurrence resource. Requires `
561
+ # containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.
562
+ # setIamPolicy` permission if the resource is a note or occurrence, respectively.
563
+ # The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
564
+ # notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
565
+ # @param [String] resource
566
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
567
+ # names](https://cloud.google.com/apis/design/resource_names) for the
568
+ # appropriate value for this field.
569
+ # @param [Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
570
+ # @param [String] fields
571
+ # Selector specifying which fields to include in a partial response.
572
+ # @param [String] quota_user
573
+ # Available to use for quota purposes for server-side applications. Can be any
574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
575
+ # @param [Google::Apis::RequestOptions] options
576
+ # Request-specific options
577
+ #
578
+ # @yield [result, err] Result & error if block supplied
579
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Policy] parsed result object
580
+ # @yieldparam err [StandardError] error object if request failed
581
+ #
582
+ # @return [Google::Apis::ContaineranalysisV1beta1::Policy]
583
+ #
584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
587
+ def get_project_location_occurrence_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
588
+ command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
589
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::GetIamPolicyRequest::Representation
590
+ command.request_object = get_iam_policy_request_object
591
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Policy::Representation
592
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Policy
593
+ command.params['resource'] = resource unless resource.nil?
594
+ command.query['fields'] = fields unless fields.nil?
595
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
596
+ execute_or_queue_command(command, &block)
597
+ end
598
+
203
599
  # Gets the note attached to the specified occurrence. Consumer projects can use
204
600
  # this method to get a note that belongs to a provider project.
205
601
  # @param [String] name
@@ -307,6 +703,122 @@ module Google
307
703
  execute_or_queue_command(command, &block)
308
704
  end
309
705
 
706
+ # Updates the specified occurrence.
707
+ # @param [String] name
708
+ # Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/
709
+ # occurrences/[OCCURRENCE_ID]`.
710
+ # @param [Google::Apis::ContaineranalysisV1beta1::Occurrence] occurrence_object
711
+ # @param [String] update_mask
712
+ # The fields to update.
713
+ # @param [String] fields
714
+ # Selector specifying which fields to include in a partial response.
715
+ # @param [String] quota_user
716
+ # Available to use for quota purposes for server-side applications. Can be any
717
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
718
+ # @param [Google::Apis::RequestOptions] options
719
+ # Request-specific options
720
+ #
721
+ # @yield [result, err] Result & error if block supplied
722
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Occurrence] parsed result object
723
+ # @yieldparam err [StandardError] error object if request failed
724
+ #
725
+ # @return [Google::Apis::ContaineranalysisV1beta1::Occurrence]
726
+ #
727
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
728
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
729
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
730
+ def patch_project_location_occurrence(name, occurrence_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
731
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
732
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation
733
+ command.request_object = occurrence_object
734
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Occurrence::Representation
735
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Occurrence
736
+ command.params['name'] = name unless name.nil?
737
+ command.query['updateMask'] = update_mask unless update_mask.nil?
738
+ command.query['fields'] = fields unless fields.nil?
739
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
740
+ execute_or_queue_command(command, &block)
741
+ end
742
+
743
+ # Sets the access control policy on the specified note or occurrence. Requires `
744
+ # containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.
745
+ # setIamPolicy` permission if the resource is a note or an occurrence,
746
+ # respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[
747
+ # NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`
748
+ # for occurrences.
749
+ # @param [String] resource
750
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
751
+ # names](https://cloud.google.com/apis/design/resource_names) for the
752
+ # appropriate value for this field.
753
+ # @param [Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
754
+ # @param [String] fields
755
+ # Selector specifying which fields to include in a partial response.
756
+ # @param [String] quota_user
757
+ # Available to use for quota purposes for server-side applications. Can be any
758
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
759
+ # @param [Google::Apis::RequestOptions] options
760
+ # Request-specific options
761
+ #
762
+ # @yield [result, err] Result & error if block supplied
763
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::Policy] parsed result object
764
+ # @yieldparam err [StandardError] error object if request failed
765
+ #
766
+ # @return [Google::Apis::ContaineranalysisV1beta1::Policy]
767
+ #
768
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
769
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
770
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
771
+ def set_project_location_occurrence_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
772
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
773
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::SetIamPolicyRequest::Representation
774
+ command.request_object = set_iam_policy_request_object
775
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::Policy::Representation
776
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::Policy
777
+ command.params['resource'] = resource unless resource.nil?
778
+ command.query['fields'] = fields unless fields.nil?
779
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
780
+ execute_or_queue_command(command, &block)
781
+ end
782
+
783
+ # Returns the permissions that a caller has on the specified note or occurrence.
784
+ # Requires list permission on the project (for example, `containeranalysis.notes.
785
+ # list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]`
786
+ # for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
787
+ # occurrences.
788
+ # @param [String] resource
789
+ # REQUIRED: The resource for which the policy detail is being requested. See [
790
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
791
+ # appropriate value for this field.
792
+ # @param [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
793
+ # @param [String] fields
794
+ # Selector specifying which fields to include in a partial response.
795
+ # @param [String] quota_user
796
+ # Available to use for quota purposes for server-side applications. Can be any
797
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
798
+ # @param [Google::Apis::RequestOptions] options
799
+ # Request-specific options
800
+ #
801
+ # @yield [result, err] Result & error if block supplied
802
+ # @yieldparam result [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse] parsed result object
803
+ # @yieldparam err [StandardError] error object if request failed
804
+ #
805
+ # @return [Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse]
806
+ #
807
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
808
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
809
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
810
+ def test_project_location_occurrence_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
811
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
812
+ command.request_representation = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsRequest::Representation
813
+ command.request_object = test_iam_permissions_request_object
814
+ command.response_representation = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse::Representation
815
+ command.response_class = Google::Apis::ContaineranalysisV1beta1::TestIamPermissionsResponse
816
+ command.params['resource'] = resource unless resource.nil?
817
+ command.query['fields'] = fields unless fields.nil?
818
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
819
+ execute_or_queue_command(command, &block)
820
+ end
821
+
310
822
  # Generates an SBOM and other dependency information for the given resource.
311
823
  # @param [String] name
312
824
  # Required. The name of the resource in the form of `projects/[PROJECT_ID]/
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-containeranalysis_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.58.0
4
+ version: 0.60.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-07-25 00:00:00.000000000 Z
10
+ date: 2025-03-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  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.58.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1beta1/v0.60.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1beta1
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.6
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Container Analysis API V1beta1
82
79
  test_files: []