Reference documentation and code samples for the Google Cloud Api Hub V1 Client class Plugin.
A plugin resource in the API Hub.
Generated from protobuf message google.cloud.apihub.v1.Plugin
Namespace
Google \ Cloud \ ApiHub \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The name of the plugin. Format: projects/{project}/locations/{location}/plugins/{plugin}
↳ display_name
string
Required. The display name of the plugin. Max length is 50 characters (Unicode code points).
↳ type
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.
↳ description
string
Optional. The plugin description. Max length is 2000 characters (Unicode code points).
↳ state
int
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.
↳ ownership_type
int
Output only. The type of the plugin, indicating whether it is 'SYSTEM_OWNED' or 'USER_OWNED'.
↳ hosting_service
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.
↳ actions_config
array< 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.
↳ documentation
Documentation
Optional. The documentation of the plugin, that explains how to set up and use the plugin.
↳ plugin_category
int
Optional. The category of the plugin, identifying its primary category or purpose. This field is required for all plugins.
↳ config_template
↳ create_time
↳ update_time
↳ gateway_type
int
Optional. The type of the gateway.
getName
Identifier. The name of the plugin.
Format: projects/{project}/locations/{location}/plugins/{plugin}
string
setName
Identifier. The name of the plugin.
Format: projects/{project}/locations/{location}/plugins/{plugin}
var
string
$this
getDisplayName
Required. The display name of the plugin. Max length is 50 characters (Unicode code points).
string
setDisplayName
Required. The display name of the plugin. Max length is 50 characters (Unicode code points).
var
string
$this
getType
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.
hasType
clearType
setType
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.
$this
getDescription
Optional. The plugin description. Max length is 2000 characters (Unicode code points).
string
setDescription
Optional. The plugin description. Max length is 2000 characters (Unicode code points).
var
string
$this
getState
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.
setState
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.
$this
getOwnershipType
Output only. The type of the plugin, indicating whether it is 'SYSTEM_OWNED' or 'USER_OWNED'.
setOwnershipType
Output only. The type of the plugin, indicating whether it is 'SYSTEM_OWNED' or 'USER_OWNED'.
$this
getHostingService
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.
hasHostingService
clearHostingService
setHostingService
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.
$this
getActionsConfig
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.
setActionsConfig
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.
$this
getDocumentation
Optional. The documentation of the plugin, that explains how to set up and use the plugin.
hasDocumentation
clearDocumentation
setDocumentation
Optional. The documentation of the plugin, that explains how to set up and use the plugin.
$this
getPluginCategory
Optional. The category of the plugin, identifying its primary category or purpose. This field is required for all plugins.
setPluginCategory
Optional. The category of the plugin, identifying its primary category or purpose. This field is required for all plugins.
$this
getConfigTemplate
Optional. The configuration template for the plugin.
hasConfigTemplate
clearConfigTemplate
setConfigTemplate
Optional. The configuration template for the plugin.
$this
getCreateTime
Output only. Timestamp indicating when the plugin was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Timestamp indicating when the plugin was created.
$this
getUpdateTime
Output only. Timestamp indicating when the plugin was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Timestamp indicating when the plugin was last updated.
$this
getGatewayType
Optional. The type of the gateway.
setGatewayType
Optional. The type of the gateway.
$this

