Service Client: Google::Cloud::Apihub::V1::ApihubService::ApiHubClient

Client stub representing the remote ApiHub 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.

Service Client: Google::Cloud::Apihub::V1::ApihubService::ApiHubDependenciesClient

Client stub representing the remote ApiHubDependencies 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::ApihubService - Compiled Protocol Buffers messages for google/cloud/apihub/v1/apihub_service.proto

SYNOPSIS

use Google::Cloud::Apihub::V1::ApihubService;

my $msg = Google::Cloud::Apihub::V1::ApihubService::CreateApiRequest->new({
    parent => $parent,
    api_id => $api_id,
    api => $api,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/apihub/v1/apihub_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::ApihubService::CreateApiRequest

The [CreateApi][google.cloud.apihub.v1.ApiHub.CreateApi] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

    Optional. The ID to use for the API resource, which will become the final component of the API'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 API 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->api() / $msg->api($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Api)

    Required. The API resource to create.

Google::Cloud::Apihub::V1::ApihubService::GetApiRequest

The [GetApi][google.cloud.apihub.v1.ApiHub.GetApi] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the API resource to retrieve. Format: `projects/{project}/locations/{location}/apis/{api}`

Google::Cloud::Apihub::V1::ApihubService::UpdateApiRequest

The [UpdateApi][google.cloud.apihub.v1.ApiHub.UpdateApi] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Api)

    Required. The API resource to update.

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

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

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

    Required. The list of fields to update.

Google::Cloud::Apihub::V1::ApihubService::DeleteApiRequest

The [DeleteApi][google.cloud.apihub.v1.ApiHub.DeleteApi] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the API resource to delete. Format: `projects/{project}/locations/{location}/apis/{api}`

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

    Type: Bool

    Optional. If set to true, any versions from this API will also be deleted. Otherwise, the request will only work if the API has no versions.

Google::Cloud::Apihub::V1::ApihubService::ListApisRequest

The [ListApis][google.cloud.apihub.v1.ApiHub.ListApis] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

    Optional. An expression that filters the list of ApiResources.

    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 not case sensitive.

    The following fields in the `ApiResource` are eligible for filtering:

    * `owner.email` - The email of the team which owns the ApiResource.
    Allowed comparison operators: `=`.
    * `create_time` - The time at which the ApiResource 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 ApiResource. Allowed
    comparison operators: `=`.
    * `target_user.enum_values.values.id` - The allowed value id of the
    target users attribute associated with the ApiResource. Allowed
    comparison operator is `:`.
    * `target_user.enum_values.values.display_name` - The allowed value
    display name of the target users attribute associated with the
    ApiResource. Allowed comparison operator is `:`.
    * `team.enum_values.values.id` - The allowed value id of the team
    attribute associated with the ApiResource. Allowed comparison operator is
    `:`.
    * `team.enum_values.values.display_name` - The allowed value display name
    of the team attribute associated with the ApiResource. Allowed comparison
    operator is `:`.
    * `business_unit.enum_values.values.id` - The allowed value id of the
    business unit attribute associated with the ApiResource. Allowed
    comparison operator is `:`.
    * `business_unit.enum_values.values.display_name` - The allowed value
    display name of the business unit attribute associated with the
    ApiResource. Allowed comparison operator is `:`.
    * `maturity_level.enum_values.values.id` - The allowed value id of the
    maturity level attribute associated with the ApiResource. Allowed
    comparison operator is `:`.
    * `maturity_level.enum_values.values.display_name` - The allowed value
    display name of the maturity level attribute associated with the
    ApiResource. Allowed comparison operator is `:`.
    * `api_style.enum_values.values.id` - The allowed value id of the
    api style attribute associated with the ApiResource. Allowed
    comparison operator is `:`.
    * `api_style.enum_values.values.display_name` - The allowed value display
    name of the api style attribute associated with the ApiResource. Allowed
    comparison operator is `:`.
    * `attributes.projects/test-project-id/locations/test-location-id/
    attributes/user-defined-attribute-id.enum_values.values.id` - The
    allowed value id of the user defined enum attribute associated with the
    Resource. Allowed comparison operator is `:`. Here
    user-defined-attribute-enum-id is a placeholder that can be replaced with
    any user defined enum attribute name.
    * `attributes.projects/test-project-id/locations/test-location-id/
    attributes/user-defined-attribute-id.enum_values.values.display_name`
    - The allowed value display name of the user defined enum attribute
    associated with the Resource. Allowed comparison operator is `:`. Here
    user-defined-attribute-enum-display-name is a placeholder that can be
    replaced with any user defined enum attribute enum name.
    * `attributes.projects/test-project-id/locations/test-location-id/
    attributes/user-defined-attribute-id.string_values.values` - The
    allowed value of the user defined string attribute associated with the
    Resource. Allowed comparison operator is `:`. Here
    user-defined-attribute-string is a placeholder that can be replaced with
    any user defined string attribute name.
    * `attributes.projects/test-project-id/locations/test-location-id/
    attributes/user-defined-attribute-id.json_values.values` - The
    allowed value of the user defined JSON attribute associated with the
    Resource. Allowed comparison operator is `:`. Here
    user-defined-attribute-json is a placeholder that can be replaced with
    any user defined JSON attribute name.

    A filter function is also supported in the filter string. The filter function is `id(name)`. The `id(name)` function returns the id of the resource name. For example, `id(name) = \"api-1\"` is equivalent to `name = \"projects/test-project-id/locations/test-location-id/apis/api-1\"` provided the parent is `projects/test-project-id/locations/test-location-id`.

    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:

    * `owner.email = \"apihub@google.com\"` -  - The owner team email is
    _apihub@google.com_.
    * `owner.email = \"apihub@google.com\" AND create_time <
    \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` -
    The owner team email is _apihub@google.com_ and the api was created
    before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_.
    * `owner.email = \"apihub@google.com\" OR team.enum_values.values.id:
    apihub-team-id` - The filter string specifies the APIs where the owner
    team email is _apihub@google.com_ or the id of the allowed value
    associated with the team attribute is _apihub-team-id_.
    * `owner.email = \"apihub@google.com\" OR
    team.enum_values.values.display_name: ApiHub Team` - The filter string
    specifies the APIs where the owner team email is _apihub@google.com_ or
    the display name of the allowed value associated with the team attribute
    is `ApiHub Team`.
    * `owner.email = \"apihub@google.com\" AND
    attributes.projects/test-project-id/locations/test-location-id/
    attributes/17650f90-4a29-4971-b3c0-d5532da3764b.enum_values.values.id:
    test_enum_id AND
    attributes.projects/test-project-id/locations/test-location-id/
    attributes/1765\0f90-4a29-5431-b3d0-d5532da3764c.string_values.values:
    test_string_value`  - The filter string specifies the APIs where the
    owner team email is _apihub@google.com_ and the id of the allowed value
    associated with the user defined attribute of type enum is _test_enum_id_
    and the value of the user defined attribute of type string is _test_..
  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of API resources to return. The service may return fewer than this value. If unspecified, at most 50 Apis 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 `ListApis` call. Provide this to retrieve the subsequent page.

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

Google::Cloud::Apihub::V1::ApihubService::ListApisResponse

The [ListApis][google.cloud.apihub.v1.ApiHub.ListApis] method's response.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Api)

    The API 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::ApihubService::CreateVersionRequest

The [CreateVersion][google.cloud.apihub.v1.ApiHub.CreateVersion] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent resource for API version. Format: `projects/{project}/locations/{location}/apis/{api}`

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

    Type: String

    Optional. The ID to use for the API version, which will become the final component of the version'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 version in the API resource. * If not provided, a system generated id will be used.

    This value should be 4-500 characters, overall resource name which will be of format `projects/{project}/locations/{location}/apis/{api}/versions/{version}`, its length is limited to 700 characters and valid characters are /[a-z][A-Z][0-9]-_/.

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Version)

    Required. The version to create.

