Skip to content

Commit

Permalink
feat: Automated regeneration of cloudbuild v2 client (#18947)
Browse files Browse the repository at this point in the history
Auto-created at 2024-05-05 10:08:41 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot committed May 5, 2024
1 parent 6288d2f commit be7dda8
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 2 deletions.
9 changes: 9 additions & 0 deletions api_names_out.yaml
Expand Up @@ -58326,12 +58326,20 @@
"/cloudbuild:v2/Step/env/env": env
"/cloudbuild:v2/Step/image": image
"/cloudbuild:v2/Step/name": name
"/cloudbuild:v2/Step/params": params
"/cloudbuild:v2/Step/params/param": param
"/cloudbuild:v2/Step/ref": ref
"/cloudbuild:v2/Step/script": script
"/cloudbuild:v2/Step/securityContext": security_context
"/cloudbuild:v2/Step/timeout": timeout
"/cloudbuild:v2/Step/volumeMounts": volume_mounts
"/cloudbuild:v2/Step/volumeMounts/volume_mount": volume_mount
"/cloudbuild:v2/Step/workingDir": working_dir
"/cloudbuild:v2/StepRef": step_ref
"/cloudbuild:v2/StepRef/name": name
"/cloudbuild:v2/StepRef/params": params
"/cloudbuild:v2/StepRef/params/param": param
"/cloudbuild:v2/StepRef/resolver": resolver
"/cloudbuild:v2/StepTemplate": step_template
"/cloudbuild:v2/StepTemplate/env": env
"/cloudbuild:v2/StepTemplate/env/env": env
Expand All @@ -58349,6 +58357,7 @@
"/cloudbuild:v2/TaskResult/properties": properties
"/cloudbuild:v2/TaskResult/properties/property": property
"/cloudbuild:v2/TaskResult/type": type
"/cloudbuild:v2/TaskResult/value": value
"/cloudbuild:v2/TaskSpec": task_spec
"/cloudbuild:v2/TaskSpec/description": description
"/cloudbuild:v2/TaskSpec/managedSidecars": managed_sidecars
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-cloudbuild_v2/CHANGELOG.md
@@ -1,5 +1,9 @@
# Release history for google-apis-cloudbuild_v2

### v0.18.0 (2024-05-05)

* Regenerated from discovery document revision 20240427

### v0.17.0 (2024-04-21)

* Regenerated from discovery document revision 20240411
Expand Down
Expand Up @@ -2700,6 +2700,16 @@ class Step
# @return [String]
attr_accessor :name

# Optional. Optional parameters passed to the StepAction.
# Corresponds to the JSON property `params`
# @return [Array<Google::Apis::CloudbuildV2::Param>]
attr_accessor :params

# A reference to a remote Step, i.e. a StepAction.
# Corresponds to the JSON property `ref`
# @return [Google::Apis::CloudbuildV2::StepRef]
attr_accessor :ref

# The contents of an executable file to execute.
# Corresponds to the JSON property `script`
# @return [String]
Expand Down Expand Up @@ -2736,6 +2746,8 @@ def update!(**args)
@env = args[:env] if args.key?(:env)
@image = args[:image] if args.key?(:image)
@name = args[:name] if args.key?(:name)
@params = args[:params] if args.key?(:params)
@ref = args[:ref] if args.key?(:ref)
@script = args[:script] if args.key?(:script)
@security_context = args[:security_context] if args.key?(:security_context)
@timeout = args[:timeout] if args.key?(:timeout)
Expand All @@ -2744,6 +2756,37 @@ def update!(**args)
end
end

# A reference to a remote Step, i.e. a StepAction.
class StepRef
include Google::Apis::Core::Hashable

# Optional. Name of the step.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

# Optional. Parameters used to control the resolution.
# Corresponds to the JSON property `params`
# @return [Array<Google::Apis::CloudbuildV2::Param>]
attr_accessor :params

# Optional. Type of the resolver.
# Corresponds to the JSON property `resolver`
# @return [String]
attr_accessor :resolver

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@params = args[:params] if args.key?(:params)
@resolver = args[:resolver] if args.key?(:resolver)
end
end

# StepTemplate can be used as the basis for all step containers within the Task,
# so that the steps inherit settings on the base container.
class StepTemplate
Expand Down Expand Up @@ -2830,6 +2873,11 @@ class TaskResult
# @return [String]
attr_accessor :type

# Parameter value.
# Corresponds to the JSON property `value`
# @return [Google::Apis::CloudbuildV2::ParamValue]
attr_accessor :value

def initialize(**args)
update!(**args)
end
Expand All @@ -2840,6 +2888,7 @@ def update!(**args)
@name = args[:name] if args.key?(:name)
@properties = args[:properties] if args.key?(:properties)
@type = args[:type] if args.key?(:type)
@value = args[:value] if args.key?(:value)
end
end

Expand Down
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module CloudbuildV2
# Version of the google-apis-cloudbuild_v2 gem
GEM_VERSION = "0.17.0"
GEM_VERSION = "0.18.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.14.0"

# Revision of the discovery document this client was generated from
REVISION = "20240411"
REVISION = "20240427"
end
end
end
Expand Up @@ -406,6 +406,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class StepRef
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class StepTemplate
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -1193,6 +1199,10 @@ class Representation < Google::Apis::Core::JsonRepresentation

property :image, as: 'image'
property :name, as: 'name'
collection :params, as: 'params', class: Google::Apis::CloudbuildV2::Param, decorator: Google::Apis::CloudbuildV2::Param::Representation

property :ref, as: 'ref', class: Google::Apis::CloudbuildV2::StepRef, decorator: Google::Apis::CloudbuildV2::StepRef::Representation

property :script, as: 'script'
property :security_context, as: 'securityContext', class: Google::Apis::CloudbuildV2::SecurityContext, decorator: Google::Apis::CloudbuildV2::SecurityContext::Representation

Expand All @@ -1203,6 +1213,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class StepRef
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
collection :params, as: 'params', class: Google::Apis::CloudbuildV2::Param, decorator: Google::Apis::CloudbuildV2::Param::Representation

property :resolver, as: 'resolver'
end
end

class StepTemplate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -1231,6 +1251,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
hash :properties, as: 'properties', class: Google::Apis::CloudbuildV2::PropertySpec, decorator: Google::Apis::CloudbuildV2::PropertySpec::Representation

property :type, as: 'type'
property :value, as: 'value', class: Google::Apis::CloudbuildV2::ParamValue, decorator: Google::Apis::CloudbuildV2::ParamValue::Representation

end
end

Expand Down

0 comments on commit be7dda8

Please sign in to comment.