Skip to content

Commit c3f6363

Browse files
feat: Automated regeneration of migrationcenter v1 client (googleapis#22998)
Auto-created at 2025-05-04 11:52:50 +0000 using the toys pull request generator.
1 parent c808ea3 commit c3f6363

File tree

8 files changed

+51
-6
lines changed

8 files changed

+51
-6
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276648,6 +276648,7 @@
276648276648
"/migrationcenter:v1/AggregateAssetsValuesRequest/aggregations": aggregations
276649276649
"/migrationcenter:v1/AggregateAssetsValuesRequest/aggregations/aggregation": aggregation
276650276650
"/migrationcenter:v1/AggregateAssetsValuesRequest/filter": filter
276651+
"/migrationcenter:v1/AggregateAssetsValuesRequest/showHidden": show_hidden
276651276652
"/migrationcenter:v1/AggregateAssetsValuesResponse": aggregate_assets_values_response
276652276653
"/migrationcenter:v1/AggregateAssetsValuesResponse/results": results
276653276654
"/migrationcenter:v1/AggregateAssetsValuesResponse/results/result": result
@@ -276691,6 +276692,9 @@
276691276692
"/migrationcenter:v1/Asset/createTime": create_time
276692276693
"/migrationcenter:v1/Asset/databaseDeploymentDetails": database_deployment_details
276693276694
"/migrationcenter:v1/Asset/databaseDetails": database_details
276695+
"/migrationcenter:v1/Asset/hidden": hidden
276696+
"/migrationcenter:v1/Asset/hideReason": hide_reason
276697+
"/migrationcenter:v1/Asset/hideTime": hide_time
276694276698
"/migrationcenter:v1/Asset/insightList": insight_list
276695276699
"/migrationcenter:v1/Asset/labels": labels
276696276700
"/migrationcenter:v1/Asset/labels/label": label
@@ -277553,6 +277557,7 @@
277553277557
"/migrationcenter:v1/migrationcenter.projects.locations.assets.list/pageSize": page_size
277554277558
"/migrationcenter:v1/migrationcenter.projects.locations.assets.list/pageToken": page_token
277555277559
"/migrationcenter:v1/migrationcenter.projects.locations.assets.list/parent": parent
277560+
"/migrationcenter:v1/migrationcenter.projects.locations.assets.list/showHidden": show_hidden
277556277561
"/migrationcenter:v1/migrationcenter.projects.locations.assets.list/view": view
277557277562
"/migrationcenter:v1/migrationcenter.projects.locations.assets.patch": patch_project_location_asset
277558277563
"/migrationcenter:v1/migrationcenter.projects.locations.assets.patch/name": name

generated/google-apis-migrationcenter_v1/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-migrationcenter_v1
22

3+
### v0.23.0 (2025-05-04)
4+
5+
* Regenerated from discovery document revision 20250422
6+
* Regenerated using generator version 0.17.0
7+
38
### v0.22.0 (2025-03-30)
49

510
* Regenerated from discovery document revision 20250320

generated/google-apis-migrationcenter_v1/OVERVIEW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ The [product documentation](https://cloud.google.com/migration-center) may provi
8383

8484
## Supported Ruby versions
8585

86-
This library is supported on Ruby 2.7+.
86+
This library is supported on Ruby 3.1+.
8787

8888
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
8989

generated/google-apis-migrationcenter_v1/google-apis-migrationcenter_v1.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ Gem::Specification.new do |gem|
2828
gem.files = Dir.glob("lib/**/*.rb") + Dir.glob("*.md") + [".yardopts"]
2929
gem.require_paths = ["lib"]
3030

31-
gem.required_ruby_version = '>= 2.7'
31+
gem.required_ruby_version = '>= 3.1'
3232
gem.add_runtime_dependency "google-apis-core", ">= 0.15.0", "< 2.a"
3333
end

generated/google-apis-migrationcenter_v1/lib/google/apis/migrationcenter_v1/classes.rb

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ class AggregateAssetsValuesRequest
8181
# @return [String]
8282
attr_accessor :filter
8383

84+
# Optional. When this value is set to 'true,' the response will include all
85+
# assets, including those that are hidden.
86+
# Corresponds to the JSON property `showHidden`
87+
# @return [Boolean]
88+
attr_accessor :show_hidden
89+
alias_method :show_hidden?, :show_hidden
90+
8491
def initialize(**args)
8592
update!(**args)
8693
end
@@ -89,6 +96,7 @@ def initialize(**args)
8996
def update!(**args)
9097
@aggregations = args[:aggregations] if args.key?(:aggregations)
9198
@filter = args[:filter] if args.key?(:filter)
99+
@show_hidden = args[:show_hidden] if args.key?(:show_hidden)
92100
end
93101
end
94102

@@ -404,6 +412,22 @@ class Asset
404412
# @return [Google::Apis::MigrationcenterV1::DatabaseDetails]
405413
attr_accessor :database_details
406414

415+
# Optional. Indicates if the asset is hidden.
416+
# Corresponds to the JSON property `hidden`
417+
# @return [Boolean]
418+
attr_accessor :hidden
419+
alias_method :hidden?, :hidden
420+
421+
# Optional. An optional reason for marking this asset as hidden.
422+
# Corresponds to the JSON property `hideReason`
423+
# @return [String]
424+
attr_accessor :hide_reason
425+
426+
# Output only. The timestamp when the asset was marked as hidden.
427+
# Corresponds to the JSON property `hideTime`
428+
# @return [String]
429+
attr_accessor :hide_time
430+
407431
# Message containing insights list.
408432
# Corresponds to the JSON property `insightList`
409433
# @return [Google::Apis::MigrationcenterV1::InsightList]
@@ -455,6 +479,9 @@ def update!(**args)
455479
@create_time = args[:create_time] if args.key?(:create_time)
456480
@database_deployment_details = args[:database_deployment_details] if args.key?(:database_deployment_details)
457481
@database_details = args[:database_details] if args.key?(:database_details)
482+
@hidden = args[:hidden] if args.key?(:hidden)
483+
@hide_reason = args[:hide_reason] if args.key?(:hide_reason)
484+
@hide_time = args[:hide_time] if args.key?(:hide_time)
458485
@insight_list = args[:insight_list] if args.key?(:insight_list)
459486
@labels = args[:labels] if args.key?(:labels)
460487
@machine_details = args[:machine_details] if args.key?(:machine_details)

generated/google-apis-migrationcenter_v1/lib/google/apis/migrationcenter_v1/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module MigrationcenterV1
1818
# Version of the google-apis-migrationcenter_v1 gem
19-
GEM_VERSION = "0.22.0"
19+
GEM_VERSION = "0.23.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.16.0"
22+
GENERATOR_VERSION = "0.17.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250320"
25+
REVISION = "20250422"
2626
end
2727
end
2828
end

generated/google-apis-migrationcenter_v1/lib/google/apis/migrationcenter_v1/representations.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
11241124
collection :aggregations, as: 'aggregations', class: Google::Apis::MigrationcenterV1::Aggregation, decorator: Google::Apis::MigrationcenterV1::Aggregation::Representation
11251125

11261126
property :filter, as: 'filter'
1127+
property :show_hidden, as: 'showHidden'
11271128
end
11281129
end
11291130

@@ -1238,6 +1239,9 @@ class Representation < Google::Apis::Core::JsonRepresentation
12381239

12391240
property :database_details, as: 'databaseDetails', class: Google::Apis::MigrationcenterV1::DatabaseDetails, decorator: Google::Apis::MigrationcenterV1::DatabaseDetails::Representation
12401241

1242+
property :hidden, as: 'hidden'
1243+
property :hide_reason, as: 'hideReason'
1244+
property :hide_time, as: 'hideTime'
12411245
property :insight_list, as: 'insightList', class: Google::Apis::MigrationcenterV1::InsightList, decorator: Google::Apis::MigrationcenterV1::InsightList::Representation
12421246

12431247
hash :labels, as: 'labels'

generated/google-apis-migrationcenter_v1/lib/google/apis/migrationcenter_v1/service.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,9 @@ def get_project_location_asset(name, view: nil, fields: nil, quota_user: nil, op
397397
# unspecified, server will pick an appropriate default.
398398
# @param [String] page_token
399399
# A token identifying a page of results the server should return.
400+
# @param [Boolean] show_hidden
401+
# Optional. When this value is set to 'true,' the response will include all
402+
# assets, including those that are hidden.
400403
# @param [String] view
401404
# View of the assets. Defaults to BASIC.
402405
# @param [String] fields
@@ -416,7 +419,7 @@ def get_project_location_asset(name, view: nil, fields: nil, quota_user: nil, op
416419
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
417420
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
418421
# @raise [Google::Apis::AuthorizationError] Authorization is required
419-
def list_project_location_assets(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
422+
def list_project_location_assets(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, show_hidden: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
420423
command = make_simple_command(:get, 'v1/{+parent}/assets', options)
421424
command.response_representation = Google::Apis::MigrationcenterV1::ListAssetsResponse::Representation
422425
command.response_class = Google::Apis::MigrationcenterV1::ListAssetsResponse
@@ -425,6 +428,7 @@ def list_project_location_assets(parent, filter: nil, order_by: nil, page_size:
425428
command.query['orderBy'] = order_by unless order_by.nil?
426429
command.query['pageSize'] = page_size unless page_size.nil?
427430
command.query['pageToken'] = page_token unless page_token.nil?
431+
command.query['showHidden'] = show_hidden unless show_hidden.nil?
428432
command.query['view'] = view unless view.nil?
429433
command.query['fields'] = fields unless fields.nil?
430434
command.query['quotaUser'] = quota_user unless quota_user.nil?

0 commit comments

Comments
 (0)