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
14 changes: 14 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47757,6 +47757,10 @@
"/apphub:v1/ExtendedMetadata": extended_metadata
"/apphub:v1/ExtendedMetadata/metadataStruct": metadata_struct
"/apphub:v1/ExtendedMetadata/metadataStruct/metadata_struct": metadata_struct
"/apphub:v1/ExtendedMetadataSchema": extended_metadata_schema
"/apphub:v1/ExtendedMetadataSchema/jsonSchema": json_schema
"/apphub:v1/ExtendedMetadataSchema/name": name
"/apphub:v1/ExtendedMetadataSchema/schemaVersion": schema_version
"/apphub:v1/ExtraParameter": extra_parameter
"/apphub:v1/ExtraParameter/regionalMigDistributionPolicy": regional_mig_distribution_policy
"/apphub:v1/FunctionalType": functional_type
Expand Down Expand Up @@ -47790,6 +47794,10 @@
"/apphub:v1/ListDiscoveredWorkloadsResponse/nextPageToken": next_page_token
"/apphub:v1/ListDiscoveredWorkloadsResponse/unreachable": unreachable
"/apphub:v1/ListDiscoveredWorkloadsResponse/unreachable/unreachable": unreachable
"/apphub:v1/ListExtendedMetadataSchemasResponse": list_extended_metadata_schemas_response
"/apphub:v1/ListExtendedMetadataSchemasResponse/extendedMetadataSchemas": extended_metadata_schemas
"/apphub:v1/ListExtendedMetadataSchemasResponse/extendedMetadataSchemas/extended_metadata_schema": extended_metadata_schema
"/apphub:v1/ListExtendedMetadataSchemasResponse/nextPageToken": next_page_token
"/apphub:v1/ListLocationsResponse": list_locations_response
"/apphub:v1/ListLocationsResponse/locations": locations
"/apphub:v1/ListLocationsResponse/locations/location": location
Expand Down Expand Up @@ -48045,6 +48053,12 @@
"/apphub:v1/apphub.projects.locations.discoveredWorkloads.lookup": lookup_project_location_discovered_workload
"/apphub:v1/apphub.projects.locations.discoveredWorkloads.lookup/parent": parent
"/apphub:v1/apphub.projects.locations.discoveredWorkloads.lookup/uri": uri
"/apphub:v1/apphub.projects.locations.extendedMetadataSchemas.get": get_project_location_extended_metadata_schema
"/apphub:v1/apphub.projects.locations.extendedMetadataSchemas.get/name": name
"/apphub:v1/apphub.projects.locations.extendedMetadataSchemas.list": list_project_location_extended_metadata_schemas
"/apphub:v1/apphub.projects.locations.extendedMetadataSchemas.list/pageSize": page_size
"/apphub:v1/apphub.projects.locations.extendedMetadataSchemas.list/pageToken": page_token
"/apphub:v1/apphub.projects.locations.extendedMetadataSchemas.list/parent": parent
"/apphub:v1/apphub.projects.locations.get": get_project_location
"/apphub:v1/apphub.projects.locations.get/name": name
"/apphub:v1/apphub.projects.locations.getBoundary": get_project_location_boundary
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-apphub_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-apphub_v1

### v0.16.0 (2025-12-21)

* Regenerated from discovery document revision 20251210

### v0.15.0 (2025-11-23)

* Regenerated from discovery document revision 20251114
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module Google
module Apis
# App Hub API
#
#
# App Hub lets you build, operate, and manage applications on Google Cloud.
#
# @see https://cloud.google.com/app-hub/docs/
module ApphubV1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ class Boundary
attr_accessor :create_time

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

# ExtendedMetadataSchema represents a schema for extended metadata of a service
# or workload.
class ExtendedMetadataSchema
include Google::Apis::Core::Hashable

# Output only. The JSON schema as a string.
# Corresponds to the JSON property `jsonSchema`
# @return [String]
attr_accessor :json_schema

# Identifier. Resource name of the schema. Format: projects//locations//
# extendedMetadataSchemas/
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

# Output only. The version of the schema. New versions are required to be
# backwards compatible.
# Corresponds to the JSON property `schemaVersion`
# @return [Fixnum]
attr_accessor :schema_version

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

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