Google::Cloud::Apihub::V1::ApihubService::GetVersionRequest

The [GetVersion][google.cloud.apihub.v1.ApiHub.GetVersion] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the API version to retrieve. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`

Google::Cloud::Apihub::V1::ApihubService::UpdateVersionRequest

The [UpdateVersion][google.cloud.apihub.v1.ApiHub.UpdateVersion] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Version)

    Required. The API version to update.

    The version's `name` field is used to identify the API version to update. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`

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

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

    Required. The list of fields to update.

Google::Cloud::Apihub::V1::ApihubService::DeleteVersionRequest

The [DeleteVersion][google.cloud.apihub.v1.ApiHub.DeleteVersion] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the version to delete. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`

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

    Type: Bool

    Optional. If set to true, any specs from this version will also be deleted. Otherwise, the request will only work if the version has no specs.

Google::Cloud::Apihub::V1::ApihubService::ListVersionsRequest

The [ListVersions][google.cloud.apihub.v1.ApiHub.ListVersions] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent which owns this collection of API versions i.e., the API resource Format: `projects/{project}/locations/{location}/apis/{api}`

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

    Type: String

    Optional. An expression that filters the list of Versions.

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

    The following fields in the `Version` are eligible for filtering:

    * `display_name` - The display name of the Version. Allowed
    comparison operators: `=`.
    * `create_time` - The time at which the Version was created. The
    value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339]
    format. Allowed comparison operators: `>` and `<`.
    * `lifecycle.enum_values.values.id` - The allowed value id of the
    lifecycle attribute associated with the Version. Allowed comparison
    operators: `:`.
    * `lifecycle.enum_values.values.display_name` - The allowed value display
    name of the lifecycle attribute associated with the Version. Allowed
    comparison operators: `:`.
    * `compliance.enum_values.values.id` -  The allowed value id of the
    compliances attribute associated with the Version. Allowed comparison
    operators: `:`.
    * `compliance.enum_values.values.display_name` -  The allowed value
    display name of the compliances attribute associated with the Version.
    Allowed comparison operators: `:`.
    * `accreditation.enum_values.values.id` - The allowed value id of the
    accreditations attribute associated with the Version. Allowed
    comparison operators: `:`.
    * `accreditation.enum_values.values.display_name` - The allowed value
    display name of the accreditations attribute associated with the Version.
    Allowed comparison operators: `:`.
    * `attributes.projects/test-project-id/locations/test-location-id/
    attributes/user-defined-attribute-id.enum_values.values.id` - The
    allowed value id of the user defined enum attribute associated with the
    Resource. Allowed comparison operator is `:`. Here
    user-defined-attribute-enum-id is a placeholder that can be replaced with
    any user defined enum attribute name.
    * `attributes.projects/test-project-id/locations/test-location-id/
    attributes/user-defined-attribute-id.enum_values.values.display_name`
    - The allowed value display name of the user defined enum attribute
    associated with the Resource. Allowed comparison operator is `:`. Here
    user-defined-attribute-enum-display-name is a placeholder that can be
    replaced with any user defined enum attribute enum name.
    * `attributes.projects/test-project-id/locations/test-location-id/
    attributes/user-defined-attribute-id.string_values.values` - The
    allowed value of the user defined string attribute associated with the
    Resource. Allowed comparison operator is `:`. Here
    user-defined-attribute-string is a placeholder that can be replaced with
    any user defined string attribute name.
    * `attributes.projects/test-project-id/locations/test-location-id/
    attributes/user-defined-attribute-id.json_values.values` - The
    allowed value of the user defined JSON attribute associated with the
    Resource. Allowed comparison operator is `:`. Here
    user-defined-attribute-json is a placeholder that can be replaced with
    any user defined JSON attribute name.

    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:

    * `lifecycle.enum_values.values.id: preview-id` - The filter string
    specifies that the id of the allowed value associated with the lifecycle
    attribute of the Version is _preview-id_.
    * `lifecycle.enum_values.values.display_name: \"Preview Display Name\"` -
    The filter string specifies that the display name of the allowed value
    associated with the lifecycle attribute of the Version is `Preview
    Display Name`.
    * `lifecycle.enum_values.values.id: preview-id AND create_time <
    \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` -
    The id of the allowed value associated with the lifecycle attribute of
    the Version is _preview-id_ and it was created before _2021-08-15
    14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_.
    * `compliance.enum_values.values.id: gdpr-id OR
    compliance.enum_values.values.id: pci-dss-id`
    - The id of the allowed value associated with the compliance attribute is
    _gdpr-id_ or _pci-dss-id_.
    * `lifecycle.enum_values.values.id: preview-id AND
    attributes.projects/test-project-id/locations/test-location-id/
    attributes/17650f90-4a29-4971-b3c0-d5532da3764b.string_values.values:
    test`  - The filter string specifies that the id of the allowed value
    associated with the lifecycle attribute of the Version is _preview-id_
    and the value of the user defined attribute of type string is _test_.
  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of versions to return. The service may return fewer than this value. If unspecified, at most 50 versions 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 `ListVersions` call. Provide this to retrieve the subsequent page.

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

