Skip to content

Commit 4b45d60

Browse files
feat: Automated regeneration of migrationcenter v1 client (googleapis#21485)
Auto-created at 2025-01-26 10:14:57 +0000 using the toys pull request generator.
1 parent e10cf22 commit 4b45d60

File tree

6 files changed

+200
-3
lines changed

6 files changed

+200
-3
lines changed

api_names_out.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264673,6 +264673,10 @@
264673264673
"/migrationcenter:v1/ListPreferenceSetsResponse/preferenceSets/preference_set": preference_set
264674264674
"/migrationcenter:v1/ListPreferenceSetsResponse/unreachable": unreachable
264675264675
"/migrationcenter:v1/ListPreferenceSetsResponse/unreachable/unreachable": unreachable
264676+
"/migrationcenter:v1/ListRelationsResponse": list_relations_response
264677+
"/migrationcenter:v1/ListRelationsResponse/nextPageToken": next_page_token
264678+
"/migrationcenter:v1/ListRelationsResponse/relations": relations
264679+
"/migrationcenter:v1/ListRelationsResponse/relations/relation": relation
264676264680
"/migrationcenter:v1/ListReportConfigsResponse": list_report_configs_response
264677264681
"/migrationcenter:v1/ListReportConfigsResponse/nextPageToken": next_page_token
264678264682
"/migrationcenter:v1/ListReportConfigsResponse/reportConfigs": report_configs
@@ -264882,6 +264886,12 @@
264882264886
"/migrationcenter:v1/RegionPreferences": region_preferences
264883264887
"/migrationcenter:v1/RegionPreferences/preferredRegions": preferred_regions
264884264888
"/migrationcenter:v1/RegionPreferences/preferredRegions/preferred_region": preferred_region
264889+
"/migrationcenter:v1/Relation": relation
264890+
"/migrationcenter:v1/Relation/createTime": create_time
264891+
"/migrationcenter:v1/Relation/dstAsset": dst_asset
264892+
"/migrationcenter:v1/Relation/name": name
264893+
"/migrationcenter:v1/Relation/srcAsset": src_asset
264894+
"/migrationcenter:v1/Relation/type": type
264885264895
"/migrationcenter:v1/RemoveAssetsFromGroupRequest": remove_assets_from_group_request
264886264896
"/migrationcenter:v1/RemoveAssetsFromGroupRequest/allowMissing": allow_missing
264887264897
"/migrationcenter:v1/RemoveAssetsFromGroupRequest/assets": assets
@@ -265262,6 +265272,14 @@
265262265272
"/migrationcenter:v1/migrationcenter.projects.locations.preferenceSets.patch/name": name
265263265273
"/migrationcenter:v1/migrationcenter.projects.locations.preferenceSets.patch/requestId": request_id
265264265274
"/migrationcenter:v1/migrationcenter.projects.locations.preferenceSets.patch/updateMask": update_mask
265275+
"/migrationcenter:v1/migrationcenter.projects.locations.relations.get": get_project_location_relation
265276+
"/migrationcenter:v1/migrationcenter.projects.locations.relations.get/name": name
265277+
"/migrationcenter:v1/migrationcenter.projects.locations.relations.list": list_project_location_relations
265278+
"/migrationcenter:v1/migrationcenter.projects.locations.relations.list/filter": filter
265279+
"/migrationcenter:v1/migrationcenter.projects.locations.relations.list/orderBy": order_by
265280+
"/migrationcenter:v1/migrationcenter.projects.locations.relations.list/pageSize": page_size
265281+
"/migrationcenter:v1/migrationcenter.projects.locations.relations.list/pageToken": page_token
265282+
"/migrationcenter:v1/migrationcenter.projects.locations.relations.list/parent": parent
265265265283
"/migrationcenter:v1/migrationcenter.projects.locations.reportConfigs.create": create_project_location_report_config
265266265284
"/migrationcenter:v1/migrationcenter.projects.locations.reportConfigs.create/parent": parent
265267265285
"/migrationcenter:v1/migrationcenter.projects.locations.reportConfigs.create/reportConfigId": report_config_id

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.21.0 (2025-01-26)
4+
5+
* Regenerated from discovery document revision 20250115
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.20.0 (2024-12-15)
49

510
* Regenerated from discovery document revision 20241205

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

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3027,6 +3027,31 @@ def update!(**args)
30273027
end
30283028
end
30293029

3030+
# Response message for listing relations.
3031+
class ListRelationsResponse
3032+
include Google::Apis::Core::Hashable
3033+
3034+
# A token identifying a page of results the server should return.
3035+
# Corresponds to the JSON property `nextPageToken`
3036+
# @return [String]
3037+
attr_accessor :next_page_token
3038+
3039+
# A list of relations.
3040+
# Corresponds to the JSON property `relations`
3041+
# @return [Array<Google::Apis::MigrationcenterV1::Relation>]
3042+
attr_accessor :relations
3043+
3044+
def initialize(**args)
3045+
update!(**args)
3046+
end
3047+
3048+
# Update properties of this object
3049+
def update!(**args)
3050+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3051+
@relations = args[:relations] if args.key?(:relations)
3052+
end
3053+
end
3054+
30303055
# Response message for listing report configs.
30313056
class ListReportConfigsResponse
30323057
include Google::Apis::Core::Hashable
@@ -4481,6 +4506,49 @@ def update!(**args)
44814506
end
44824507
end
44834508

4509+
# Message representing a relation between 2 resource.
4510+
class Relation
4511+
include Google::Apis::Core::Hashable
4512+
4513+
# Output only. The timestamp when the relation was created.
4514+
# Corresponds to the JSON property `createTime`
4515+
# @return [String]
4516+
attr_accessor :create_time
4517+
4518+
# Output only. The destination asset name in the relation.
4519+
# Corresponds to the JSON property `dstAsset`
4520+
# @return [String]
4521+
attr_accessor :dst_asset
4522+
4523+
# Output only. Identifier. The identifier of the relation.
4524+
# Corresponds to the JSON property `name`
4525+
# @return [String]
4526+
attr_accessor :name
4527+
4528+
# Output only. The source asset name in the relation.
4529+
# Corresponds to the JSON property `srcAsset`
4530+
# @return [String]
4531+
attr_accessor :src_asset
4532+
4533+
# Optional. The type of the relation.
4534+
# Corresponds to the JSON property `type`
4535+
# @return [String]
4536+
attr_accessor :type
4537+
4538+
def initialize(**args)
4539+
update!(**args)
4540+
end
4541+
4542+
# Update properties of this object
4543+
def update!(**args)
4544+
@create_time = args[:create_time] if args.key?(:create_time)
4545+
@dst_asset = args[:dst_asset] if args.key?(:dst_asset)
4546+
@name = args[:name] if args.key?(:name)
4547+
@src_asset = args[:src_asset] if args.key?(:src_asset)
4548+
@type = args[:type] if args.key?(:type)
4549+
end
4550+
end
4551+
44844552
# A request to remove assets from a group.
44854553
class RemoveAssetsFromGroupRequest
44864554
include Google::Apis::Core::Hashable

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.20.0"
19+
GEM_VERSION = "0.21.0"
2020

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

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

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
556556
include Google::Apis::Core::JsonObjectSupport
557557
end
558558

559+
class ListRelationsResponse
560+
class Representation < Google::Apis::Core::JsonRepresentation; end
561+
562+
include Google::Apis::Core::JsonObjectSupport
563+
end
564+
559565
class ListReportConfigsResponse
560566
class Representation < Google::Apis::Core::JsonRepresentation; end
561567

@@ -808,6 +814,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
808814
include Google::Apis::Core::JsonObjectSupport
809815
end
810816

817+
class Relation
818+
class Representation < Google::Apis::Core::JsonRepresentation; end
819+
820+
include Google::Apis::Core::JsonObjectSupport
821+
end
822+
811823
class RemoveAssetsFromGroupRequest
812824
class Representation < Google::Apis::Core::JsonRepresentation; end
813825

@@ -2008,6 +2020,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
20082020
end
20092021
end
20102022

2023+
class ListRelationsResponse
2024+
# @private
2025+
class Representation < Google::Apis::Core::JsonRepresentation
2026+
property :next_page_token, as: 'nextPageToken'
2027+
collection :relations, as: 'relations', class: Google::Apis::MigrationcenterV1::Relation, decorator: Google::Apis::MigrationcenterV1::Relation::Representation
2028+
2029+
end
2030+
end
2031+
20112032
class ListReportConfigsResponse
20122033
# @private
20132034
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2440,6 +2461,17 @@ class Representation < Google::Apis::Core::JsonRepresentation
24402461
end
24412462
end
24422463

2464+
class Relation
2465+
# @private
2466+
class Representation < Google::Apis::Core::JsonRepresentation
2467+
property :create_time, as: 'createTime'
2468+
property :dst_asset, as: 'dstAsset'
2469+
property :name, as: 'name'
2470+
property :src_asset, as: 'srcAsset'
2471+
property :type, as: 'type'
2472+
end
2473+
end
2474+
24432475
class RemoveAssetsFromGroupRequest
24442476
# @private
24452477
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,6 +1876,80 @@ def patch_project_location_preference_set(name, preference_set_object = nil, req
18761876
execute_or_queue_command(command, &block)
18771877
end
18781878

1879+
# Gets the details of an relation.
1880+
# @param [String] name
1881+
# Required. Name of the resource.
1882+
# @param [String] fields
1883+
# Selector specifying which fields to include in a partial response.
1884+
# @param [String] quota_user
1885+
# Available to use for quota purposes for server-side applications. Can be any
1886+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1887+
# @param [Google::Apis::RequestOptions] options
1888+
# Request-specific options
1889+
#
1890+
# @yield [result, err] Result & error if block supplied
1891+
# @yieldparam result [Google::Apis::MigrationcenterV1::Relation] parsed result object
1892+
# @yieldparam err [StandardError] error object if request failed
1893+
#
1894+
# @return [Google::Apis::MigrationcenterV1::Relation]
1895+
#
1896+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1897+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1898+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1899+
def get_project_location_relation(name, fields: nil, quota_user: nil, options: nil, &block)
1900+
command = make_simple_command(:get, 'v1/{+name}', options)
1901+
command.response_representation = Google::Apis::MigrationcenterV1::Relation::Representation
1902+
command.response_class = Google::Apis::MigrationcenterV1::Relation
1903+
command.params['name'] = name unless name.nil?
1904+
command.query['fields'] = fields unless fields.nil?
1905+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1906+
execute_or_queue_command(command, &block)
1907+
end
1908+
1909+
# Lists all the relations in a given project and location.
1910+
# @param [String] parent
1911+
# Required. Parent value for `ListRelationsRequest`.
1912+
# @param [String] filter
1913+
# Optional. Filtering results.
1914+
# @param [String] order_by
1915+
# Optional. Field to sort by. See https://google.aip.dev/132#ordering for more
1916+
# details.
1917+
# @param [Fixnum] page_size
1918+
# Optional. Requested page size. Server may return fewer items than requested.
1919+
# If unspecified, server will pick an appropriate default.
1920+
# @param [String] page_token
1921+
# Optional. A token identifying a page of results the server should return.
1922+
# @param [String] fields
1923+
# Selector specifying which fields to include in a partial response.
1924+
# @param [String] quota_user
1925+
# Available to use for quota purposes for server-side applications. Can be any
1926+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1927+
# @param [Google::Apis::RequestOptions] options
1928+
# Request-specific options
1929+
#
1930+
# @yield [result, err] Result & error if block supplied
1931+
# @yieldparam result [Google::Apis::MigrationcenterV1::ListRelationsResponse] parsed result object
1932+
# @yieldparam err [StandardError] error object if request failed
1933+
#
1934+
# @return [Google::Apis::MigrationcenterV1::ListRelationsResponse]
1935+
#
1936+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1937+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1938+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1939+
def list_project_location_relations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1940+
command = make_simple_command(:get, 'v1/{+parent}/relations', options)
1941+
command.response_representation = Google::Apis::MigrationcenterV1::ListRelationsResponse::Representation
1942+
command.response_class = Google::Apis::MigrationcenterV1::ListRelationsResponse
1943+
command.params['parent'] = parent unless parent.nil?
1944+
command.query['filter'] = filter unless filter.nil?
1945+
command.query['orderBy'] = order_by unless order_by.nil?
1946+
command.query['pageSize'] = page_size unless page_size.nil?
1947+
command.query['pageToken'] = page_token unless page_token.nil?
1948+
command.query['fields'] = fields unless fields.nil?
1949+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1950+
execute_or_queue_command(command, &block)
1951+
end
1952+
18791953
# Creates a report configuration.
18801954
# @param [String] parent
18811955
# Required. Value for parent.

0 commit comments

Comments
 (0)