# The functional type of a service or workload.
class FunctionalType
include Google::Apis::Core::Hashable
Expand All @@ -638,10 +672,10 @@ def update!(**args)
class Identity
include Google::Apis::Core::Hashable

# Output only. Principal of the identity. Supported formats: * `sa://my-sa@xxxx.
# iam.gserviceaccount.com` for GCP Service Account * `principal://POOL_ID.global.
# PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/MANAGED_IDENTITY_ID` for
# Managed Workload Identity
# Output only. The principal of the identity. Supported formats: * `sa://my-sa@
# PROJECT_ID.iam.gserviceaccount.com` for GCP Service Account * `principal://
# POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/
# MANAGED_IDENTITY_ID` for Managed Workload Identity
# Corresponds to the JSON property `principal`
# @return [String]
attr_accessor :principal
Expand Down Expand Up @@ -749,6 +783,31 @@ def update!(**args)
end
end

# Response for ListExtendedMetadataSchemas.
class ListExtendedMetadataSchemasResponse
include Google::Apis::Core::Hashable

# List of Extended Metadata Schemas.
# Corresponds to the JSON property `extendedMetadataSchemas`
# @return [Array<Google::Apis::ApphubV1::ExtendedMetadataSchema>]
attr_accessor :extended_metadata_schemas

# A token identifying a page of results the server should return.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token

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

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

# The response message for Locations.ListLocations.
class ListLocationsResponse
include Google::Apis::Core::Hashable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module ApphubV1
# Version of the google-apis-apphub_v1 gem
GEM_VERSION = "0.15.0"
GEM_VERSION = "0.16.0"

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

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

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

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

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

Expand Down Expand Up @@ -154,6 +160,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

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

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

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

Expand Down Expand Up @@ -466,6 +478,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class ExtendedMetadataSchema
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :json_schema, as: 'jsonSchema'
property :name, as: 'name'
property :schema_version, :numeric_string => true, as: 'schemaVersion'
end
end

class FunctionalType
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -510,6 +531,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class ListExtendedMetadataSchemasResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :extended_metadata_schemas, as: 'extendedMetadataSchemas', class: Google::Apis::ApphubV1::ExtendedMetadataSchema, decorator: Google::Apis::ApphubV1::ExtendedMetadataSchema::Representation

property :next_page_token, as: 'nextPageToken'
end
end

class ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module Apis
module ApphubV1
# App Hub API
#
#
# App Hub lets you build, operate, and manage applications on Google Cloud.
#
# @example
# require 'google/apis/apphub_v1'
Expand Down Expand Up @@ -1310,6 +1310,75 @@ def lookup_project_location_discovered_workload(parent, uri: nil, fields: nil, q
execute_or_queue_command(command, &block)
end

# Gets an Extended Metadata Schema.
# @param [String] name
# Required. Schema resource name Format: projects//locations//
# extendedMetadataSchemas/ could be "apphub.googleapis.com/Name"
# @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 [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ApphubV1::ExtendedMetadataSchema] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ApphubV1::ExtendedMetadataSchema]
#
# @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 get_project_location_extended_metadata_schema(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::ApphubV1::ExtendedMetadataSchema::Representation
command.response_class = Google::Apis::ApphubV1::ExtendedMetadataSchema
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# Lists Extended Metadata Schemas available in a host project and location.
# @param [String] parent
# Required. Project and location to list Extended Metadata Schemas on. Expected
# format: `projects/`project`/locations/`location``.
# @param [Fixnum] page_size
# Optional. Requested page size. Server may return fewer items than requested.
# If unspecified, server will pick an appropriate default.
# @param [String] page_token
# Optional. A token identifying a page of results the server should return.
# @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 [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ApphubV1::ListExtendedMetadataSchemasResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ApphubV1::ListExtendedMetadataSchemasResponse]
#
# @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 list_project_location_extended_metadata_schemas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/extendedMetadataSchemas', options)
command.response_representation = Google::Apis::ApphubV1::ListExtendedMetadataSchemasResponse::Representation
command.response_class = Google::Apis::ApphubV1::ListExtendedMetadataSchemasResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# Starts asynchronous cancellation on a long-running operation. The server makes
# a best effort to cancel the operation, but success is not guaranteed. If the
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
Expand Down