Google::Cloud::Apihub::V1::ApihubService::ListVersionsResponse

The [ListVersions][google.cloud.apihub.v1.ApiHub.ListVersions] method's response.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Version)

    The versions corresponding to an API.

  • $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::ApihubService::CreateSpecRequest

The [CreateSpec][google.cloud.apihub.v1.ApiHub.CreateSpec] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent resource for Spec. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`

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

    Type: String

    Optional. The ID to use for the spec, which will become the final component of the spec'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 spec in the API resource. * If not provided, a system generated id will be used.

    This value should be 4-500 characters, overall resource name which will be of format `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`, its length is limited to 1000 characters and valid characters are /[a-z][A-Z][0-9]-_/.

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Spec)

    Required. The spec to create.

Google::Cloud::Apihub::V1::ApihubService::GetSpecRequest

The [GetSpec][google.cloud.apihub.v1.ApiHub.GetSpec] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the spec to retrieve. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`

Google::Cloud::Apihub::V1::ApihubService::UpdateSpecRequest

The [UpdateSpec][google.cloud.apihub.v1.ApiHub.UpdateSpec] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Spec)

    Required. The spec to update.

    The spec's `name` field is used to identify the spec to update. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`

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

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

    Required. The list of fields to update.

Google::Cloud::Apihub::V1::ApihubService::DeleteSpecRequest

