Reference documentation and code samples for the API hub V1 API class Google::Cloud::ApiHub::V1::Plugin.
A plugin resource in the API Hub.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#actions_config
def actions_config() -> ::Array<::Google::Cloud::ApiHub::V1::PluginActionConfig>
- (::Array<::Google::Cloud::ApiHub::V1::PluginActionConfig>) — Optional. The configuration of actions supported by the plugin. REQUIRED: This field must be provided when creating or updating a Plugin. The server will reject requests if this field is missing.
#actions_config=
def actions_config=(value) -> ::Array<::Google::Cloud::ApiHub::V1::PluginActionConfig>
- value (::Array<::Google::Cloud::ApiHub::V1::PluginActionConfig>) — Optional. The configuration of actions supported by the plugin. REQUIRED: This field must be provided when creating or updating a Plugin. The server will reject requests if this field is missing.
- (::Array<::Google::Cloud::ApiHub::V1::PluginActionConfig>) — Optional. The configuration of actions supported by the plugin. REQUIRED: This field must be provided when creating or updating a Plugin. The server will reject requests if this field is missing.
#config_template
def config_template() -> ::Google::Cloud::ApiHub::V1::Plugin::ConfigTemplate
- (::Google::Cloud::ApiHub::V1::Plugin::ConfigTemplate) — Optional. The configuration template for the plugin.
#config_template=
def config_template=(value) -> ::Google::Cloud::ApiHub::V1::Plugin::ConfigTemplate
- value (::Google::Cloud::ApiHub::V1::Plugin::ConfigTemplate) — Optional. The configuration template for the plugin.
- (::Google::Cloud::ApiHub::V1::Plugin::ConfigTemplate) — Optional. The configuration template for the plugin.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. Timestamp indicating when the plugin was created.
#description
def description() -> ::String
- (::String) — Optional. The plugin description. Max length is 2000 characters (Unicode code points).
#description=
def description=(value) -> ::String
- value (::String) — Optional. The plugin description. Max length is 2000 characters (Unicode code points).
- (::String) — Optional. The plugin description. Max length is 2000 characters (Unicode code points).
#display_name
def display_name() -> ::String
- (::String) — Required. The display name of the plugin. Max length is 50 characters (Unicode code points).
#display_name=
def display_name=(value) -> ::String
- value (::String) — Required. The display name of the plugin. Max length is 50 characters (Unicode code points).
- (::String) — Required. The display name of the plugin. Max length is 50 characters (Unicode code points).
#documentation
def documentation() -> ::Google::Cloud::ApiHub::V1::Documentation
- (::Google::Cloud::ApiHub::V1::Documentation) — Optional. The documentation of the plugin, that explains how to set up and use the plugin.
#documentation=
def documentation=(value) -> ::Google::Cloud::ApiHub::V1::Documentation
- value (::Google::Cloud::ApiHub::V1::Documentation) — Optional. The documentation of the plugin, that explains how to set up and use the plugin.
- (::Google::Cloud::ApiHub::V1::Documentation) — Optional. The documentation of the plugin, that explains how to set up and use the plugin.
#gateway_type
def gateway_type() -> ::Google::Cloud::ApiHub::V1::GatewayType
- (::Google::Cloud::ApiHub::V1::GatewayType) — Optional. The type of the gateway.
#gateway_type=
def gateway_type=(value) -> ::Google::Cloud::ApiHub::V1::GatewayType
- value (::Google::Cloud::ApiHub::V1::GatewayType) — Optional. The type of the gateway.
- (::Google::Cloud::ApiHub::V1::GatewayType) — Optional. The type of the gateway.
#hosting_service
def hosting_service() -> ::Google::Cloud::ApiHub::V1::Plugin::HostingService
-
(::Google::Cloud::ApiHub::V1::Plugin::HostingService) — Optional. This field is optional. It is used to notify the plugin hosting
service for any lifecycle changes of the plugin instance and trigger
execution of plugin instance actions in case of API hub managed actions.
This field should be provided if the plugin instance lifecycle of the developed plugin needs to be managed from API hub. Also, in this case the plugin hosting service interface needs to be implemented.
This field should not be provided if the plugin wants to manage plugin instance lifecycle events outside of hub interface and use plugin framework for only registering of plugin and plugin instances to capture the source of data into hub. Note, in this case the plugin hosting service interface is not required to be implemented. Also, the plugin instance lifecycle actions will be disabled from API hub's UI.
#hosting_service=
def hosting_service=(value) -> ::Google::Cloud::ApiHub::V1::Plugin::HostingService
-
value (::Google::Cloud::ApiHub::V1::Plugin::HostingService) — Optional. This field is optional. It is used to notify the plugin hosting
service for any lifecycle changes of the plugin instance and trigger
execution of plugin instance actions in case of API hub managed actions.
This field should be provided if the plugin instance lifecycle of the developed plugin needs to be managed from API hub. Also, in this case the plugin hosting service interface needs to be implemented.
This field should not be provided if the plugin wants to manage plugin instance lifecycle events outside of hub interface and use plugin framework for only registering of plugin and plugin instances to capture the source of data into hub. Note, in this case the plugin hosting service interface is not required to be implemented. Also, the plugin instance lifecycle actions will be disabled from API hub's UI.
-
(::Google::Cloud::ApiHub::V1::Plugin::HostingService) — Optional. This field is optional. It is used to notify the plugin hosting
service for any lifecycle changes of the plugin instance and trigger
execution of plugin instance actions in case of API hub managed actions.
This field should be provided if the plugin instance lifecycle of the developed plugin needs to be managed from API hub. Also, in this case the plugin hosting service interface needs to be implemented.
This field should not be provided if the plugin wants to manage plugin instance lifecycle events outside of hub interface and use plugin framework for only registering of plugin and plugin instances to capture the source of data into hub. Note, in this case the plugin hosting service interface is not required to be implemented. Also, the plugin instance lifecycle actions will be disabled from API hub's UI.
#name
def name() -> ::String
-
(::String) — Identifier. The name of the plugin.
Format:
projects/{project}/locations/{location}/plugins/{plugin}
#name=
def name=(value) -> ::String
-
value (::String) — Identifier. The name of the plugin.
Format:
projects/{project}/locations/{location}/plugins/{plugin}
-
(::String) — Identifier. The name of the plugin.
Format:
projects/{project}/locations/{location}/plugins/{plugin}
#ownership_type
def ownership_type() -> ::Google::Cloud::ApiHub::V1::Plugin::OwnershipType
- (::Google::Cloud::ApiHub::V1::Plugin::OwnershipType) — Output only. The type of the plugin, indicating whether it is 'SYSTEM_OWNED' or 'USER_OWNED'.
#plugin_category
def plugin_category() -> ::Google::Cloud::ApiHub::V1::PluginCategory
- (::Google::Cloud::ApiHub::V1::PluginCategory) — Optional. The category of the plugin, identifying its primary category or purpose. This field is required for all plugins.
#plugin_category=
def plugin_category=(value) -> ::Google::Cloud::ApiHub::V1::PluginCategory
- value (::Google::Cloud::ApiHub::V1::PluginCategory) — Optional. The category of the plugin, identifying its primary category or purpose. This field is required for all plugins.
- (::Google::Cloud::ApiHub::V1::PluginCategory) — Optional. The category of the plugin, identifying its primary category or purpose. This field is required for all plugins.
#state
def state() -> ::Google::Cloud::ApiHub::V1::Plugin::State
- (::Google::Cloud::ApiHub::V1::Plugin::State) — Output only. Represents the state of the plugin. Note this field will not be set for plugins developed via plugin framework as the state will be managed at plugin instance level.
#type
def type() -> ::Google::Cloud::ApiHub::V1::AttributeValues
-
(::Google::Cloud::ApiHub::V1::AttributeValues) — Optional. The type of the API.
This maps to the following system defined attribute:
projects/{project}/locations/{location}/attributes/system-plugin-type
attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute. Note this field is not required for plugins developed via plugin framework.
#type=
def type=(value) -> ::Google::Cloud::ApiHub::V1::AttributeValues
-
value (::Google::Cloud::ApiHub::V1::AttributeValues) — Optional. The type of the API.
This maps to the following system defined attribute:
projects/{project}/locations/{location}/attributes/system-plugin-type
attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute. Note this field is not required for plugins developed via plugin framework.
-
(::Google::Cloud::ApiHub::V1::AttributeValues) — Optional. The type of the API.
This maps to the following system defined attribute:
projects/{project}/locations/{location}/attributes/system-plugin-type
attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute. Note this field is not required for plugins developed via plugin framework.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. Timestamp indicating when the plugin was last updated.