Service Client: Google::Cloud::Apihub::V1::CurateService::ApiHubCurateClient

Client stub representing the remote ApiHubCurate gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to apihub.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Apihub::V1::CurateService - Compiled Protocol Buffers messages for google/cloud/apihub/v1/curate_service.proto

SYNOPSIS

use Google::Cloud::Apihub::V1::CurateService;

my $msg = Google::Cloud::Apihub::V1::CurateService::CreateCurationRequest->new({
    parent => $parent,
    curation_id => $curation_id,
    curation => $curation,
});

# Read or update a field
my $val = $msg->parent();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Apihub::V1::CurateService::CreateCurationRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/apihub/v1/curate_service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Apihub::V1::CurateService::CreateCurationRequest

The [CreateCuration][ApiHub.CreateCuration] method's request.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent resource for the curation resource. Format: `projects/{project}/locations/{location}`

  • $msg->curation_id() / $msg->curation_id($value)

    Type: String

    Optional. The ID to use for the curation resource, which will become the final component of the curations's resource name. This field is optional.

    * If provided, the same will be used. The service will throw an error if the specified ID is already used by another curation resource in the API hub. * If not provided, a system generated ID will be used.

    This value should be 4-500 characters, and valid characters are /[a-z][A-Z][0-9]-_/.

  • $msg->curation() / $msg->curation($value)

    Type: Message (Google::Cloud::Apihub::V1::CurateService::Curation)

    Required. The curation resource to create.

Google::Cloud::Apihub::V1::CurateService::GetCurationRequest

The [GetCuration][ApiHub.GetCuration] method's request.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the curation resource to retrieve. Format: `projects/{project}/locations/{location}/curations/{curation}`

Google::Cloud::Apihub::V1::CurateService::UpdateCurationRequest

The [UpdateCuration][ApiHub.UpdateCuration] method's request.

Inherits from Protobuf::Message.

Accessors

  • $msg->curation() / $msg->curation($value)

    Type: Message (Google::Cloud::Apihub::V1::CurateService::Curation)

    Required. The curation resource to update.

    The curation resource's `name` field is used to identify the curation resource to update. Format: `projects/{project}/locations/{location}/curations/{curation}`

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Optional. The list of fields to update.

Google::Cloud::Apihub::V1::CurateService::DeleteCurationRequest

The [DeleteCuration][ApiHub.DeleteCuration] method's request.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the curation resource to delete. Format: `projects/{project}/locations/{location}/curations/{curation}`

Google::Cloud::Apihub::V1::CurateService::ListCurationsRequest

The [ListCurations][ApiHub.ListCurations] method's request.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent, which owns this collection of curation resources. Format: `projects/{project}/locations/{location}`

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. An expression that filters the list of curation resources.

    A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string. The comparison operator must be one of: `<`, `>`, `:` or `=`. Filters are case insensitive.

    The following fields in the `curation resource` are eligible for filtering:

    * `create_time` - The time at which the curation was created.
    The value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339]
    format. Allowed comparison operators: `>` and `<`.
    * `display_name` - The display name of the curation. Allowed
    comparison operators: `=`.
    * `state` - The state of the curation. Allowed comparison operators: `=`.

    Expressions are combined with either `AND` logic operator or `OR` logical operator but not both of them together i.e. only one of the `AND` or `OR` operator can be used throughout the filter string and both the operators cannot be used together. No other logical operators are supported. At most three filter fields are allowed in the filter string and if provided more than that then `INVALID_ARGUMENT` error is returned by the API.

    Here are a few examples:

    * `create_time < \"2021-08-15T14:50:00Z\" AND create_time >
    \"2021-08-10T12:00:00Z\"` -
    The curation resource was created before _2021-08-15 14:50:00 UTC_ and
    after _2021-08-10 12:00:00 UTC_.
  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of curation resources to return. The service may return fewer than this value. If unspecified, at most 50 curations will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. A page token, received from a previous `ListCurations` call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters (except page_size) provided to `ListCurations` must match the call that provided the page token.

Google::Cloud::Apihub::V1::CurateService::ListCurationsResponse

The [ListCurations][ApiHub.ListCurations] method's response.

Inherits from Protobuf::Message.

Accessors

  • $msg->curations() / $msg->curations($value)

    Type: Message (Google::Cloud::Apihub::V1::CurateService::Curation)

    The curation resources present in the API hub.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

Google::Cloud::Apihub::V1::CurateService::Curation

A curation resource in the API Hub.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The name of the curation.

    Format: `projects/{project}/locations/{location}/curations/{curation}`

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Required. The display name of the curation.

  • $msg->description() / $msg->description($value)

    Type: String

    Optional. The description of the curation.

  • $msg->endpoint() / $msg->endpoint($value)

    Type: Message (Google::Cloud::Apihub::V1::CurateService::Endpoint)

    Required. The endpoint to be triggered for curation.

  • $msg->plugin_instance_actions() / $msg->plugin_instance_actions($value)

    Type: Message (Google::Cloud::Apihub::V1::CurateService::Curation::PluginInstanceActionID)

    Output only. The plugin instances and associated actions that are using the curation. Note: A particular curation could be used by multiple plugin instances or multiple actions in a plugin instance.

  • $msg->last_execution_state() / $msg->last_execution_state($value)

    Type: Enum (Google::Cloud::Apihub::V1::Curation::LastExecutionState)

    Output only. The last execution state of the curation.

  • $msg->last_execution_error_code() / $msg->last_execution_error_code($value)

    Type: Enum (Google::Cloud::Apihub::V1::Curation::ErrorCode)

    Output only. The error code of the last execution of the curation. The error code is populated only when the last execution state is failed.

  • $msg->last_execution_error_message() / $msg->last_execution_error_message($value)

    Type: String

    Output only. Error message describing the failure, if any, during the last execution of the curation.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which the curation was created.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time at which the curation was last updated.

Enum: Curation::LastExecutionState

  • LAST_EXECUTION_STATE_UNSPECIFIED => 0

  • SUCCEEDED => 1

  • FAILED => 2

Enum: Curation::ErrorCode

  • ERROR_CODE_UNSPECIFIED => 0

  • INTERNAL_ERROR => 1

  • UNAUTHORIZED => 2

Google::Cloud::Apihub::V1::CurateService::Endpoint

The endpoint to be triggered for curation. The endpoint will be invoked with a request payload containing [ApiMetadata][google.cloud.apihub.v1.ApiHub.ApiMetadata]. Response should contain curated data in the form of [ApiMetadata][google.cloud.apihub.v1.ApiHub.ApiMetadata].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Apihub::V1::CurateService::ApplicationIntegrationEndpointDetails

The details of the Application Integration endpoint to be triggered for curation.

Inherits from Protobuf::Message.

Accessors

  • $msg->uri() / $msg->uri($value)

    Type: String

    Required. The endpoint URI should be a valid REST URI for triggering an Application Integration. Format: `https://integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute` or `https://{location}-integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute`

  • $msg->trigger_id() / $msg->trigger_id($value)

    Type: String

    Required. The API trigger ID of the Application Integration workflow.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Apihub::V1::CurateService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.