The [DeleteSpec][google.cloud.apihub.v1.ApiHub.DeleteSpec] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the spec to delete. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`

Google::Cloud::Apihub::V1::ApihubService::ListSpecsRequest

The [ListSpecs][ListSpecs] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent, which owns this collection of specs. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`

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

    Type: String

    Optional. An expression that filters the list of Specs.

    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 not case sensitive.

    The following fields in the `Spec` are eligible for filtering:

    * `display_name` - The display name of the Spec. Allowed comparison
    operators: `=`.
    * `create_time` - The time at which the Spec was created. The
    value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339]
    format. Allowed comparison operators: `>` and `<`.
    * `spec_type.enum_values.values.id` - The allowed value id of the
    spec_type attribute associated with the Spec. Allowed comparison
    operators: `:`.
    * `spec_type.enum_values.values.display_name` - The allowed value display
    name of the spec_type attribute associated with the Spec. Allowed
    comparison operators: `:`.
    * `lint_response.json_values.values` - The json value of the
    lint_response attribute associated with the Spec. Allowed comparison
    operators: `:`.
    * `mime_type` - The MIME type of the Spec. Allowed comparison
    operators: `=`.
    * `attributes.projects/test-project-id/locations/test-location-id/
    attributes/user-defined-attribute-id.enum_values.values.id` - The
    allowed value id of the user defined enum attribute associated with the
    Resource. Allowed comparison operator is `:`. Here
    user-defined-attribute-enum-id is a placeholder that can be replaced with
    any user defined enum attribute name.
    * `attributes.projects/test-project-id/locations/test-location-id/
    attributes/user-defined-attribute-id.enum_values.values.display_name`
    - The allowed value display name of the user defined enum attribute
    associated with the Resource. Allowed comparison operator is `:`. Here
    user-defined-attribute-enum-display-name is a placeholder that can be
    replaced with any user defined enum attribute enum name.
    * `attributes.projects/test-project-id/locations/test-location-id/
    attributes/user-defined-attribute-id.string_values.values` - The
    allowed value of the user defined string attribute associated with the
    Resource. Allowed comparison operator is `:`. Here
    user-defined-attribute-string is a placeholder that can be replaced with
    any user defined string attribute name.
    * `attributes.projects/test-project-id/locations/test-location-id/
    attributes/user-defined-attribute-id.json_values.values` - The
    allowed value of the user defined JSON attribute associated with the
    Resource. Allowed comparison operator is `:`. Here
    user-defined-attribute-json is a placeholder that can be replaced with
    any user defined JSON attribute name.

    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:

    * `spec_type.enum_values.values.id: rest-id` -  The filter
    string specifies that the id of the allowed value associated with the
    spec_type attribute is _rest-id_.
    * `spec_type.enum_values.values.display_name: \"Rest Display Name\"` -
    The filter string specifies that the display name of the allowed value
    associated with the spec_type attribute is `Rest Display Name`.
    * `spec_type.enum_values.values.id: grpc-id AND create_time <
    \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` -
    The id of the allowed value associated with the spec_type attribute is
    _grpc-id_ and the spec was created before _2021-08-15 14:50:00 UTC_ and
    after _2021-08-10 12:00:00 UTC_.
    * `spec_type.enum_values.values.id: rest-id OR
    spec_type.enum_values.values.id: grpc-id`
    - The id of the allowed value associated with the spec_type attribute is
    _rest-id_ or _grpc-id_.
    * `spec_type.enum_values.values.id: rest-id AND
    attributes.projects/test-project-id/locations/test-location-id/
    attributes/17650f90-4a29-4971-b3c0-d5532da3764b.enum_values.values.id:
    test`  - The filter string specifies that the id of the allowed value
    associated with the spec_type attribute is _rest-id_ and the id of the
    allowed value associated with the user defined attribute of type enum is
    _test_.
  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of specs to return. The service may return fewer than this value. If unspecified, at most 50 specs 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 `ListSpecs` call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to `ListSpecs` must match the call that provided the page token.

Google::Cloud::Apihub::V1::ApihubService::ListSpecsResponse

The [ListSpecs][google.cloud.apihub.v1.ApiHub.ListSpecs] method's response.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Spec)

    The specs corresponding to an API Version.

  • $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::ApihubService::GetSpecContentsRequest

The [GetSpecContents][google.cloud.apihub.v1.ApiHub.GetSpecContents] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the spec whose contents need to be retrieved. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`

Google::Cloud::Apihub::V1::ApihubService::CreateApiOperationRequest

The [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent resource for the operation resource. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`

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

    Type: String

    Optional. The ID to use for the operation resource, which will become the final component of the operation'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 operation resource in the API hub. * If not provided, a system generated id will be used.

    This value should be 4-500 characters, overall resource name which will be of format `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`, its length is limited to 700 characters, and valid characters are /[a-z][A-Z][0-9]-_/.

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ApiOperation)

    Required. The operation resource to create.

Google::Cloud::Apihub::V1::ApihubService::GetApiOperationRequest

The [GetApiOperation][google.cloud.apihub.v1.ApiHub.GetApiOperation] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the operation to retrieve. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`

Google::Cloud::Apihub::V1::ApihubService::UpdateApiOperationRequest

The [UpdateApiOperation][google.cloud.apihub.v1.ApiHub.UpdateApiOperation] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ApiOperation)

    Required. The apiOperation resource to update.

    The operation resource's `name` field is used to identify the operation resource to update. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`

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

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

    Required. The list of fields to update.

Google::Cloud::Apihub::V1::ApihubService::DeleteApiOperationRequest

