Skip to content

Commit 673c198

Browse files
feat: Automated regeneration of apphub v1 client (#25295)
Auto-created at 2025-12-21 10:17:35 +0000 using the toys pull request generator.
1 parent f0d2abd commit 673c198

File tree

7 files changed

+185
-9
lines changed

7 files changed

+185
-9
lines changed

api_names_out.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47996,6 +47996,10 @@
4799647996
"/apphub:v1/ExtendedMetadata": extended_metadata
4799747997
"/apphub:v1/ExtendedMetadata/metadataStruct": metadata_struct
4799847998
"/apphub:v1/ExtendedMetadata/metadataStruct/metadata_struct": metadata_struct
47999+
"/apphub:v1/ExtendedMetadataSchema": extended_metadata_schema
48000+
"/apphub:v1/ExtendedMetadataSchema/jsonSchema": json_schema
48001+
"/apphub:v1/ExtendedMetadataSchema/name": name
48002+
"/apphub:v1/ExtendedMetadataSchema/schemaVersion": schema_version
4799948003
"/apphub:v1/ExtraParameter": extra_parameter
4800048004
"/apphub:v1/ExtraParameter/regionalMigDistributionPolicy": regional_mig_distribution_policy
4800148005
"/apphub:v1/FunctionalType": functional_type
@@ -48029,6 +48033,10 @@
4802948033
"/apphub:v1/ListDiscoveredWorkloadsResponse/nextPageToken": next_page_token
4803048034
"/apphub:v1/ListDiscoveredWorkloadsResponse/unreachable": unreachable
4803148035
"/apphub:v1/ListDiscoveredWorkloadsResponse/unreachable/unreachable": unreachable
48036+
"/apphub:v1/ListExtendedMetadataSchemasResponse": list_extended_metadata_schemas_response
48037+
"/apphub:v1/ListExtendedMetadataSchemasResponse/extendedMetadataSchemas": extended_metadata_schemas
48038+
"/apphub:v1/ListExtendedMetadataSchemasResponse/extendedMetadataSchemas/extended_metadata_schema": extended_metadata_schema
48039+
"/apphub:v1/ListExtendedMetadataSchemasResponse/nextPageToken": next_page_token
4803248040
"/apphub:v1/ListLocationsResponse": list_locations_response
4803348041
"/apphub:v1/ListLocationsResponse/locations": locations
4803448042
"/apphub:v1/ListLocationsResponse/locations/location": location
@@ -48284,6 +48292,12 @@
4828448292
"/apphub:v1/apphub.projects.locations.discoveredWorkloads.lookup": lookup_project_location_discovered_workload
4828548293
"/apphub:v1/apphub.projects.locations.discoveredWorkloads.lookup/parent": parent
4828648294
"/apphub:v1/apphub.projects.locations.discoveredWorkloads.lookup/uri": uri
48295+
"/apphub:v1/apphub.projects.locations.extendedMetadataSchemas.get": get_project_location_extended_metadata_schema
48296+
"/apphub:v1/apphub.projects.locations.extendedMetadataSchemas.get/name": name
48297+
"/apphub:v1/apphub.projects.locations.extendedMetadataSchemas.list": list_project_location_extended_metadata_schemas
48298+
"/apphub:v1/apphub.projects.locations.extendedMetadataSchemas.list/pageSize": page_size
48299+
"/apphub:v1/apphub.projects.locations.extendedMetadataSchemas.list/pageToken": page_token
48300+
"/apphub:v1/apphub.projects.locations.extendedMetadataSchemas.list/parent": parent
4828748301
"/apphub:v1/apphub.projects.locations.get": get_project_location
4828848302
"/apphub:v1/apphub.projects.locations.get/name": name
4828948303
"/apphub:v1/apphub.projects.locations.getBoundary": get_project_location_boundary

generated/google-apis-apphub_v1/CHANGELOG.md

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

3+
### v0.16.0 (2025-12-21)
4+
5+
* Regenerated from discovery document revision 20251210
6+
37
### v0.15.0 (2025-11-23)
48

59
* Regenerated from discovery document revision 20251114

generated/google-apis-apphub_v1/lib/google/apis/apphub_v1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module Google
2121
module Apis
2222
# App Hub API
2323
#
24-
#
24+
# App Hub lets you build, operate, and manage applications on Google Cloud.
2525
#
2626
# @see https://cloud.google.com/app-hub/docs/
2727
module ApphubV1

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

Lines changed: 64 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ class Boundary
320320
attr_accessor :create_time
321321

322322
# Optional. The resource name of the CRM node being attached to the boundary.
323-
# Format: `projects/`project-number`` or `projects/`project-id``
323+
# Format: `projects/`project-number``
324324
# Corresponds to the JSON property `crmNode`
325325
# @return [String]
326326
attr_accessor :crm_node
@@ -615,6 +615,40 @@ def update!(**args)
615615
end
616616
end
617617

618+
# ExtendedMetadataSchema represents a schema for extended metadata of a service
619+
# or workload.
620+
class ExtendedMetadataSchema
621+
include Google::Apis::Core::Hashable
622+
623+
# Output only. The JSON schema as a string.
624+
# Corresponds to the JSON property `jsonSchema`
625+
# @return [String]
626+
attr_accessor :json_schema
627+
628+
# Identifier. Resource name of the schema. Format: projects//locations//
629+
# extendedMetadataSchemas/
630+
# Corresponds to the JSON property `name`
631+
# @return [String]
632+
attr_accessor :name
633+
634+
# Output only. The version of the schema. New versions are required to be
635+
# backwards compatible.
636+
# Corresponds to the JSON property `schemaVersion`
637+
# @return [Fixnum]
638+
attr_accessor :schema_version
639+
640+
def initialize(**args)
641+
update!(**args)
642+
end
643+
644+
# Update properties of this object
645+
def update!(**args)
646+
@json_schema = args[:json_schema] if args.key?(:json_schema)
647+
@name = args[:name] if args.key?(:name)
648+
@schema_version = args[:schema_version] if args.key?(:schema_version)
649+
end
650+
end
651+
618652
# The functional type of a service or workload.
619653
class FunctionalType
620654
include Google::Apis::Core::Hashable
@@ -638,10 +672,10 @@ def update!(**args)
638672
class Identity
639673
include Google::Apis::Core::Hashable
640674

641-
# Output only. Principal of the identity. Supported formats: * `sa://my-sa@xxxx.
642-
# iam.gserviceaccount.com` for GCP Service Account * `principal://POOL_ID.global.
643-
# PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/MANAGED_IDENTITY_ID` for
644-
# Managed Workload Identity
675+
# Output only. The principal of the identity. Supported formats: * `sa://my-sa@
676+
# PROJECT_ID.iam.gserviceaccount.com` for GCP Service Account * `principal://
677+
# POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/
678+
# MANAGED_IDENTITY_ID` for Managed Workload Identity
645679
# Corresponds to the JSON property `principal`
646680
# @return [String]
647681
attr_accessor :principal
@@ -749,6 +783,31 @@ def update!(**args)
749783
end
750784
end
751785

786+
# Response for ListExtendedMetadataSchemas.
787+
class ListExtendedMetadataSchemasResponse
788+
include Google::Apis::Core::Hashable
789+
790+
# List of Extended Metadata Schemas.
791+
# Corresponds to the JSON property `extendedMetadataSchemas`
792+
# @return [Array<Google::Apis::ApphubV1::ExtendedMetadataSchema>]
793+
attr_accessor :extended_metadata_schemas
794+
795+
# A token identifying a page of results the server should return.
796+
# Corresponds to the JSON property `nextPageToken`
797+
# @return [String]
798+
attr_accessor :next_page_token
799+
800+
def initialize(**args)
801+
update!(**args)
802+
end
803+
804+
# Update properties of this object
805+
def update!(**args)
806+
@extended_metadata_schemas = args[:extended_metadata_schemas] if args.key?(:extended_metadata_schemas)
807+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
808+
end
809+
end
810+
752811
# The response message for Locations.ListLocations.
753812
class ListLocationsResponse
754813
include Google::Apis::Core::Hashable

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module ApphubV1
1818
# Version of the google-apis-apphub_v1 gem
19-
GEM_VERSION = "0.15.0"
19+
GEM_VERSION = "0.16.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

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

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
124124
include Google::Apis::Core::JsonObjectSupport
125125
end
126126

127+
class ExtendedMetadataSchema
128+
class Representation < Google::Apis::Core::JsonRepresentation; end
129+
130+
include Google::Apis::Core::JsonObjectSupport
131+
end
132+
127133
class FunctionalType
128134
class Representation < Google::Apis::Core::JsonRepresentation; end
129135

@@ -154,6 +160,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
154160
include Google::Apis::Core::JsonObjectSupport
155161
end
156162

163+
class ListExtendedMetadataSchemasResponse
164+
class Representation < Google::Apis::Core::JsonRepresentation; end
165+
166+
include Google::Apis::Core::JsonObjectSupport
167+
end
168+
157169
class ListLocationsResponse
158170
class Representation < Google::Apis::Core::JsonRepresentation; end
159171

@@ -466,6 +478,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
466478
end
467479
end
468480

481+
class ExtendedMetadataSchema
482+
# @private
483+
class Representation < Google::Apis::Core::JsonRepresentation
484+
property :json_schema, as: 'jsonSchema'
485+
property :name, as: 'name'
486+
property :schema_version, :numeric_string => true, as: 'schemaVersion'
487+
end
488+
end
489+
469490
class FunctionalType
470491
# @private
471492
class Representation < Google::Apis::Core::JsonRepresentation
@@ -510,6 +531,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
510531
end
511532
end
512533

534+
class ListExtendedMetadataSchemasResponse
535+
# @private
536+
class Representation < Google::Apis::Core::JsonRepresentation
537+
collection :extended_metadata_schemas, as: 'extendedMetadataSchemas', class: Google::Apis::ApphubV1::ExtendedMetadataSchema, decorator: Google::Apis::ApphubV1::ExtendedMetadataSchema::Representation
538+
539+
property :next_page_token, as: 'nextPageToken'
540+
end
541+
end
542+
513543
class ListLocationsResponse
514544
# @private
515545
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module Apis
2222
module ApphubV1
2323
# App Hub API
2424
#
25-
#
25+
# App Hub lets you build, operate, and manage applications on Google Cloud.
2626
#
2727
# @example
2828
# require 'google/apis/apphub_v1'
@@ -1310,6 +1310,75 @@ def lookup_project_location_discovered_workload(parent, uri: nil, fields: nil, q
13101310
execute_or_queue_command(command, &block)
13111311
end
13121312

1313+
# Gets an Extended Metadata Schema.
1314+
# @param [String] name
1315+
# Required. Schema resource name Format: projects//locations//
1316+
# extendedMetadataSchemas/ could be "apphub.googleapis.com/Name"
1317+
# @param [String] fields
1318+
# Selector specifying which fields to include in a partial response.
1319+
# @param [String] quota_user
1320+
# Available to use for quota purposes for server-side applications. Can be any
1321+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1322+
# @param [Google::Apis::RequestOptions] options
1323+
# Request-specific options
1324+
#
1325+
# @yield [result, err] Result & error if block supplied
1326+
# @yieldparam result [Google::Apis::ApphubV1::ExtendedMetadataSchema] parsed result object
1327+
# @yieldparam err [StandardError] error object if request failed
1328+
#
1329+
# @return [Google::Apis::ApphubV1::ExtendedMetadataSchema]
1330+
#
1331+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1332+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1333+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1334+
def get_project_location_extended_metadata_schema(name, fields: nil, quota_user: nil, options: nil, &block)
1335+
command = make_simple_command(:get, 'v1/{+name}', options)
1336+
command.response_representation = Google::Apis::ApphubV1::ExtendedMetadataSchema::Representation
1337+
command.response_class = Google::Apis::ApphubV1::ExtendedMetadataSchema
1338+
command.params['name'] = name unless name.nil?
1339+
command.query['fields'] = fields unless fields.nil?
1340+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1341+
execute_or_queue_command(command, &block)
1342+
end
1343+
1344+
# Lists Extended Metadata Schemas available in a host project and location.
1345+
# @param [String] parent
1346+
# Required. Project and location to list Extended Metadata Schemas on. Expected
1347+
# format: `projects/`project`/locations/`location``.
1348+
# @param [Fixnum] page_size
1349+
# Optional. Requested page size. Server may return fewer items than requested.
1350+
# If unspecified, server will pick an appropriate default.
1351+
# @param [String] page_token
1352+
# Optional. A token identifying a page of results the server should return.
1353+
# @param [String] fields
1354+
# Selector specifying which fields to include in a partial response.
1355+
# @param [String] quota_user
1356+
# Available to use for quota purposes for server-side applications. Can be any
1357+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1358+
# @param [Google::Apis::RequestOptions] options
1359+
# Request-specific options
1360+
#
1361+
# @yield [result, err] Result & error if block supplied
1362+
# @yieldparam result [Google::Apis::ApphubV1::ListExtendedMetadataSchemasResponse] parsed result object
1363+
# @yieldparam err [StandardError] error object if request failed
1364+
#
1365+
# @return [Google::Apis::ApphubV1::ListExtendedMetadataSchemasResponse]
1366+
#
1367+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1368+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1369+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1370+
def list_project_location_extended_metadata_schemas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1371+
command = make_simple_command(:get, 'v1/{+parent}/extendedMetadataSchemas', options)
1372+
command.response_representation = Google::Apis::ApphubV1::ListExtendedMetadataSchemasResponse::Representation
1373+
command.response_class = Google::Apis::ApphubV1::ListExtendedMetadataSchemasResponse
1374+
command.params['parent'] = parent unless parent.nil?
1375+
command.query['pageSize'] = page_size unless page_size.nil?
1376+
command.query['pageToken'] = page_token unless page_token.nil?
1377+
command.query['fields'] = fields unless fields.nil?
1378+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1379+
execute_or_queue_command(command, &block)
1380+
end
1381+
13131382
# Starts asynchronous cancellation on a long-running operation. The server makes
13141383
# a best effort to cancel the operation, but success is not guaranteed. If the
13151384
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

0 commit comments

Comments
 (0)