@@ -1553,6 +1553,13 @@ def update!(**args)
15531553 class GoogleDevtoolsCloudbuildV1Artifacts
15541554 include Google ::Apis ::Core ::Hashable
15551555
1556+ # Optional. A list of Go modules to be uploaded to Artifact Registry upon
1557+ # successful completion of all build steps. If any objects fail to be pushed,
1558+ # the build is marked FAILURE.
1559+ # Corresponds to the JSON property `goModules`
1560+ # @return [Array<Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1GoModule>]
1561+ attr_accessor :go_modules
1562+
15561563 # A list of images to be pushed upon the successful completion of all build
15571564 # steps. The images will be pushed using the builder service account's
15581565 # credentials. The digests of the pushed images will be stored in the Build
@@ -1600,6 +1607,7 @@ def initialize(**args)
16001607
16011608 # Update properties of this object
16021609 def update! ( **args )
1610+ @go_modules = args [ :go_modules ] if args . key? ( :go_modules )
16031611 @images = args [ :images ] if args . key? ( :images )
16041612 @maven_artifacts = args [ :maven_artifacts ] if args . key? ( :maven_artifacts )
16051613 @npm_packages = args [ :npm_packages ] if args . key? ( :npm_packages )
@@ -1935,6 +1943,13 @@ class GoogleDevtoolsCloudbuildV1BuildOptions
19351943 attr_accessor :dynamic_substitutions
19361944 alias_method :dynamic_substitutions? , :dynamic_substitutions
19371945
1946+ # Optional. Option to specify whether structured logging is enabled. If true,
1947+ # JSON-formatted logs are parsed as structured logs.
1948+ # Corresponds to the JSON property `enableStructuredLogging`
1949+ # @return [Boolean]
1950+ attr_accessor :enable_structured_logging
1951+ alias_method :enable_structured_logging? , :enable_structured_logging
1952+
19381953 # A list of global environment variable definitions that will exist for all
19391954 # build steps in this build. If a variable is defined in both globally and in a
19401955 # build step, the variable will use the build step value. The elements are of
@@ -2016,6 +2031,7 @@ def update!(**args)
20162031 @default_logs_bucket_behavior = args [ :default_logs_bucket_behavior ] if args . key? ( :default_logs_bucket_behavior )
20172032 @disk_size_gb = args [ :disk_size_gb ] if args . key? ( :disk_size_gb )
20182033 @dynamic_substitutions = args [ :dynamic_substitutions ] if args . key? ( :dynamic_substitutions )
2034+ @enable_structured_logging = args [ :enable_structured_logging ] if args . key? ( :enable_structured_logging )
20192035 @env = args [ :env ] if args . key? ( :env )
20202036 @log_streaming_option = args [ :log_streaming_option ] if args . key? ( :log_streaming_option )
20212037 @logging = args [ :logging ] if args . key? ( :logging )
@@ -2399,6 +2415,64 @@ def update!(**args)
23992415 end
24002416 end
24012417
2418+ # Go module to upload to Artifact Registry upon successful completion of all
2419+ # build steps. A module refers to all dependencies in a go.mod file.
2420+ class GoogleDevtoolsCloudbuildV1GoModule
2421+ include Google ::Apis ::Core ::Hashable
2422+
2423+ # Optional. The Go module's "module path". e.g. example.com/foo/v2
2424+ # Corresponds to the JSON property `modulePath`
2425+ # @return [String]
2426+ attr_accessor :module_path
2427+
2428+ # Optional. The Go module's semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-
2429+ # release identifiers can also be added by appending a dash and dot separated
2430+ # ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5
2431+ # Corresponds to the JSON property `moduleVersion`
2432+ # @return [String]
2433+ attr_accessor :module_version
2434+
2435+ # Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults
2436+ # to the build’s location.
2437+ # Corresponds to the JSON property `repositoryLocation`
2438+ # @return [String]
2439+ attr_accessor :repository_location
2440+
2441+ # Optional. Artifact Registry repository name. Specified Go modules will be
2442+ # zipped and uploaded to Artifact Registry with this location as a prefix. e.g.
2443+ # my-go-repo
2444+ # Corresponds to the JSON property `repositoryName`
2445+ # @return [String]
2446+ attr_accessor :repository_name
2447+
2448+ # Optional. Project ID of the Artifact Registry repository. Defaults to the
2449+ # build project.
2450+ # Corresponds to the JSON property `repositoryProjectId`
2451+ # @return [String]
2452+ attr_accessor :repository_project_id
2453+
2454+ # Optional. Source path of the go.mod file in the build's workspace. If not
2455+ # specified, this will default to the current directory. e.g. ~/code/go/
2456+ # mypackage
2457+ # Corresponds to the JSON property `sourcePath`
2458+ # @return [String]
2459+ attr_accessor :source_path
2460+
2461+ def initialize ( **args )
2462+ update! ( **args )
2463+ end
2464+
2465+ # Update properties of this object
2466+ def update! ( **args )
2467+ @module_path = args [ :module_path ] if args . key? ( :module_path )
2468+ @module_version = args [ :module_version ] if args . key? ( :module_version )
2469+ @repository_location = args [ :repository_location ] if args . key? ( :repository_location )
2470+ @repository_name = args [ :repository_name ] if args . key? ( :repository_name )
2471+ @repository_project_id = args [ :repository_project_id ] if args . key? ( :repository_project_id )
2472+ @source_path = args [ :source_path ] if args . key? ( :source_path )
2473+ end
2474+ end
2475+
24022476 # Container message for hash values.
24032477 class GoogleDevtoolsCloudbuildV1Hash
24042478 include Google ::Apis ::Core ::Hashable
@@ -2707,6 +2781,12 @@ class GoogleDevtoolsCloudbuildV1Results
27072781 # @return [Array<String>]
27082782 attr_accessor :build_step_outputs
27092783
2784+ # Optional. Go module artifacts uploaded to Artifact Registry at the end of the
2785+ # build.
2786+ # Corresponds to the JSON property `goModules`
2787+ # @return [Array<Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1UploadedGoModule>]
2788+ attr_accessor :go_modules
2789+
27102790 # Container images that were built as a part of the build.
27112791 # Corresponds to the JSON property `images`
27122792 # @return [Array<Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1BuiltImage>]
@@ -2743,6 +2823,7 @@ def update!(**args)
27432823 @artifact_timing = args [ :artifact_timing ] if args . key? ( :artifact_timing )
27442824 @build_step_images = args [ :build_step_images ] if args . key? ( :build_step_images )
27452825 @build_step_outputs = args [ :build_step_outputs ] if args . key? ( :build_step_outputs )
2826+ @go_modules = args [ :go_modules ] if args . key? ( :go_modules )
27462827 @images = args [ :images ] if args . key? ( :images )
27472828 @maven_artifacts = args [ :maven_artifacts ] if args . key? ( :maven_artifacts )
27482829 @npm_packages = args [ :npm_packages ] if args . key? ( :npm_packages )
@@ -3046,6 +3127,39 @@ def update!(**args)
30463127 end
30473128 end
30483129
3130+ # A Go module artifact uploaded to Artifact Registry using the GoModule
3131+ # directive.
3132+ class GoogleDevtoolsCloudbuildV1UploadedGoModule
3133+ include Google ::Apis ::Core ::Hashable
3134+
3135+ # Container message for hashes of byte content of files, used in
3136+ # SourceProvenance messages to verify integrity of source input to the build.
3137+ # Corresponds to the JSON property `fileHashes`
3138+ # @return [Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1FileHashes]
3139+ attr_accessor :file_hashes
3140+
3141+ # Start and end times for a build execution phase.
3142+ # Corresponds to the JSON property `pushTiming`
3143+ # @return [Google::Apis::RunV1::GoogleDevtoolsCloudbuildV1TimeSpan]
3144+ attr_accessor :push_timing
3145+
3146+ # URI of the uploaded artifact.
3147+ # Corresponds to the JSON property `uri`
3148+ # @return [String]
3149+ attr_accessor :uri
3150+
3151+ def initialize ( **args )
3152+ update! ( **args )
3153+ end
3154+
3155+ # Update properties of this object
3156+ def update! ( **args )
3157+ @file_hashes = args [ :file_hashes ] if args . key? ( :file_hashes )
3158+ @push_timing = args [ :push_timing ] if args . key? ( :push_timing )
3159+ @uri = args [ :uri ] if args . key? ( :uri )
3160+ end
3161+ end
3162+
30493163 # A Maven artifact uploaded using the MavenArtifact directive.
30503164 class GoogleDevtoolsCloudbuildV1UploadedMavenArtifact
30513165 include Google ::Apis ::Core ::Hashable
0 commit comments