The [DeleteApiOperation][google.cloud.apihub.v1.ApiHub.DeleteApiOperation] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the operation resource to delete. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`

Google::Cloud::Apihub::V1::ApihubService::ListApiOperationsRequest

The [ListApiOperations][google.cloud.apihub.v1.ApiHub.ListApiOperations] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent which owns this collection of operations i.e., the API version. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`

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

    Type: String

    Optional. An expression that filters the list of ApiOperations.

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

    The following fields in the `ApiOperation` are eligible for filtering: * `name` - The ApiOperation resource name. Allowed comparison operators: `=`. * `details.http_operation.path.path` - The http operation's complete path relative to server endpoint. Allowed comparison operators: `=`. * `details.http_operation.method` - The http operation method type. Allowed comparison operators: `=`. * `details.deprecated` - Indicates if the ApiOperation is deprecated. Allowed values are True / False indicating the deprycation status of the ApiOperation. Allowed comparison operators: `=`. * `create_time` - The time at which the ApiOperation was created. The value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed comparison operators: `>` and `<`. * `attributes.projects/test-project-id/locations/test-location-id/ attributes/user-defined-attribute-id.enum_values.values.id` - The allowed value id of the user defined enum attribute associated with the Resource. Allowed comparison operator is `:`. Here user-defined-attribute-enum-id is a placeholder that can be replaced with any user defined enum attribute name. * `attributes.projects/test-project-id/locations/test-location-id/ attributes/user-defined-attribute-id.enum_values.values.display_name` - The allowed value display name of the user defined enum attribute associated with the Resource. Allowed comparison operator is `:`. Here user-defined-attribute-enum-display-name is a placeholder that can be replaced with any user defined enum attribute enum name. * `attributes.projects/test-project-id/locations/test-location-id/ attributes/user-defined-attribute-id.string_values.values` - The allowed value of the user defined string attribute associated with the Resource. Allowed comparison operator is `:`. Here user-defined-attribute-string is a placeholder that can be replaced with any user defined string attribute name. * `attributes.projects/test-project-id/locations/test-location-id/ attributes/user-defined-attribute-id.json_values.values` - The allowed value of the user defined JSON attribute associated with the Resource. Allowed comparison operator is `:`. Here user-defined-attribute-json is a placeholder that can be replaced with any user defined JSON attribute name.

    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:

    * `details.deprecated = True` -  The ApiOperation is deprecated.
    * `details.http_operation.method = GET AND create_time <
    \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` -
    The method of the http operation of the ApiOperation is _GET_ and the
    spec was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10
    12:00:00 UTC_.
    * `details.http_operation.method = GET OR details.http_operation.method =
    POST`. - The http operation of the method of ApiOperation is _GET_ or
    _POST_.
    * `details.deprecated = True AND
    attributes.projects/test-project-id/locations/test-location-id/
    attributes/17650f90-4a29-4971-b3c0-d5532da3764b.string_values.values:
    test`  - The filter string specifies that the ApiOperation is deprecated
    and the value of the user defined attribute of type string is _test_.
  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of operations to return. The service may return fewer than this value. If unspecified, at most 50 operations 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 `ListApiOperations` call. Provide this to retrieve the subsequent page.

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

Google::Cloud::Apihub::V1::ApihubService::ListApiOperationsResponse

The [ListApiOperations][google.cloud.apihub.v1.ApiHub.ListApiOperations] method's response.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ApiOperation)

    The operations corresponding to an API version.

  • $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::ApihubService::GetDefinitionRequest

