Reference documentation and code samples for the API hub V1 API class Google::Cloud::ApiHub::V1::Addon.
Addon resource.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#boost_spec_gemini_region_id
def boost_spec_gemini_region_id() -> ::String
Returns
-
(::String) — Output only. The Vertex AI region where the BoostSpec Gemini model calls
run for this API Hub instance. Populated only for the SpecGen addon
(
system-spec-generation); other addons leave this field empty.gemini-2.5-flashis not available in every API Hub region, so the effective region may differ from the API Hub instance's own region. The value follows these semantics:"": BoostSpec is disabled in this region (the addon is not SpecGen, or the API Hub instance region has no configured Gemini endpoint or fallback).- Equal to the API Hub instance region: BoostSpec calls run in-region.
- Differs from the API Hub instance region: BoostSpec calls run in the specified fallback region.
Callers rendering this field can derive the three display states from this single field combined with the API Hub instance region.
#config
def config() -> ::Google::Cloud::ApiHub::V1::AddonConfig
Returns
- (::Google::Cloud::ApiHub::V1::AddonConfig) — Required. The configuration of the addon.
#config=
def config=(value) -> ::Google::Cloud::ApiHub::V1::AddonConfig
Parameter
- value (::Google::Cloud::ApiHub::V1::AddonConfig) — Required. The configuration of the addon.
Returns
- (::Google::Cloud::ApiHub::V1::AddonConfig) — Required. The configuration of the addon.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. The time at which the addon was created.
#data_source
def data_source() -> ::Google::Cloud::ApiHub::V1::DataSource
Returns
-
(::Google::Cloud::ApiHub::V1::DataSource) — Required. The data source on which the addon operates. This determines
which field in the
configoneof is used.
#data_source=
def data_source=(value) -> ::Google::Cloud::ApiHub::V1::DataSource
Parameter
-
value (::Google::Cloud::ApiHub::V1::DataSource) — Required. The data source on which the addon operates. This determines
which field in the
configoneof is used.
Returns
-
(::Google::Cloud::ApiHub::V1::DataSource) — Required. The data source on which the addon operates. This determines
which field in the
configoneof is used.
#description
def description() -> ::String
Returns
- (::String) — Optional. The description of the addon.
#description=
def description=(value) -> ::String
Parameter
- value (::String) — Optional. The description of the addon.
Returns
- (::String) — Optional. The description of the addon.
#display_name
def display_name() -> ::String
Returns
- (::String) — Required. The display name of the addon.
#display_name=
def display_name=(value) -> ::String
Parameter
- value (::String) — Required. The display name of the addon.
Returns
- (::String) — Required. The display name of the addon.
#name
def name() -> ::String
Returns
-
(::String) — Identifier. The name of the addon to enable.
Format:
projects/{project}/locations/{location}/addons/{addon}.
#name=
def name=(value) -> ::String
Parameter
-
value (::String) — Identifier. The name of the addon to enable.
Format:
projects/{project}/locations/{location}/addons/{addon}.
Returns
-
(::String) — Identifier. The name of the addon to enable.
Format:
projects/{project}/locations/{location}/addons/{addon}.
#state
def state() -> ::Google::Cloud::ApiHub::V1::AddonState
Returns
- (::Google::Cloud::ApiHub::V1::AddonState) — Output only. The state of the addon.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. The time at which the addon was last updated.