Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -376434,6 +376434,10 @@
"/run:v2/GoogleCloudRunV2TrafficTargetStatus/tag": tag
"/run:v2/GoogleCloudRunV2TrafficTargetStatus/type": type
"/run:v2/GoogleCloudRunV2TrafficTargetStatus/uri": uri
"/run:v2/GoogleCloudRunV2UploadSourceRequest": google_cloud_run_v2_upload_source_request
"/run:v2/GoogleCloudRunV2UploadSourceRequest/service": service
"/run:v2/GoogleCloudRunV2UploadSourceResponse": google_cloud_run_v2_upload_source_response
"/run:v2/GoogleCloudRunV2UploadSourceResponse/cloudStorageSource": cloud_storage_source
"/run:v2/GoogleCloudRunV2VersionToPath": google_cloud_run_v2_version_to_path
"/run:v2/GoogleCloudRunV2VersionToPath/mode": mode
"/run:v2/GoogleCloudRunV2VersionToPath/path": path
Expand Down Expand Up @@ -377056,6 +377060,8 @@
"/run:v2/run.projects.locations.services.setIamPolicy/resource": resource
"/run:v2/run.projects.locations.services.testIamPermissions": test_project_location_service_iam_permissions
"/run:v2/run.projects.locations.services.testIamPermissions/resource": resource
"/run:v2/run.projects.locations.sourceUploads.upload": upload_project_location_source_upload
"/run:v2/run.projects.locations.sourceUploads.upload/parent": parent
"/run:v2/run.projects.locations.workerPools.create": create_project_location_worker_pool
"/run:v2/run.projects.locations.workerPools.create/parent": parent
"/run:v2/run.projects.locations.workerPools.create/validateOnly": validate_only
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-run_v2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-run_v2

### v0.120.0 (2026-08-16)

* Regenerated from discovery document revision 20260807

### v0.119.0 (2026-07-26)

* Regenerated from discovery document revision 20260717
Expand Down
74 changes: 37 additions & 37 deletions generated/google-apis-run_v2/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
google-apis-run_v2 (0.119.0)
google-apis-run_v2 (0.120.0)
google-apis-core (>= 0.15.0, < 2.a)

GEM
Expand Down Expand Up @@ -97,43 +97,43 @@ DEPENDENCIES
yard (~> 0.9, >= 0.9.25)

CHECKSUMS
addressable (2.9.0)
base64 (0.3.0)
addressable (2.9.0) sha256=7fdf6ac3660f7f4e867a0838be3f6cf722ace541dd97767fa42bc6cfa980c7af
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
bundler (4.0.14) sha256=d09a0a965cf772266a7e49e83610be7c2f4e49e61134c42a56804bb383cc24b8
declarative (0.0.20)
diff-lcs (1.6.2)
faraday (2.14.3)
faraday-follow_redirects (0.5.0)
faraday-net_http (3.4.4)
google-apis-core (1.2.1)
google-apis-run_v2 (0.119.0)
google-cloud-env (2.3.1)
google-logging-utils (0.2.0)
googleauth (1.17.1)
json (2.20.0)
jwt (3.2.0)
logger (1.7.0)
mini_mime (1.1.5)
multi_json (1.21.1)
net-http (0.9.1)
opencensus (0.5.0)
os (1.1.4)
pstore (0.2.1)
public_suffix (7.0.5)
rake (13.4.2)
redcarpet (3.6.1)
representable (3.2.0)
retriable (3.8.0)
rspec (3.13.2)
rspec-core (3.13.6)
rspec-expectations (3.13.5)
rspec-mocks (3.13.8)
rspec-support (3.13.7)
signet (0.22.0)
trailblazer-option (0.1.2)
uber (0.1.0)
uri (1.1.1)
yard (0.9.44)
declarative (0.0.20) sha256=8021dd6cb17ab2b61233c56903d3f5a259c5cf43c80ff332d447d395b17d9ff9
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
faraday (2.14.3) sha256=1882247e6766615c8220b4392bf1d27f6ebb63d8e28267587cef1fb0bf37f278
faraday-follow_redirects (0.5.0) sha256=5cde93c894b30943a5d2b93c2fe9284216a6b756f7af406a1e55f211d97d10ad
faraday-net_http (3.4.4) sha256=0e78af151747ed1b00f33e25973b4bc220d7f16c00c39676817c8b12331eb588
google-apis-core (1.2.1) sha256=3739030455277e3be90f2d07321ad4d0bf0d6b1ed820b2d092916d6cdef05337
google-apis-run_v2 (0.120.0)
google-cloud-env (2.3.1) sha256=0faac01eb27be78c2591d64433663b1a114f8f7af55a4f819755426cac9178e7
google-logging-utils (0.2.0) sha256=675462b4ea5affa825a3442694ca2d75d0069455a1d0956127207498fca3df7b
googleauth (1.17.1) sha256=0f7e6fc70e204cee1b2d71f1e1de2d3b349d432404197fe68ebf7fa23d0821b9
json (2.20.0) sha256=9362bc6e55a952b056abf9167cf053358181c904cb70cd6eee0808ea830fc32b
jwt (3.2.0) sha256=5419b1fe37b1da0982bd07051f573a8b8789ab724c2aa7e785e4784a3ed217d7
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
mini_mime (1.1.5) sha256=8681b7e2e4215f2a159f9400b5816d85e9d8c6c6b491e96a12797e798f8bccef
multi_json (1.21.1) sha256=e6126a31808e3b4d19f483c775ceac34df190dffa62adfb63a165ee14ba68080
net-http (0.9.1) sha256=25ba0b67c63e89df626ed8fac771d0ad24ad151a858af2cc8e6a716ca4336996
opencensus (0.5.0) sha256=0456d1878fd91685c21a4bfa7feac85480a0c3bc969d25550f6d3f36dd75cbba
os (1.1.4) sha256=57816d6a334e7bd6aed048f4b0308226c5fb027433b67d90a9ab435f35108d3f
pstore (0.2.1) sha256=03904d0f2c66579e96d1e6704cdabc0c88df7ea8ed8782d9f3569f6f6c702c1a
public_suffix (7.0.5) sha256=1a8bb08f1bbea19228d3bed6e5ed908d1cb4f7c2726d18bd9cadf60bc676f623
rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701
redcarpet (3.6.1) sha256=d444910e6aa55480c6bcdc0cdb057626e8a32c054c29e793fa642ba2f155f445
representable (3.2.0) sha256=cc29bf7eebc31653586849371a43ffe36c60b54b0a6365b5f7d95ec34d1ebace
retriable (3.8.0) sha256=9f2f1b0207594c7817f17f671587b8ec7587387ac6cebda6c941a802bb98a8e5
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
rspec-mocks (3.13.8) sha256=086ad3d3d17533f4237643de0b5c42f04b66348c28bf6b9c2d3f4a3b01af1d47
rspec-support (3.13.7) sha256=0640e5570872aafefd79867901deeeeb40b0c9875a36b983d85f54fb7381c47c
signet (0.22.0) sha256=b76d495ccb07ad35dbc89f3e920665a9d8ed717141955034005d7843dcfe4780
trailblazer-option (0.1.2) sha256=20e4f12ea4e1f718c8007e7944ca21a329eee4eed9e0fa5dde6e8ad8ac4344a3
uber (0.1.0) sha256=5beeb407ff807b5db994f82fa9ee07cfceaa561dad8af20be880bc67eba935dc
uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6
yard (0.9.44) sha256=eb087e9b631ccd887b049f303d489963945452d5e2a7eb49a5a74a7cf6887f28