The [GetDefinition][google.cloud.apihub.v1.ApiHub.GetDefinition] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the definition to retrieve. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`

Google::Cloud::Apihub::V1::ApihubService::CreateDeploymentRequest

The [CreateDeployment][google.cloud.apihub.v1.ApiHub.CreateDeployment] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

    Optional. The ID to use for the deployment resource, which will become the final component of the deployment'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 deployment 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->deployment() / $msg->deployment($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Deployment)

    Required. The deployment resource to create.

Google::Cloud::Apihub::V1::ApihubService::GetDeploymentRequest

The [GetDeployment][google.cloud.apihub.v1.ApiHub.GetDeployment] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

Google::Cloud::Apihub::V1::ApihubService::UpdateDeploymentRequest

The [UpdateDeployment][google.cloud.apihub.v1.ApiHub.UpdateDeployment] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Deployment)

    Required. The deployment resource to update.

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

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

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

    Required. The list of fields to update.

Google::Cloud::Apihub::V1::ApihubService::DeleteDeploymentRequest

The [DeleteDeployment][google.cloud.apihub.v1.ApiHub.DeleteDeployment] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

Google::Cloud::Apihub::V1::ApihubService::ListDeploymentsRequest

The [ListDeployments][google.cloud.apihub.v1.ApiHub.ListDeployments] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

    Optional. An expression that filters the list of Deployments.

    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 not case sensitive.

    The following fields in the `Deployments` are eligible for filtering:

    * `display_name` - The display name of the Deployment. Allowed
    comparison operators: `=`.
    * `create_time` - The time at which the Deployment was created. The
    value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339]
    format. Allowed comparison operators: `>` and `<`.
    * `resource_uri` - A URI to the deployment resource. Allowed
    comparison operators: `=`.
    * `api_versions` - The API versions linked to this deployment. Allowed
    comparison operators: `:`.
    * `source_project` - The project/organization at source for the
    deployment. Allowed comparison operators: `=`.
    * `source_environment` - The environment at source for the
    deployment. Allowed comparison operators: `=`.
    * `deployment_type.enum_values.values.id` - The allowed value id of the
    deployment_type attribute associated with the Deployment. Allowed
    comparison operators: `:`.
    * `deployment_type.enum_values.values.display_name` - The allowed value
    display name of the deployment_type attribute associated with the
    Deployment. Allowed comparison operators: `:`.
    * `slo.string_values.values` -The allowed string value of the slo
    attribute associated with the deployment. Allowed comparison
    operators: `:`.
    * `environment.enum_values.values.id` - The allowed value id of the
    environment attribute associated with the deployment. Allowed
    comparison operators: `:`.
    * `environment.enum_values.values.display_name` - The allowed value
    display name of the environment attribute associated with the deployment.
    Allowed comparison operators: `:`.
    * `attributes.projects/test-project-id/locations/test-location-id/
    attributes/user-defined-attribute-id.enum_values.values.id` - The
    allowed value id of the user defined enum attribute associated with the
    Resource. Allowed comparison operator is `:`. Here
    user-defined-attribute-enum-id is a placeholder that can be replaced with
    any user defined enum attribute name.
    * `attributes.projects/test-project-id/locations/test-location-id/
    attributes/user-defined-attribute-id.enum_values.values.display_name`
    - The allowed value display name of the user defined enum attribute
    associated with the Resource. Allowed comparison operator is `:`. Here
    user-defined-attribute-enum-display-name is a placeholder that can be
    replaced with any user defined enum attribute enum name.
    * `attributes.projects/test-project-id/locations/test-location-id/
    attributes/user-defined-attribute-id.string_values.values` - The
    allowed value of the user defined string attribute associated with the
    Resource. Allowed comparison operator is `:`. Here
    user-defined-attribute-string is a placeholder that can be replaced with
    any user defined string attribute name.
    * `attributes.projects/test-project-id/locations/test-location-id/
    attributes/user-defined-attribute-id.json_values.values` - The
    allowed value of the user defined JSON attribute associated with the
    Resource. Allowed comparison operator is `:`. Here
    user-defined-attribute-json is a placeholder that can be replaced with
    any user defined JSON attribute name.

    A filter function is also supported in the filter string. The filter function is `id(name)`. The `id(name)` function returns the id of the resource name. For example, `id(name) = \"deployment-1\"` is equivalent to `name = \"projects/test-project-id/locations/test-location-id/deployments/deployment-1\"` provided the parent is `projects/test-project-id/locations/test-location-id`.

    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:

    * `environment.enum_values.values.id: staging-id` - The allowed value id
    of the environment attribute associated with the Deployment is
    _staging-id_.
    * `environment.enum_values.values.display_name: \"Staging Deployment\"` -
    The allowed value display name of the environment attribute associated
    with the Deployment is `Staging Deployment`.
    * `environment.enum_values.values.id: production-id AND create_time <
    \"2021-08-15T14:50:00Z\" AND create_time > \"2021-08-10T12:00:00Z\"` -
    The allowed value id of the environment attribute associated with the
    Deployment is _production-id_ and Deployment was created before
    _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_.
    * `environment.enum_values.values.id: production-id OR
    slo.string_values.values: \"99.99%\"`
    - The allowed value id of the environment attribute Deployment is
    _production-id_ or string value of the slo attribute is _99.99%_.
    * `environment.enum_values.values.id: staging-id AND
    attributes.projects/test-project-id/locations/test-location-id/
    attributes/17650f90-4a29-4971-b3c0-d5532da3764b.string_values.values:
    test`  - The filter string specifies that the allowed value id of the
    environment attribute associated with the Deployment is _staging-id_ and
    the value of the user defined attribute of type string is _test_.
  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of deployment resources to return. The service may return fewer than this value. If unspecified, at most 50 deployments 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 `ListDeployments` call. Provide this to retrieve the subsequent page.

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

Google::Cloud::Apihub::V1::ApihubService::ListDeploymentsResponse

The [ListDeployments][google.cloud.apihub.v1.ApiHub.ListDeployments] method's response.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Deployment)

    The deployment 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::ApihubService::CreateAttributeRequest

The [CreateAttribute][google.cloud.apihub.v1.ApiHub.CreateAttribute] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

    Optional. The ID to use for the attribute, which will become the final component of the attribute'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 attribute 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->attribute() / $msg->attribute($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Attribute)

    Required. The attribute to create.

Google::Cloud::Apihub::V1::ApihubService::GetAttributeRequest

The [GetAttribute][google.cloud.apihub.v1.ApiHub.GetAttribute] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the attribute to retrieve. Format: `projects/{project}/locations/{location}/attributes/{attribute}`

Google::Cloud::Apihub::V1::ApihubService::UpdateAttributeRequest

The [UpdateAttribute][google.cloud.apihub.v1.ApiHub.UpdateAttribute] method's request.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Apihub::V1::ApihubService::DeleteAttributeRequest

The [DeleteAttribute][google.cloud.apihub.v1.ApiHub.DeleteAttribute] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the attribute to delete. Format: `projects/{project}/locations/{location}/attributes/{attribute}`

Google::Cloud::Apihub::V1::ApihubService::ListAttributesRequest

The [ListAttributes][google.cloud.apihub.v1.ApiHub.ListAttributes] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

    Optional. An expression that filters the list of Attributes.

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

    The following fields in the `Attribute` are eligible for filtering:

    * `display_name` - The display name of the Attribute. Allowed
    comparison operators: `=`.
    * `definition_type` - The definition type of the attribute. Allowed
    comparison operators: `=`.
    * `scope` - The scope of the attribute. Allowed comparison operators:
    `=`.
    * `data_type` - The type of the data of the attribute. Allowed
    comparison operators: `=`.
    * `mandatory` - Denotes whether the attribute is mandatory or not.
    Allowed comparison operators: `=`.
    * `create_time` - The time at which the Attribute was created. The
    value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339]
    format. Allowed comparison operators: `>` and `<`.

    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:

    * `display_name = production` -  - The display name of the attribute is
    _production_.
    * `(display_name = production) AND (create_time <
    \"2021-08-15T14:50:00Z\") AND (create_time > \"2021-08-10T12:00:00Z\")` -
    The display name of the attribute is _production_ and the attribute was
    created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00
    UTC_.
    * `display_name = production OR scope = api` -
    The attribute where the display name is _production_ or the scope is
    _api_.
  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of attribute resources to return. The service may return fewer than this value. If unspecified, at most 50 attributes 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 `ListAttributes` call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to `ListAttributes` must match the call that provided the page token.

Google::Cloud::Apihub::V1::ApihubService::ListAttributesResponse

The [ListAttributes][google.cloud.apihub.v1.ApiHub.ListAttributes] method's response.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Attribute)

    The list of all attributes.

  • $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::ApihubService::SearchResourcesRequest

The [SearchResources][google.cloud.apihub.v1.ApiHub.SearchResources] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource name of the location which will be of the type `projects/{project_id}/locations/{location_id}`. This field is used to identify the instance of API-Hub in which resources should be searched.

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

    Type: String

    Required. The free text search query. This query can contain keywords which could be related to any detail of the API-Hub resources such display names, descriptions, attributes etc.

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

    Type: String

    Optional. An expression that filters the list of search results.

    A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string, a number, or a boolean. The comparison operator must be `=`. Filters are not case sensitive.

    The following field names are eligible for filtering: * `resource_type` - The type of resource in the search results. Must be one of the following: `Api`, `ApiOperation`, `Deployment`, `Definition`, `Spec` or `Version`. This field can only be specified once in the filter.

    Here are is an example:

    * `resource_type = Api` - The resource_type is _Api_.
  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of search results to return. The service may return fewer than this value. If unspecified at most 10 search results will be returned. If value is negative then `INVALID_ARGUMENT` error is returned. The maximum value is 25; values above 25 will be coerced to 25. While paginating, you can specify a new page size parameter for each page of search results to be listed.

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

    Type: String

    Optional. A page token, received from a previous [SearchResources][SearchResources] call. Specify this parameter to retrieve the next page of transactions.

    When paginating, you must specify the `page_token` parameter and all the other parameters except [page_size][google.cloud.apihub.v1.SearchResourcesRequest.page_size] should be specified with the same value which was used in the previous call. If the other fields are set with a different value than the previous call then `INVALID_ARGUMENT` error is returned.

Google::Cloud::Apihub::V1::ApihubService::ApiHubResource

ApiHubResource is one of the resources such as Api, Operation, Deployment, Definition, Spec and Version resources stored in API-Hub.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Api)

    This represents Api resource in search results. Only name, display_name, description and owner fields are populated in search results.

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ApiOperation)

    This represents ApiOperation resource in search results. Only name, description, spec and details fields are populated in search results.

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Deployment)

    This represents Deployment resource in search results. Only name, display_name, description, deployment_type and api_versions fields are populated in search results.

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Spec)

    This represents Spec resource in search results. Only name, display_name, description, spec_type and documentation fields are populated in search results.

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Definition)

    This represents Definition resource in search results. Only name field is populated in search results.

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Version)

    This represents Version resource in search results. Only name, display_name, description, lifecycle, compliance and accreditation fields are populated in search results.

Google::Cloud::Apihub::V1::ApihubService::SearchResult

Represents the search results.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Apihub::V1::ApihubService::SearchResourcesResponse