BUNDLED WITH
4.0.14
38 changes: 38 additions & 0 deletions generated/google-apis-run_v2/lib/google/apis/run_v2/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4101,6 +4101,44 @@ def update!(**args)
end
end

# The request message for the UploadSource method.
class GoogleCloudRunV2UploadSourceRequest
include Google::Apis::Core::Hashable

# The name of Cloud Run Service upload source archive will be used for.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service

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

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

# The response message for the UploadSource method.
class GoogleCloudRunV2UploadSourceResponse
include Google::Apis::Core::Hashable

# Cloud Storage source.
# Corresponds to the JSON property `cloudStorageSource`
# @return [Google::Apis::RunV2::GoogleCloudRunV2CloudStorageSource]
attr_accessor :cloud_storage_source

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

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

# VersionToPath maps a specific version of a secret to a relative file to mount
# to, relative to VolumeMount's mount_path.
class GoogleCloudRunV2VersionToPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module RunV2
# Version of the google-apis-run_v2 gem
GEM_VERSION = "0.119.0"
GEM_VERSION = "0.120.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20260717"
REVISION = "20260807"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

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

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

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

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

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

Expand Down Expand Up @@ -1805,6 +1817,21 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class GoogleCloudRunV2UploadSourceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :service, as: 'service'
end
end

class GoogleCloudRunV2UploadSourceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cloud_storage_source, as: 'cloudStorageSource', class: Google::Apis::RunV2::GoogleCloudRunV2CloudStorageSource, decorator: Google::Apis::RunV2::GoogleCloudRunV2CloudStorageSource::Representation

end
end

class GoogleCloudRunV2VersionToPath
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down
49 changes: 49 additions & 0 deletions generated/google-apis-run_v2/lib/google/apis/run_v2/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1857,6 +1857,55 @@ def list_project_location_service_revisions(parent, page_size: nil, page_token:
execute_or_queue_command(command, &block)
end

# Uploads a source archive to a Google Cloud Storage bucket through Cloud Run.
# The uploaded source object should be used for Cloud Run resource deployments.
# User is responsible for managing the lifecycle of the uploaded object. If
# uploading through the Cloud Run API to Cloud Storage is not desired, you can
# use the IAM Deny Policy to deny the `run.locations.uploadSource` permission
# for all principals.
# @param [String] parent
# Required. The project and location in which the source archive should be
# uploaded to, specified in the format `projects/*/locations/*`.
# @param [Google::Apis::RunV2::GoogleCloudRunV2UploadSourceRequest] google_cloud_run_v2_upload_source_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [IO, String] upload_source
# IO stream or filename containing content to upload
# @param [String] content_type
# Content type of the uploaded content.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2UploadSourceResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RunV2::GoogleCloudRunV2UploadSourceResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def upload_project_location_source_upload(parent, google_cloud_run_v2_upload_source_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
command = make_simple_command(:post, 'v2/{+parent}:uploadSource', options)
else
command = make_upload_command(:post, 'v2/{+parent}:uploadSource', options)
command.upload_source = upload_source
command.upload_content_type = content_type
end
command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2UploadSourceRequest::Representation
command.request_object = google_cloud_run_v2_upload_source_request_object
command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2UploadSourceResponse::Representation
command.response_class = Google::Apis::RunV2::GoogleCloudRunV2UploadSourceResponse
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# Creates a new WorkerPool in a given project and location.
# @param [String] parent
# Required. The location and project in which this worker pool should be created.
Expand Down
Loading