Response for the [SearchResources][google.cloud.apihub.v1.ApiHub.SearchResources] method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::ApihubService::SearchResult)

    List of search results according to the filter and search query specified. The order of search results represents the ranking.

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

    Type: String

    Pass this token in the [SearchResourcesRequest][google.cloud.apihub.v1.SearchResourcesRequest] to continue to list results. If all results have been returned, this field is an empty string or not present in the response.

Google::Cloud::Apihub::V1::ApihubService::CreateDependencyRequest

The [CreateDependency][google.cloud.apihub.v1.ApiHubDependencies.CreateDependency] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

    Optional. The ID to use for the dependency resource, which will become the final component of the dependency's resource name. This field is optional. * If provided, the same will be used. The service will throw an error if duplicate id is provided by the client. * 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->dependency() / $msg->dependency($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Dependency)

    Required. The dependency resource to create.

Google::Cloud::Apihub::V1::ApihubService::GetDependencyRequest

The [GetDependency][.ApiHubDependencies.GetDependency] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

Google::Cloud::Apihub::V1::ApihubService::UpdateDependencyRequest

The [UpdateDependency][google.cloud.apihub.v1.ApiHubDependencies.UpdateDependency] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Dependency)

    Required. The dependency resource to update.

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

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

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

    Required. The list of fields to update.

Google::Cloud::Apihub::V1::ApihubService::DeleteDependencyRequest

The [DeleteDependency][google.cloud.apihub.v1.ApiHubDependencies.DeleteDependency] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

Google::Cloud::Apihub::V1::ApihubService::ListDependenciesRequest

The [ListDependencies][google.cloud.apihub.v1.ApiHubDependencies.ListDependencies] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

    Optional. An expression that filters the list of Dependencies.

    A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string. Allowed comparison operator is `=`. Filters are not case sensitive.

    The following fields in the `Dependency` are eligible for filtering:

    * `consumer.operation_resource_name` - The operation resource name for
    the consumer entity involved in a dependency. Allowed comparison
    operators: `=`.
    * `consumer.external_api_resource_name` - The external api resource name
    for the consumer entity involved in a dependency. Allowed comparison
    operators: `=`.
    * `supplier.operation_resource_name` - The operation resource name for
    the supplier entity involved in a dependency. Allowed comparison
    operators: `=`.
    * `supplier.external_api_resource_name` - The external api resource name
    for the supplier entity involved in a dependency. 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.

    For example, `consumer.operation_resource_name = \"projects/p1/locations/global/apis/a1/versions/v1/operations/o1\" OR supplier.operation_resource_name = \"projects/p1/locations/global/apis/a1/versions/v1/operations/o1\"` - The dependencies with either consumer or supplier operation resource name as _projects/p1/locations/global/apis/a1/versions/v1/operations/o1_.

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

    Type: Int32

    Optional. The maximum number of dependency resources to return. The service may return fewer than this value. If unspecified, at most 50 dependencies 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 `ListDependencies` call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to `ListDependencies` must match the call that provided the page token.

Google::Cloud::Apihub::V1::ApihubService::ListDependenciesResponse

The [ListDependencies][google.cloud.apihub.v1.ApiHubDependencies.ListDependencies] method's response.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::Dependency)

    The dependency 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::ApihubService::CreateExternalApiRequest

The [CreateExternalApi][google.cloud.apihub.v1.ApiHub.CreateExternalApi] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

    Optional. The ID to use for the External API resource, which will become the final component of the External API'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 External API 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->external_api() / $msg->external_api($value)

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ExternalApi)

    Required. The External API resource to create.

Google::Cloud::Apihub::V1::ApihubService::GetExternalApiRequest

The [GetExternalApi][google.cloud.apihub.v1.ApiHub.GetExternalApi] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the External API resource to retrieve. Format: `projects/{project}/locations/{location}/externalApis/{externalApi}`

Google::Cloud::Apihub::V1::ApihubService::UpdateExternalApiRequest

The [UpdateExternalApi][google.cloud.apihub.v1.ApiHub.UpdateExternalApi] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ExternalApi)

    Required. The External API resource to update.

    The External API resource's `name` field is used to identify the External API resource to update. Format: `projects/{project}/locations/{location}/externalApis/{externalApi}`

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

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

    Required. The list of fields to update.

Google::Cloud::Apihub::V1::ApihubService::DeleteExternalApiRequest

The [DeleteExternalApi][google.cloud.apihub.v1.ApiHub.DeleteExternalApi] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the External API resource to delete. Format: `projects/{project}/locations/{location}/externalApis/{externalApi}`

Google::Cloud::Apihub::V1::ApihubService::ListExternalApisRequest

The [ListExternalApis][google.cloud.apihub.v1.ApiHub.ListExternalApis] method's request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: Int32

    Optional. The maximum number of External API resources to return. The service may return fewer than this value. If unspecified, at most 50 ExternalApis 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 `ListExternalApis` call. Provide this to retrieve the subsequent page.

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

Google::Cloud::Apihub::V1::ApihubService::ListExternalApisResponse

The [ListExternalApis][google.cloud.apihub.v1.ApiHub.ListExternalApis] method's response.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Apihub::V1::CommonFields::ExternalApi)

    The External API 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.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.