Constants
ApiHub_CreateApi_FullMethodName, ApiHub_GetApi_FullMethodName, ApiHub_ListApis_FullMethodName, ApiHub_UpdateApi_FullMethodName, ApiHub_DeleteApi_FullMethodName, ApiHub_CreateVersion_FullMethodName, ApiHub_GetVersion_FullMethodName, ApiHub_ListVersions_FullMethodName, ApiHub_UpdateVersion_FullMethodName, ApiHub_DeleteVersion_FullMethodName, ApiHub_CreateSpec_FullMethodName, ApiHub_GetSpec_FullMethodName, ApiHub_GetSpecContents_FullMethodName, ApiHub_ListSpecs_FullMethodName, ApiHub_UpdateSpec_FullMethodName, ApiHub_DeleteSpec_FullMethodName, ApiHub_CreateApiOperation_FullMethodName, ApiHub_GetApiOperation_FullMethodName, ApiHub_ListApiOperations_FullMethodName, ApiHub_UpdateApiOperation_FullMethodName, ApiHub_DeleteApiOperation_FullMethodName, ApiHub_GetDefinition_FullMethodName, ApiHub_CreateDeployment_FullMethodName, ApiHub_GetDeployment_FullMethodName, ApiHub_ListDeployments_FullMethodName, ApiHub_UpdateDeployment_FullMethodName, ApiHub_DeleteDeployment_FullMethodName, ApiHub_CreateAttribute_FullMethodName, ApiHub_GetAttribute_FullMethodName, ApiHub_UpdateAttribute_FullMethodName, ApiHub_DeleteAttribute_FullMethodName, ApiHub_ListAttributes_FullMethodName, ApiHub_SearchResources_FullMethodName, ApiHub_CreateExternalApi_FullMethodName, ApiHub_GetExternalApi_FullMethodName, ApiHub_UpdateExternalApi_FullMethodName, ApiHub_DeleteExternalApi_FullMethodName, ApiHub_ListExternalApis_FullMethodName
const (
ApiHub_CreateApi_FullMethodName = "/google.cloud.apihub.v1.ApiHub/CreateApi"
ApiHub_GetApi_FullMethodName = "/google.cloud.apihub.v1.ApiHub/GetApi"
ApiHub_ListApis_FullMethodName = "/google.cloud.apihub.v1.ApiHub/ListApis"
ApiHub_UpdateApi_FullMethodName = "/google.cloud.apihub.v1.ApiHub/UpdateApi"
ApiHub_DeleteApi_FullMethodName = "/google.cloud.apihub.v1.ApiHub/DeleteApi"
ApiHub_CreateVersion_FullMethodName = "/google.cloud.apihub.v1.ApiHub/CreateVersion"
ApiHub_GetVersion_FullMethodName = "/google.cloud.apihub.v1.ApiHub/GetVersion"
ApiHub_ListVersions_FullMethodName = "/google.cloud.apihub.v1.ApiHub/ListVersions"
ApiHub_UpdateVersion_FullMethodName = "/google.cloud.apihub.v1.ApiHub/UpdateVersion"
ApiHub_DeleteVersion_FullMethodName = "/google.cloud.apihub.v1.ApiHub/DeleteVersion"
ApiHub_CreateSpec_FullMethodName = "/google.cloud.apihub.v1.ApiHub/CreateSpec"
ApiHub_GetSpec_FullMethodName = "/google.cloud.apihub.v1.ApiHub/GetSpec"
ApiHub_GetSpecContents_FullMethodName = "/google.cloud.apihub.v1.ApiHub/GetSpecContents"
ApiHub_ListSpecs_FullMethodName = "/google.cloud.apihub.v1.ApiHub/ListSpecs"
ApiHub_UpdateSpec_FullMethodName = "/google.cloud.apihub.v1.ApiHub/UpdateSpec"
ApiHub_DeleteSpec_FullMethodName = "/google.cloud.apihub.v1.ApiHub/DeleteSpec"
ApiHub_CreateApiOperation_FullMethodName = "/google.cloud.apihub.v1.ApiHub/CreateApiOperation"
ApiHub_GetApiOperation_FullMethodName = "/google.cloud.apihub.v1.ApiHub/GetApiOperation"
ApiHub_ListApiOperations_FullMethodName = "/google.cloud.apihub.v1.ApiHub/ListApiOperations"
ApiHub_UpdateApiOperation_FullMethodName = "/google.cloud.apihub.v1.ApiHub/UpdateApiOperation"
ApiHub_DeleteApiOperation_FullMethodName = "/google.cloud.apihub.v1.ApiHub/DeleteApiOperation"
ApiHub_GetDefinition_FullMethodName = "/google.cloud.apihub.v1.ApiHub/GetDefinition"
ApiHub_CreateDeployment_FullMethodName = "/google.cloud.apihub.v1.ApiHub/CreateDeployment"
ApiHub_GetDeployment_FullMethodName = "/google.cloud.apihub.v1.ApiHub/GetDeployment"
ApiHub_ListDeployments_FullMethodName = "/google.cloud.apihub.v1.ApiHub/ListDeployments"
ApiHub_UpdateDeployment_FullMethodName = "/google.cloud.apihub.v1.ApiHub/UpdateDeployment"
ApiHub_DeleteDeployment_FullMethodName = "/google.cloud.apihub.v1.ApiHub/DeleteDeployment"
ApiHub_CreateAttribute_FullMethodName = "/google.cloud.apihub.v1.ApiHub/CreateAttribute"
ApiHub_GetAttribute_FullMethodName = "/google.cloud.apihub.v1.ApiHub/GetAttribute"
ApiHub_UpdateAttribute_FullMethodName = "/google.cloud.apihub.v1.ApiHub/UpdateAttribute"
ApiHub_DeleteAttribute_FullMethodName = "/google.cloud.apihub.v1.ApiHub/DeleteAttribute"
ApiHub_ListAttributes_FullMethodName = "/google.cloud.apihub.v1.ApiHub/ListAttributes"
ApiHub_SearchResources_FullMethodName = "/google.cloud.apihub.v1.ApiHub/SearchResources"
ApiHub_CreateExternalApi_FullMethodName = "/google.cloud.apihub.v1.ApiHub/CreateExternalApi"
ApiHub_GetExternalApi_FullMethodName = "/google.cloud.apihub.v1.ApiHub/GetExternalApi"
ApiHub_UpdateExternalApi_FullMethodName = "/google.cloud.apihub.v1.ApiHub/UpdateExternalApi"
ApiHub_DeleteExternalApi_FullMethodName = "/google.cloud.apihub.v1.ApiHub/DeleteExternalApi"
ApiHub_ListExternalApis_FullMethodName = "/google.cloud.apihub.v1.ApiHub/ListExternalApis"
)ApiHubDependencies_CreateDependency_FullMethodName, ApiHubDependencies_GetDependency_FullMethodName, ApiHubDependencies_UpdateDependency_FullMethodName, ApiHubDependencies_DeleteDependency_FullMethodName, ApiHubDependencies_ListDependencies_FullMethodName
const (
ApiHubDependencies_CreateDependency_FullMethodName = "/google.cloud.apihub.v1.ApiHubDependencies/CreateDependency"
ApiHubDependencies_GetDependency_FullMethodName = "/google.cloud.apihub.v1.ApiHubDependencies/GetDependency"
ApiHubDependencies_UpdateDependency_FullMethodName = "/google.cloud.apihub.v1.ApiHubDependencies/UpdateDependency"
ApiHubDependencies_DeleteDependency_FullMethodName = "/google.cloud.apihub.v1.ApiHubDependencies/DeleteDependency"
ApiHubDependencies_ListDependencies_FullMethodName = "/google.cloud.apihub.v1.ApiHubDependencies/ListDependencies"
)ApiHubCurate_CreateCuration_FullMethodName, ApiHubCurate_GetCuration_FullMethodName, ApiHubCurate_ListCurations_FullMethodName, ApiHubCurate_UpdateCuration_FullMethodName, ApiHubCurate_DeleteCuration_FullMethodName
const (
ApiHubCurate_CreateCuration_FullMethodName = "/google.cloud.apihub.v1.ApiHubCurate/CreateCuration"
ApiHubCurate_GetCuration_FullMethodName = "/google.cloud.apihub.v1.ApiHubCurate/GetCuration"
ApiHubCurate_ListCurations_FullMethodName = "/google.cloud.apihub.v1.ApiHubCurate/ListCurations"
ApiHubCurate_UpdateCuration_FullMethodName = "/google.cloud.apihub.v1.ApiHubCurate/UpdateCuration"
ApiHubCurate_DeleteCuration_FullMethodName = "/google.cloud.apihub.v1.ApiHubCurate/DeleteCuration"
)ApiHubDiscovery_ListDiscoveredApiObservations_FullMethodName, ApiHubDiscovery_GetDiscoveredApiObservation_FullMethodName, ApiHubDiscovery_ListDiscoveredApiOperations_FullMethodName, ApiHubDiscovery_GetDiscoveredApiOperation_FullMethodName
const (
ApiHubDiscovery_ListDiscoveredApiObservations_FullMethodName = "/google.cloud.apihub.v1.ApiHubDiscovery/ListDiscoveredApiObservations"
ApiHubDiscovery_GetDiscoveredApiObservation_FullMethodName = "/google.cloud.apihub.v1.ApiHubDiscovery/GetDiscoveredApiObservation"
ApiHubDiscovery_ListDiscoveredApiOperations_FullMethodName = "/google.cloud.apihub.v1.ApiHubDiscovery/ListDiscoveredApiOperations"
ApiHubDiscovery_GetDiscoveredApiOperation_FullMethodName = "/google.cloud.apihub.v1.ApiHubDiscovery/GetDiscoveredApiOperation"
)HostProjectRegistrationService_CreateHostProjectRegistration_FullMethodName, HostProjectRegistrationService_GetHostProjectRegistration_FullMethodName, HostProjectRegistrationService_ListHostProjectRegistrations_FullMethodName
const (
HostProjectRegistrationService_CreateHostProjectRegistration_FullMethodName = "/google.cloud.apihub.v1.HostProjectRegistrationService/CreateHostProjectRegistration"
HostProjectRegistrationService_GetHostProjectRegistration_FullMethodName = "/google.cloud.apihub.v1.HostProjectRegistrationService/GetHostProjectRegistration"
HostProjectRegistrationService_ListHostProjectRegistrations_FullMethodName = "/google.cloud.apihub.v1.HostProjectRegistrationService/ListHostProjectRegistrations"
)LintingService_GetStyleGuide_FullMethodName, LintingService_UpdateStyleGuide_FullMethodName, LintingService_GetStyleGuideContents_FullMethodName, LintingService_LintSpec_FullMethodName
const (
LintingService_GetStyleGuide_FullMethodName = "/google.cloud.apihub.v1.LintingService/GetStyleGuide"
LintingService_UpdateStyleGuide_FullMethodName = "/google.cloud.apihub.v1.LintingService/UpdateStyleGuide"
LintingService_GetStyleGuideContents_FullMethodName = "/google.cloud.apihub.v1.LintingService/GetStyleGuideContents"
LintingService_LintSpec_FullMethodName = "/google.cloud.apihub.v1.LintingService/LintSpec"
)ApiHubPlugin_GetPlugin_FullMethodName, ApiHubPlugin_EnablePlugin_FullMethodName, ApiHubPlugin_DisablePlugin_FullMethodName, ApiHubPlugin_CreatePlugin_FullMethodName, ApiHubPlugin_ListPlugins_FullMethodName, ApiHubPlugin_DeletePlugin_FullMethodName, ApiHubPlugin_CreatePluginInstance_FullMethodName, ApiHubPlugin_ExecutePluginInstanceAction_FullMethodName, ApiHubPlugin_GetPluginInstance_FullMethodName, ApiHubPlugin_ListPluginInstances_FullMethodName, ApiHubPlugin_EnablePluginInstanceAction_FullMethodName, ApiHubPlugin_DisablePluginInstanceAction_FullMethodName, ApiHubPlugin_UpdatePluginInstance_FullMethodName, ApiHubPlugin_DeletePluginInstance_FullMethodName
const (
ApiHubPlugin_GetPlugin_FullMethodName = "/google.cloud.apihub.v1.ApiHubPlugin/GetPlugin"
ApiHubPlugin_EnablePlugin_FullMethodName = "/google.cloud.apihub.v1.ApiHubPlugin/EnablePlugin"
ApiHubPlugin_DisablePlugin_FullMethodName = "/google.cloud.apihub.v1.ApiHubPlugin/DisablePlugin"
ApiHubPlugin_CreatePlugin_FullMethodName = "/google.cloud.apihub.v1.ApiHubPlugin/CreatePlugin"
ApiHubPlugin_ListPlugins_FullMethodName = "/google.cloud.apihub.v1.ApiHubPlugin/ListPlugins"
ApiHubPlugin_DeletePlugin_FullMethodName = "/google.cloud.apihub.v1.ApiHubPlugin/DeletePlugin"
ApiHubPlugin_CreatePluginInstance_FullMethodName = "/google.cloud.apihub.v1.ApiHubPlugin/CreatePluginInstance"
ApiHubPlugin_ExecutePluginInstanceAction_FullMethodName = "/google.cloud.apihub.v1.ApiHubPlugin/ExecutePluginInstanceAction"
ApiHubPlugin_GetPluginInstance_FullMethodName = "/google.cloud.apihub.v1.ApiHubPlugin/GetPluginInstance"
ApiHubPlugin_ListPluginInstances_FullMethodName = "/google.cloud.apihub.v1.ApiHubPlugin/ListPluginInstances"
ApiHubPlugin_EnablePluginInstanceAction_FullMethodName = "/google.cloud.apihub.v1.ApiHubPlugin/EnablePluginInstanceAction"
ApiHubPlugin_DisablePluginInstanceAction_FullMethodName = "/google.cloud.apihub.v1.ApiHubPlugin/DisablePluginInstanceAction"
ApiHubPlugin_UpdatePluginInstance_FullMethodName = "/google.cloud.apihub.v1.ApiHubPlugin/UpdatePluginInstance"
ApiHubPlugin_DeletePluginInstance_FullMethodName = "/google.cloud.apihub.v1.ApiHubPlugin/DeletePluginInstance"
)Provisioning_CreateApiHubInstance_FullMethodName, Provisioning_DeleteApiHubInstance_FullMethodName, Provisioning_GetApiHubInstance_FullMethodName, Provisioning_LookupApiHubInstance_FullMethodName
const (
Provisioning_CreateApiHubInstance_FullMethodName = "/google.cloud.apihub.v1.Provisioning/CreateApiHubInstance"
Provisioning_DeleteApiHubInstance_FullMethodName = "/google.cloud.apihub.v1.Provisioning/DeleteApiHubInstance"
Provisioning_GetApiHubInstance_FullMethodName = "/google.cloud.apihub.v1.Provisioning/GetApiHubInstance"
Provisioning_LookupApiHubInstance_FullMethodName = "/google.cloud.apihub.v1.Provisioning/LookupApiHubInstance"
)RuntimeProjectAttachmentService_CreateRuntimeProjectAttachment_FullMethodName, RuntimeProjectAttachmentService_GetRuntimeProjectAttachment_FullMethodName, RuntimeProjectAttachmentService_ListRuntimeProjectAttachments_FullMethodName, RuntimeProjectAttachmentService_DeleteRuntimeProjectAttachment_FullMethodName, RuntimeProjectAttachmentService_LookupRuntimeProjectAttachment_FullMethodName
const (
RuntimeProjectAttachmentService_CreateRuntimeProjectAttachment_FullMethodName = "/google.cloud.apihub.v1.RuntimeProjectAttachmentService/CreateRuntimeProjectAttachment"
RuntimeProjectAttachmentService_GetRuntimeProjectAttachment_FullMethodName = "/google.cloud.apihub.v1.RuntimeProjectAttachmentService/GetRuntimeProjectAttachment"
RuntimeProjectAttachmentService_ListRuntimeProjectAttachments_FullMethodName = "/google.cloud.apihub.v1.RuntimeProjectAttachmentService/ListRuntimeProjectAttachments"
RuntimeProjectAttachmentService_DeleteRuntimeProjectAttachment_FullMethodName = "/google.cloud.apihub.v1.RuntimeProjectAttachmentService/DeleteRuntimeProjectAttachment"
RuntimeProjectAttachmentService_LookupRuntimeProjectAttachment_FullMethodName = "/google.cloud.apihub.v1.RuntimeProjectAttachmentService/LookupRuntimeProjectAttachment"
)ApiHubCollect_CollectApiData_FullMethodName
const (
ApiHubCollect_CollectApiData_FullMethodName = "/google.cloud.apihub.v1.ApiHubCollect/CollectApiData"
)Variables
CollectionType_name, CollectionType_value
var (
CollectionType_name = map[int32]string{
0: "COLLECTION_TYPE_UNSPECIFIED",
1: "COLLECTION_TYPE_UPSERT",
2: "COLLECTION_TYPE_DELETE",
}
CollectionType_value = map[string]int32{
"COLLECTION_TYPE_UNSPECIFIED": 0,
"COLLECTION_TYPE_UPSERT": 1,
"COLLECTION_TYPE_DELETE": 2,
}
)Enum value maps for CollectionType.
LintState_name, LintState_value
var (
LintState_name = map[int32]string{
0: "LINT_STATE_UNSPECIFIED",
1: "LINT_STATE_SUCCESS",
2: "LINT_STATE_ERROR",
}
LintState_value = map[string]int32{
"LINT_STATE_UNSPECIFIED": 0,
"LINT_STATE_SUCCESS": 1,
"LINT_STATE_ERROR": 2,
}
)Enum value maps for LintState.
Linter_name, Linter_value
var (
Linter_name = map[int32]string{
0: "LINTER_UNSPECIFIED",
1: "SPECTRAL",
2: "OTHER",
}
Linter_value = map[string]int32{
"LINTER_UNSPECIFIED": 0,
"SPECTRAL": 1,
"OTHER": 2,
}
)Enum value maps for Linter.
Severity_name, Severity_value
var (
Severity_name = map[int32]string{
0: "SEVERITY_UNSPECIFIED",
1: "SEVERITY_ERROR",
2: "SEVERITY_WARNING",
3: "SEVERITY_INFO",
4: "SEVERITY_HINT",
}
Severity_value = map[string]int32{
"SEVERITY_UNSPECIFIED": 0,
"SEVERITY_ERROR": 1,
"SEVERITY_WARNING": 2,
"SEVERITY_INFO": 3,
"SEVERITY_HINT": 4,
}
)Enum value maps for Severity.
AuthType_name, AuthType_value
var (
AuthType_name = map[int32]string{
0: "AUTH_TYPE_UNSPECIFIED",
1: "NO_AUTH",
2: "GOOGLE_SERVICE_ACCOUNT",
3: "USER_PASSWORD",
4: "API_KEY",
5: "OAUTH2_CLIENT_CREDENTIALS",
}
AuthType_value = map[string]int32{
"AUTH_TYPE_UNSPECIFIED": 0,
"NO_AUTH": 1,
"GOOGLE_SERVICE_ACCOUNT": 2,
"USER_PASSWORD": 3,
"API_KEY": 4,
"OAUTH2_CLIENT_CREDENTIALS": 5,
}
)Enum value maps for AuthType.
PluginCategory_name, PluginCategory_value
var (
PluginCategory_name = map[int32]string{
0: "PLUGIN_CATEGORY_UNSPECIFIED",
1: "API_GATEWAY",
2: "API_PRODUCER",
}
PluginCategory_value = map[string]int32{
"PLUGIN_CATEGORY_UNSPECIFIED": 0,
"API_GATEWAY": 1,
"API_PRODUCER": 2,
}
)Enum value maps for PluginCategory.
Spec_ParsingMode_name, Spec_ParsingMode_value
var (
Spec_ParsingMode_name = map[int32]string{
0: "PARSING_MODE_UNSPECIFIED",
1: "RELAXED",
2: "STRICT",
}
Spec_ParsingMode_value = map[string]int32{
"PARSING_MODE_UNSPECIFIED": 0,
"RELAXED": 1,
"STRICT": 2,
}
)Enum value maps for Spec_ParsingMode.
Definition_Type_name, Definition_Type_value
var (
Definition_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "SCHEMA",
}
Definition_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"SCHEMA": 1,
}
)Enum value maps for Definition_Type.
Attribute_DefinitionType_name, Attribute_DefinitionType_value
var (
Attribute_DefinitionType_name = map[int32]string{
0: "DEFINITION_TYPE_UNSPECIFIED",
1: "SYSTEM_DEFINED",
2: "USER_DEFINED",
}
Attribute_DefinitionType_value = map[string]int32{
"DEFINITION_TYPE_UNSPECIFIED": 0,
"SYSTEM_DEFINED": 1,
"USER_DEFINED": 2,
}
)Enum value maps for Attribute_DefinitionType.
Attribute_Scope_name, Attribute_Scope_value
var (
Attribute_Scope_name = map[int32]string{
0: "SCOPE_UNSPECIFIED",
1: "API",
2: "VERSION",
3: "SPEC",
4: "API_OPERATION",
5: "DEPLOYMENT",
6: "DEPENDENCY",
7: "DEFINITION",
8: "EXTERNAL_API",
9: "PLUGIN",
}
Attribute_Scope_value = map[string]int32{
"SCOPE_UNSPECIFIED": 0,
"API": 1,
"VERSION": 2,
"SPEC": 3,
"API_OPERATION": 4,
"DEPLOYMENT": 5,
"DEPENDENCY": 6,
"DEFINITION": 7,
"EXTERNAL_API": 8,
"PLUGIN": 9,
}
)Enum value maps for Attribute_Scope.
Attribute_DataType_name, Attribute_DataType_value
var (
Attribute_DataType_name = map[int32]string{
0: "DATA_TYPE_UNSPECIFIED",
1: "ENUM",
2: "JSON",
3: "STRING",
4: "URI",
}
Attribute_DataType_value = map[string]int32{
"DATA_TYPE_UNSPECIFIED": 0,
"ENUM": 1,
"JSON": 2,
"STRING": 3,
"URI": 4,
}
)Enum value maps for Attribute_DataType.
OpenApiSpecDetails_Format_name, OpenApiSpecDetails_Format_value
var (
OpenApiSpecDetails_Format_name = map[int32]string{
0: "FORMAT_UNSPECIFIED",
1: "OPEN_API_SPEC_2_0",
2: "OPEN_API_SPEC_3_0",
3: "OPEN_API_SPEC_3_1",
}
OpenApiSpecDetails_Format_value = map[string]int32{
"FORMAT_UNSPECIFIED": 0,
"OPEN_API_SPEC_2_0": 1,
"OPEN_API_SPEC_3_0": 2,
"OPEN_API_SPEC_3_1": 3,
}
)Enum value maps for OpenApiSpecDetails_Format.
HttpOperation_Method_name, HttpOperation_Method_value
var (
HttpOperation_Method_name = map[int32]string{
0: "METHOD_UNSPECIFIED",
1: "GET",
2: "PUT",
3: "POST",
4: "DELETE",
5: "OPTIONS",
6: "HEAD",
7: "PATCH",
8: "TRACE",
}
HttpOperation_Method_value = map[string]int32{
"METHOD_UNSPECIFIED": 0,
"GET": 1,
"PUT": 2,
"POST": 3,
"DELETE": 4,
"OPTIONS": 5,
"HEAD": 6,
"PATCH": 7,
"TRACE": 8,
}
)Enum value maps for HttpOperation_Method.
Dependency_State_name, Dependency_State_value
var (
Dependency_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "PROPOSED",
2: "VALIDATED",
}
Dependency_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"PROPOSED": 1,
"VALIDATED": 2,
}
)Enum value maps for Dependency_State.
Dependency_DiscoveryMode_name, Dependency_DiscoveryMode_value
var (
Dependency_DiscoveryMode_name = map[int32]string{
0: "DISCOVERY_MODE_UNSPECIFIED",
1: "MANUAL",
}
Dependency_DiscoveryMode_value = map[string]int32{
"DISCOVERY_MODE_UNSPECIFIED": 0,
"MANUAL": 1,
}
)Enum value maps for Dependency_DiscoveryMode.
DependencyErrorDetail_Error_name, DependencyErrorDetail_Error_value
var (
DependencyErrorDetail_Error_name = map[int32]string{
0: "ERROR_UNSPECIFIED",
1: "SUPPLIER_NOT_FOUND",
2: "SUPPLIER_RECREATED",
}
DependencyErrorDetail_Error_value = map[string]int32{
"ERROR_UNSPECIFIED": 0,
"SUPPLIER_NOT_FOUND": 1,
"SUPPLIER_RECREATED": 2,
}
)Enum value maps for DependencyErrorDetail_Error.
ApiHubInstance_State_name, ApiHubInstance_State_value
var (
ApiHubInstance_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "INACTIVE",
2: "CREATING",
3: "ACTIVE",
4: "UPDATING",
5: "DELETING",
6: "FAILED",
}
ApiHubInstance_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"INACTIVE": 1,
"CREATING": 2,
"ACTIVE": 3,
"UPDATING": 4,
"DELETING": 5,
"FAILED": 6,
}
)Enum value maps for ApiHubInstance_State.
ApiHubInstance_Config_EncryptionType_name, ApiHubInstance_Config_EncryptionType_value
var (
ApiHubInstance_Config_EncryptionType_name = map[int32]string{
0: "ENCRYPTION_TYPE_UNSPECIFIED",
1: "GMEK",
2: "CMEK",
}
ApiHubInstance_Config_EncryptionType_value = map[string]int32{
"ENCRYPTION_TYPE_UNSPECIFIED": 0,
"GMEK": 1,
"CMEK": 2,
}
)Enum value maps for ApiHubInstance_Config_EncryptionType.
ConfigVariableTemplate_ValueType_name, ConfigVariableTemplate_ValueType_value
var (
ConfigVariableTemplate_ValueType_name = map[int32]string{
0: "VALUE_TYPE_UNSPECIFIED",
1: "STRING",
2: "INT",
3: "BOOL",
4: "SECRET",
5: "ENUM",
6: "MULTI_SELECT",
7: "MULTI_STRING",
8: "MULTI_INT",
}
ConfigVariableTemplate_ValueType_value = map[string]int32{
"VALUE_TYPE_UNSPECIFIED": 0,
"STRING": 1,
"INT": 2,
"BOOL": 3,
"SECRET": 4,
"ENUM": 5,
"MULTI_SELECT": 6,
"MULTI_STRING": 7,
"MULTI_INT": 8,
}
)Enum value maps for ConfigVariableTemplate_ValueType.
AuthConfig_ApiKeyConfig_HttpElementLocation_name, AuthConfig_ApiKeyConfig_HttpElementLocation_value
var (
AuthConfig_ApiKeyConfig_HttpElementLocation_name = map[int32]string{
0: "HTTP_ELEMENT_LOCATION_UNSPECIFIED",
1: "QUERY",
2: "HEADER",
3: "PATH",
4: "BODY",
5: "COOKIE",
}
AuthConfig_ApiKeyConfig_HttpElementLocation_value = map[string]int32{
"HTTP_ELEMENT_LOCATION_UNSPECIFIED": 0,
"QUERY": 1,
"HEADER": 2,
"PATH": 3,
"BODY": 4,
"COOKIE": 5,
}
)Enum value maps for AuthConfig_ApiKeyConfig_HttpElementLocation.
SourceMetadata_SourceType_name, SourceMetadata_SourceType_value
var (
SourceMetadata_SourceType_name = map[int32]string{
0: "SOURCE_TYPE_UNSPECIFIED",
1: "PLUGIN",
}
SourceMetadata_SourceType_value = map[string]int32{
"SOURCE_TYPE_UNSPECIFIED": 0,
"PLUGIN": 1,
}
)Enum value maps for SourceMetadata_SourceType.
DiscoveredApiObservation_Style_name, DiscoveredApiObservation_Style_value
var (
DiscoveredApiObservation_Style_name = map[int32]string{
0: "STYLE_UNSPECIFIED",
1: "REST",
2: "GRPC",
3: "GRAPHQL",
}
DiscoveredApiObservation_Style_value = map[string]int32{
"STYLE_UNSPECIFIED": 0,
"REST": 1,
"GRPC": 2,
"GRAPHQL": 3,
}
)Enum value maps for DiscoveredApiObservation_Style.
DiscoveredApiObservation_SourceType_name, DiscoveredApiObservation_SourceType_value
var (
DiscoveredApiObservation_SourceType_name = map[int32]string{
0: "SOURCE_TYPE_UNSPECIFIED",
1: "GCP_XLB",
2: "GCP_ILB",
}
DiscoveredApiObservation_SourceType_value = map[string]int32{
"SOURCE_TYPE_UNSPECIFIED": 0,
"GCP_XLB": 1,
"GCP_ILB": 2,
}
)Enum value maps for DiscoveredApiObservation_SourceType.
DiscoveredApiOperation_Classification_name, DiscoveredApiOperation_Classification_value
var (
DiscoveredApiOperation_Classification_name = map[int32]string{
0: "CLASSIFICATION_UNSPECIFIED",
1: "KNOWN",
2: "UNKNOWN",
}
DiscoveredApiOperation_Classification_value = map[string]int32{
"CLASSIFICATION_UNSPECIFIED": 0,
"KNOWN": 1,
"UNKNOWN": 2,
}
)Enum value maps for DiscoveredApiOperation_Classification.
HttpOperationDetails_DataType_name, HttpOperationDetails_DataType_value
var (
HttpOperationDetails_DataType_name = map[int32]string{
0: "DATA_TYPE_UNSPECIFIED",
1: "BOOL",
2: "INTEGER",
3: "FLOAT",
4: "STRING",
5: "UUID",
}
HttpOperationDetails_DataType_value = map[string]int32{
"DATA_TYPE_UNSPECIFIED": 0,
"BOOL": 1,
"INTEGER": 2,
"FLOAT": 3,
"STRING": 4,
"UUID": 5,
}
)Enum value maps for HttpOperationDetails_DataType.
Curation_LastExecutionState_name, Curation_LastExecutionState_value
var (
Curation_LastExecutionState_name = map[int32]string{
0: "LAST_EXECUTION_STATE_UNSPECIFIED",
1: "SUCCEEDED",
2: "FAILED",
}
Curation_LastExecutionState_value = map[string]int32{
"LAST_EXECUTION_STATE_UNSPECIFIED": 0,
"SUCCEEDED": 1,
"FAILED": 2,
}
)Enum value maps for Curation_LastExecutionState.
Curation_ErrorCode_name, Curation_ErrorCode_value
var (
Curation_ErrorCode_name = map[int32]string{
0: "ERROR_CODE_UNSPECIFIED",
1: "INTERNAL_ERROR",
2: "UNAUTHORIZED",
}
Curation_ErrorCode_value = map[string]int32{
"ERROR_CODE_UNSPECIFIED": 0,
"INTERNAL_ERROR": 1,
"UNAUTHORIZED": 2,
}
)Enum value maps for Curation_ErrorCode.
ActionType_name, ActionType_value
var (
ActionType_name = map[int32]string{
0: "ACTION_TYPE_UNSPECIFIED",
1: "SYNC_METADATA",
2: "SYNC_RUNTIME_DATA",
}
ActionType_value = map[string]int32{
"ACTION_TYPE_UNSPECIFIED": 0,
"SYNC_METADATA": 1,
"SYNC_RUNTIME_DATA": 2,
}
)Enum value maps for ActionType.
GatewayType_name, GatewayType_value
var (
GatewayType_name = map[int32]string{
0: "GATEWAY_TYPE_UNSPECIFIED",
1: "APIGEE_X_AND_HYBRID",
2: "APIGEE_EDGE_PUBLIC_CLOUD",
3: "APIGEE_EDGE_PRIVATE_CLOUD",
4: "CLOUD_API_GATEWAY",
5: "CLOUD_ENDPOINTS",
6: "API_DISCOVERY",
7: "OTHERS",
}
GatewayType_value = map[string]int32{
"GATEWAY_TYPE_UNSPECIFIED": 0,
"APIGEE_X_AND_HYBRID": 1,
"APIGEE_EDGE_PUBLIC_CLOUD": 2,
"APIGEE_EDGE_PRIVATE_CLOUD": 3,
"CLOUD_API_GATEWAY": 4,
"CLOUD_ENDPOINTS": 5,
"API_DISCOVERY": 6,
"OTHERS": 7,
}
)Enum value maps for GatewayType.
CurationType_name, CurationType_value
var (
CurationType_name = map[int32]string{
0: "CURATION_TYPE_UNSPECIFIED",
1: "DEFAULT_CURATION_FOR_API_METADATA",
2: "CUSTOM_CURATION_FOR_API_METADATA",
}
CurationType_value = map[string]int32{
"CURATION_TYPE_UNSPECIFIED": 0,
"DEFAULT_CURATION_FOR_API_METADATA": 1,
"CUSTOM_CURATION_FOR_API_METADATA": 2,
}
)Enum value maps for CurationType.
Plugin_State_name, Plugin_State_value
var (
Plugin_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "ENABLED",
2: "DISABLED",
}
Plugin_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"ENABLED": 1,
"DISABLED": 2,
}
)Enum value maps for Plugin_State.
Plugin_OwnershipType_name, Plugin_OwnershipType_value
var (
Plugin_OwnershipType_name = map[int32]string{
0: "OWNERSHIP_TYPE_UNSPECIFIED",
1: "SYSTEM_OWNED",
2: "USER_OWNED",
}
Plugin_OwnershipType_value = map[string]int32{
"OWNERSHIP_TYPE_UNSPECIFIED": 0,
"SYSTEM_OWNED": 1,
"USER_OWNED": 2,
}
)Enum value maps for Plugin_OwnershipType.
PluginActionConfig_TriggerMode_name, PluginActionConfig_TriggerMode_value
var (
PluginActionConfig_TriggerMode_name = map[int32]string{
0: "TRIGGER_MODE_UNSPECIFIED",
1: "API_HUB_ON_DEMAND_TRIGGER",
2: "API_HUB_SCHEDULE_TRIGGER",
3: "NON_API_HUB_MANAGED",
}
PluginActionConfig_TriggerMode_value = map[string]int32{
"TRIGGER_MODE_UNSPECIFIED": 0,
"API_HUB_ON_DEMAND_TRIGGER": 1,
"API_HUB_SCHEDULE_TRIGGER": 2,
"NON_API_HUB_MANAGED": 3,
}
)Enum value maps for PluginActionConfig_TriggerMode.
PluginInstanceAction_State_name, PluginInstanceAction_State_value
var (
PluginInstanceAction_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "ENABLED",
2: "DISABLED",
3: "ENABLING",
4: "DISABLING",
5: "ERROR",
}
PluginInstanceAction_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"ENABLED": 1,
"DISABLED": 2,
"ENABLING": 3,
"DISABLING": 4,
"ERROR": 5,
}
)Enum value maps for PluginInstanceAction_State.
PluginInstance_State_name, PluginInstance_State_value
var (
PluginInstance_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "ACTIVE",
3: "APPLYING_CONFIG",
4: "ERROR",
5: "FAILED",
6: "DELETING",
}
PluginInstance_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"ACTIVE": 2,
"APPLYING_CONFIG": 3,
"ERROR": 4,
"FAILED": 5,
"DELETING": 6,
}
)Enum value maps for PluginInstance_State.
ExecutionStatus_CurrentExecutionState_name, ExecutionStatus_CurrentExecutionState_value
var (
ExecutionStatus_CurrentExecutionState_name = map[int32]string{
0: "CURRENT_EXECUTION_STATE_UNSPECIFIED",
1: "RUNNING",
2: "NOT_RUNNING",
}
ExecutionStatus_CurrentExecutionState_value = map[string]int32{
"CURRENT_EXECUTION_STATE_UNSPECIFIED": 0,
"RUNNING": 1,
"NOT_RUNNING": 2,
}
)Enum value maps for ExecutionStatus_CurrentExecutionState.
ExecutionStatus_LastExecution_Result_name, ExecutionStatus_LastExecution_Result_value
var (
ExecutionStatus_LastExecution_Result_name = map[int32]string{
0: "RESULT_UNSPECIFIED",
1: "SUCCEEDED",
2: "FAILED",
}
ExecutionStatus_LastExecution_Result_value = map[string]int32{
"RESULT_UNSPECIFIED": 0,
"SUCCEEDED": 1,
"FAILED": 2,
}
)Enum value maps for ExecutionStatus_LastExecution_Result.
ApiHubCollect_ServiceDesc
var ApiHubCollect_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.apihub.v1.ApiHubCollect",
HandlerType: (*ApiHubCollectServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CollectApiData",
Handler: _ApiHubCollect_CollectApiData_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/apihub/v1/collect_service.proto",
}ApiHubCollect_ServiceDesc is the grpc.ServiceDesc for ApiHubCollect service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
ApiHubCurate_ServiceDesc
var ApiHubCurate_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.apihub.v1.ApiHubCurate",
HandlerType: (*ApiHubCurateServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateCuration",
Handler: _ApiHubCurate_CreateCuration_Handler,
},
{
MethodName: "GetCuration",
Handler: _ApiHubCurate_GetCuration_Handler,
},
{
MethodName: "ListCurations",
Handler: _ApiHubCurate_ListCurations_Handler,
},
{
MethodName: "UpdateCuration",
Handler: _ApiHubCurate_UpdateCuration_Handler,
},
{
MethodName: "DeleteCuration",
Handler: _ApiHubCurate_DeleteCuration_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/apihub/v1/curate_service.proto",
}ApiHubCurate_ServiceDesc is the grpc.ServiceDesc for ApiHubCurate service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
ApiHubDependencies_ServiceDesc
var ApiHubDependencies_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.apihub.v1.ApiHubDependencies",
HandlerType: (*ApiHubDependenciesServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateDependency",
Handler: _ApiHubDependencies_CreateDependency_Handler,
},
{
MethodName: "GetDependency",
Handler: _ApiHubDependencies_GetDependency_Handler,
},
{
MethodName: "UpdateDependency",
Handler: _ApiHubDependencies_UpdateDependency_Handler,
},
{
MethodName: "DeleteDependency",
Handler: _ApiHubDependencies_DeleteDependency_Handler,
},
{
MethodName: "ListDependencies",
Handler: _ApiHubDependencies_ListDependencies_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/apihub/v1/apihub_service.proto",
}ApiHubDependencies_ServiceDesc is the grpc.ServiceDesc for ApiHubDependencies service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
ApiHubDiscovery_ServiceDesc
var ApiHubDiscovery_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.apihub.v1.ApiHubDiscovery",
HandlerType: (*ApiHubDiscoveryServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListDiscoveredApiObservations",
Handler: _ApiHubDiscovery_ListDiscoveredApiObservations_Handler,
},
{
MethodName: "GetDiscoveredApiObservation",
Handler: _ApiHubDiscovery_GetDiscoveredApiObservation_Handler,
},
{
MethodName: "ListDiscoveredApiOperations",
Handler: _ApiHubDiscovery_ListDiscoveredApiOperations_Handler,
},
{
MethodName: "GetDiscoveredApiOperation",
Handler: _ApiHubDiscovery_GetDiscoveredApiOperation_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/apihub/v1/discovery_service.proto",
}ApiHubDiscovery_ServiceDesc is the grpc.ServiceDesc for ApiHubDiscovery service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
ApiHubPlugin_ServiceDesc
var ApiHubPlugin_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.apihub.v1.ApiHubPlugin",
HandlerType: (*ApiHubPluginServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetPlugin",
Handler: _ApiHubPlugin_GetPlugin_Handler,
},
{
MethodName: "EnablePlugin",
Handler: _ApiHubPlugin_EnablePlugin_Handler,
},
{
MethodName: "DisablePlugin",
Handler: _ApiHubPlugin_DisablePlugin_Handler,
},
{
MethodName: "CreatePlugin",
Handler: _ApiHubPlugin_CreatePlugin_Handler,
},
{
MethodName: "ListPlugins",
Handler: _ApiHubPlugin_ListPlugins_Handler,
},
{
MethodName: "DeletePlugin",
Handler: _ApiHubPlugin_DeletePlugin_Handler,
},
{
MethodName: "CreatePluginInstance",
Handler: _ApiHubPlugin_CreatePluginInstance_Handler,
},
{
MethodName: "ExecutePluginInstanceAction",
Handler: _ApiHubPlugin_ExecutePluginInstanceAction_Handler,
},
{
MethodName: "GetPluginInstance",
Handler: _ApiHubPlugin_GetPluginInstance_Handler,
},
{
MethodName: "ListPluginInstances",
Handler: _ApiHubPlugin_ListPluginInstances_Handler,
},
{
MethodName: "EnablePluginInstanceAction",
Handler: _ApiHubPlugin_EnablePluginInstanceAction_Handler,
},
{
MethodName: "DisablePluginInstanceAction",
Handler: _ApiHubPlugin_DisablePluginInstanceAction_Handler,
},
{
MethodName: "UpdatePluginInstance",
Handler: _ApiHubPlugin_UpdatePluginInstance_Handler,
},
{
MethodName: "DeletePluginInstance",
Handler: _ApiHubPlugin_DeletePluginInstance_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/apihub/v1/plugin_service.proto",
}ApiHubPlugin_ServiceDesc is the grpc.ServiceDesc for ApiHubPlugin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
ApiHub_ServiceDesc
var ApiHub_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.apihub.v1.ApiHub",
HandlerType: (*ApiHubServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateApi",
Handler: _ApiHub_CreateApi_Handler,
},
{
MethodName: "GetApi",
Handler: _ApiHub_GetApi_Handler,
},
{
MethodName: "ListApis",
Handler: _ApiHub_ListApis_Handler,
},
{
MethodName: "UpdateApi",
Handler: _ApiHub_UpdateApi_Handler,
},
{
MethodName: "DeleteApi",
Handler: _ApiHub_DeleteApi_Handler,
},
{
MethodName: "CreateVersion",
Handler: _ApiHub_CreateVersion_Handler,
},
{
MethodName: "GetVersion",
Handler: _ApiHub_GetVersion_Handler,
},
{
MethodName: "ListVersions",
Handler: _ApiHub_ListVersions_Handler,
},
{
MethodName: "UpdateVersion",
Handler: _ApiHub_UpdateVersion_Handler,
},
{
MethodName: "DeleteVersion",
Handler: _ApiHub_DeleteVersion_Handler,
},
{
MethodName: "CreateSpec",
Handler: _ApiHub_CreateSpec_Handler,
},
{
MethodName: "GetSpec",
Handler: _ApiHub_GetSpec_Handler,
},
{
MethodName: "GetSpecContents",
Handler: _ApiHub_GetSpecContents_Handler,
},
{
MethodName: "ListSpecs",
Handler: _ApiHub_ListSpecs_Handler,
},
{
MethodName: "UpdateSpec",
Handler: _ApiHub_UpdateSpec_Handler,
},
{
MethodName: "DeleteSpec",
Handler: _ApiHub_DeleteSpec_Handler,
},
{
MethodName: "CreateApiOperation",
Handler: _ApiHub_CreateApiOperation_Handler,
},
{
MethodName: "GetApiOperation",
Handler: _ApiHub_GetApiOperation_Handler,
},
{
MethodName: "ListApiOperations",
Handler: _ApiHub_ListApiOperations_Handler,
},
{
MethodName: "UpdateApiOperation",
Handler: _ApiHub_UpdateApiOperation_Handler,
},
{
MethodName: "DeleteApiOperation",
Handler: _ApiHub_DeleteApiOperation_Handler,
},
{
MethodName: "GetDefinition",
Handler: _ApiHub_GetDefinition_Handler,
},
{
MethodName: "CreateDeployment",
Handler: _ApiHub_CreateDeployment_Handler,
},
{
MethodName: "GetDeployment",
Handler: _ApiHub_GetDeployment_Handler,
},
{
MethodName: "ListDeployments",
Handler: _ApiHub_ListDeployments_Handler,
},
{
MethodName: "UpdateDeployment",
Handler: _ApiHub_UpdateDeployment_Handler,
},
{
MethodName: "DeleteDeployment",
Handler: _ApiHub_DeleteDeployment_Handler,
},
{
MethodName: "CreateAttribute",
Handler: _ApiHub_CreateAttribute_Handler,
},
{
MethodName: "GetAttribute",
Handler: _ApiHub_GetAttribute_Handler,
},
{
MethodName: "UpdateAttribute",
Handler: _ApiHub_UpdateAttribute_Handler,
},
{
MethodName: "DeleteAttribute",
Handler: _ApiHub_DeleteAttribute_Handler,
},
{
MethodName: "ListAttributes",
Handler: _ApiHub_ListAttributes_Handler,
},
{
MethodName: "SearchResources",
Handler: _ApiHub_SearchResources_Handler,
},
{
MethodName: "CreateExternalApi",
Handler: _ApiHub_CreateExternalApi_Handler,
},
{
MethodName: "GetExternalApi",
Handler: _ApiHub_GetExternalApi_Handler,
},
{
MethodName: "UpdateExternalApi",
Handler: _ApiHub_UpdateExternalApi_Handler,
},
{
MethodName: "DeleteExternalApi",
Handler: _ApiHub_DeleteExternalApi_Handler,
},
{
MethodName: "ListExternalApis",
Handler: _ApiHub_ListExternalApis_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/apihub/v1/apihub_service.proto",
}ApiHub_ServiceDesc is the grpc.ServiceDesc for ApiHub service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
File_google_cloud_apihub_v1_apihub_service_proto
var File_google_cloud_apihub_v1_apihub_service_proto protoreflect.FileDescriptorFile_google_cloud_apihub_v1_collect_service_proto
var File_google_cloud_apihub_v1_collect_service_proto protoreflect.FileDescriptorFile_google_cloud_apihub_v1_common_fields_proto
var File_google_cloud_apihub_v1_common_fields_proto protoreflect.FileDescriptorFile_google_cloud_apihub_v1_curate_service_proto
var File_google_cloud_apihub_v1_curate_service_proto protoreflect.FileDescriptorFile_google_cloud_apihub_v1_discovery_service_proto
var File_google_cloud_apihub_v1_discovery_service_proto protoreflect.FileDescriptorFile_google_cloud_apihub_v1_host_project_registration_service_proto
var File_google_cloud_apihub_v1_host_project_registration_service_proto protoreflect.FileDescriptorFile_google_cloud_apihub_v1_linting_service_proto
var File_google_cloud_apihub_v1_linting_service_proto protoreflect.FileDescriptorFile_google_cloud_apihub_v1_plugin_service_proto
var File_google_cloud_apihub_v1_plugin_service_proto protoreflect.FileDescriptorFile_google_cloud_apihub_v1_provisioning_service_proto
var File_google_cloud_apihub_v1_provisioning_service_proto protoreflect.FileDescriptorFile_google_cloud_apihub_v1_runtime_project_attachment_service_proto
var File_google_cloud_apihub_v1_runtime_project_attachment_service_proto protoreflect.FileDescriptorHostProjectRegistrationService_ServiceDesc
var HostProjectRegistrationService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.apihub.v1.HostProjectRegistrationService",
HandlerType: (*HostProjectRegistrationServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateHostProjectRegistration",
Handler: _HostProjectRegistrationService_CreateHostProjectRegistration_Handler,
},
{
MethodName: "GetHostProjectRegistration",
Handler: _HostProjectRegistrationService_GetHostProjectRegistration_Handler,
},
{
MethodName: "ListHostProjectRegistrations",
Handler: _HostProjectRegistrationService_ListHostProjectRegistrations_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/apihub/v1/host_project_registration_service.proto",
}HostProjectRegistrationService_ServiceDesc is the grpc.ServiceDesc for HostProjectRegistrationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
LintingService_ServiceDesc
var LintingService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.apihub.v1.LintingService",
HandlerType: (*LintingServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetStyleGuide",
Handler: _LintingService_GetStyleGuide_Handler,
},
{
MethodName: "UpdateStyleGuide",
Handler: _LintingService_UpdateStyleGuide_Handler,
},
{
MethodName: "GetStyleGuideContents",
Handler: _LintingService_GetStyleGuideContents_Handler,
},
{
MethodName: "LintSpec",
Handler: _LintingService_LintSpec_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/apihub/v1/linting_service.proto",
}LintingService_ServiceDesc is the grpc.ServiceDesc for LintingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Provisioning_ServiceDesc
var Provisioning_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.apihub.v1.Provisioning",
HandlerType: (*ProvisioningServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateApiHubInstance",
Handler: _Provisioning_CreateApiHubInstance_Handler,
},
{
MethodName: "DeleteApiHubInstance",
Handler: _Provisioning_DeleteApiHubInstance_Handler,
},
{
MethodName: "GetApiHubInstance",
Handler: _Provisioning_GetApiHubInstance_Handler,
},
{
MethodName: "LookupApiHubInstance",
Handler: _Provisioning_LookupApiHubInstance_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/apihub/v1/provisioning_service.proto",
}Provisioning_ServiceDesc is the grpc.ServiceDesc for Provisioning service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
RuntimeProjectAttachmentService_ServiceDesc
var RuntimeProjectAttachmentService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.apihub.v1.RuntimeProjectAttachmentService",
HandlerType: (*RuntimeProjectAttachmentServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateRuntimeProjectAttachment",
Handler: _RuntimeProjectAttachmentService_CreateRuntimeProjectAttachment_Handler,
},
{
MethodName: "GetRuntimeProjectAttachment",
Handler: _RuntimeProjectAttachmentService_GetRuntimeProjectAttachment_Handler,
},
{
MethodName: "ListRuntimeProjectAttachments",
Handler: _RuntimeProjectAttachmentService_ListRuntimeProjectAttachments_Handler,
},
{
MethodName: "DeleteRuntimeProjectAttachment",
Handler: _RuntimeProjectAttachmentService_DeleteRuntimeProjectAttachment_Handler,
},
{
MethodName: "LookupRuntimeProjectAttachment",
Handler: _RuntimeProjectAttachmentService_LookupRuntimeProjectAttachment_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/apihub/v1/runtime_project_attachment_service.proto",
}RuntimeProjectAttachmentService_ServiceDesc is the grpc.ServiceDesc for RuntimeProjectAttachmentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterApiHubCollectServer
func RegisterApiHubCollectServer(s grpc.ServiceRegistrar, srv ApiHubCollectServer)func RegisterApiHubCurateServer
func RegisterApiHubCurateServer(s grpc.ServiceRegistrar, srv ApiHubCurateServer)func RegisterApiHubDependenciesServer
func RegisterApiHubDependenciesServer(s grpc.ServiceRegistrar, srv ApiHubDependenciesServer)func RegisterApiHubDiscoveryServer
func RegisterApiHubDiscoveryServer(s grpc.ServiceRegistrar, srv ApiHubDiscoveryServer)func RegisterApiHubPluginServer
func RegisterApiHubPluginServer(s grpc.ServiceRegistrar, srv ApiHubPluginServer)func RegisterApiHubServer
func RegisterApiHubServer(s grpc.ServiceRegistrar, srv ApiHubServer)func RegisterHostProjectRegistrationServiceServer
func RegisterHostProjectRegistrationServiceServer(s grpc.ServiceRegistrar, srv HostProjectRegistrationServiceServer)func RegisterLintingServiceServer
func RegisterLintingServiceServer(s grpc.ServiceRegistrar, srv LintingServiceServer)func RegisterProvisioningServer
func RegisterProvisioningServer(s grpc.ServiceRegistrar, srv ProvisioningServer)func RegisterRuntimeProjectAttachmentServiceServer
func RegisterRuntimeProjectAttachmentServiceServer(s grpc.ServiceRegistrar, srv RuntimeProjectAttachmentServiceServer)APIMetadata
type APIMetadata struct {
// Required. The API resource to be pushed to Hub's collect layer. The ID of
// the API resource will be generated by Hub to ensure uniqueness across all
// APIs across systems.
Api *Api `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"`
// Optional. The list of versions present in an API resource.
Versions []*VersionMetadata `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"`
// Optional. The unique identifier of the API in the system where it was
// originally created.
OriginalId string `protobuf:"bytes,3,opt,name=original_id,json=originalId,proto3" json:"original_id,omitempty"`
// Optional. Timestamp indicating when the API was created at the source.
OriginalCreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=original_create_time,json=originalCreateTime,proto3" json:"original_create_time,omitempty"`
// Required. Timestamp indicating when the API was last updated at the source.
OriginalUpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=original_update_time,json=originalUpdateTime,proto3" json:"original_update_time,omitempty"`
// contains filtered or unexported fields
}The API metadata.
func (*APIMetadata) Descriptor
func (*APIMetadata) Descriptor() ([]byte, []int)Deprecated: Use APIMetadata.ProtoReflect.Descriptor instead.
func (*APIMetadata) GetApi
func (x *APIMetadata) GetApi() *Apifunc (*APIMetadata) GetOriginalCreateTime
func (x *APIMetadata) GetOriginalCreateTime() *timestamppb.Timestampfunc (*APIMetadata) GetOriginalId
func (x *APIMetadata) GetOriginalId() stringfunc (*APIMetadata) GetOriginalUpdateTime
func (x *APIMetadata) GetOriginalUpdateTime() *timestamppb.Timestampfunc (*APIMetadata) GetVersions
func (x *APIMetadata) GetVersions() []*VersionMetadatafunc (*APIMetadata) ProtoMessage
func (*APIMetadata) ProtoMessage()func (*APIMetadata) ProtoReflect
func (x *APIMetadata) ProtoReflect() protoreflect.Messagefunc (*APIMetadata) Reset
func (x *APIMetadata) Reset()func (*APIMetadata) String
func (x *APIMetadata) String() stringActionExecutionDetail
type ActionExecutionDetail struct {
// Required. The action id of the plugin to execute.
ActionId string `protobuf:"bytes,1,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
// contains filtered or unexported fields
}The details for the action to execute.
func (*ActionExecutionDetail) Descriptor
func (*ActionExecutionDetail) Descriptor() ([]byte, []int)Deprecated: Use ActionExecutionDetail.ProtoReflect.Descriptor instead.
func (*ActionExecutionDetail) GetActionId
func (x *ActionExecutionDetail) GetActionId() stringfunc (*ActionExecutionDetail) ProtoMessage
func (*ActionExecutionDetail) ProtoMessage()func (*ActionExecutionDetail) ProtoReflect
func (x *ActionExecutionDetail) ProtoReflect() protoreflect.Messagefunc (*ActionExecutionDetail) Reset
func (x *ActionExecutionDetail) Reset()func (*ActionExecutionDetail) String
func (x *ActionExecutionDetail) String() stringActionType
type ActionType int32Enum for the action type.
ActionType_ACTION_TYPE_UNSPECIFIED, ActionType_SYNC_METADATA, ActionType_SYNC_RUNTIME_DATA
const (
// Default unspecified action type.
ActionType_ACTION_TYPE_UNSPECIFIED ActionType = 0
// Action type for sync metadata.
ActionType_SYNC_METADATA ActionType = 1
// Action type for sync runtime data.
ActionType_SYNC_RUNTIME_DATA ActionType = 2
)func (ActionType) Descriptor
func (ActionType) Descriptor() protoreflect.EnumDescriptorfunc (ActionType) Enum
func (x ActionType) Enum() *ActionTypefunc (ActionType) EnumDescriptor
func (ActionType) EnumDescriptor() ([]byte, []int)Deprecated: Use ActionType.Descriptor instead.
func (ActionType) Number
func (x ActionType) Number() protoreflect.EnumNumberfunc (ActionType) String
func (x ActionType) String() stringfunc (ActionType) Type
func (ActionType) Type() protoreflect.EnumTypeApi
type Api struct {
// Identifier. The name of the API resource in the API Hub.
//
// Format:
// `projects/{project}/locations/{location}/apis/{api}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The display name of the API resource.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. The description of the API resource.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Optional. The documentation for the API resource.
Documentation *Documentation `protobuf:"bytes,4,opt,name=documentation,proto3" json:"documentation,omitempty"`
// Optional. Owner details for the API resource.
Owner *Owner `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
// Output only. The list of versions present in an API resource.
// Note: An API resource can be associated with more than 1 version.
// Format is
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
Versions []string `protobuf:"bytes,6,rep,name=versions,proto3" json:"versions,omitempty"`
// Output only. The time at which the API resource was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time at which the API resource was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. The target users for the API.
// This maps to the following system defined attribute:
// `projects/{project}/locations/{location}/attributes/system-target-user`
// attribute.
// The number of 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.
TargetUser *AttributeValues `protobuf:"bytes,9,opt,name=target_user,json=targetUser,proto3" json:"target_user,omitempty"`
// Optional. The team owning the API.
// This maps to the following system defined attribute:
// `projects/{project}/locations/{location}/attributes/system-team`
// attribute.
// The number of 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.
Team *AttributeValues `protobuf:"bytes,10,opt,name=team,proto3" json:"team,omitempty"`
// Optional. The business unit owning the API.
// This maps to the following system defined attribute:
// `projects/{project}/locations/{location}/attributes/system-business-unit`
// attribute.
// The number of 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.
BusinessUnit *AttributeValues `protobuf:"bytes,11,opt,name=business_unit,json=businessUnit,proto3" json:"business_unit,omitempty"`
// Optional. The maturity level of the API.
// This maps to the following system defined attribute:
// `projects/{project}/locations/{location}/attributes/system-maturity-level`
// attribute.
// The number of 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.
MaturityLevel *AttributeValues `protobuf:"bytes,12,opt,name=maturity_level,json=maturityLevel,proto3" json:"maturity_level,omitempty"`
// Optional. The list of user defined attributes associated with the API
// resource. The key is the attribute name. It will be of the format:
// `projects/{project}/locations/{location}/attributes/{attribute}`.
// The value is the attribute values associated with the resource.
Attributes map[string]*AttributeValues `protobuf:"bytes,13,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. The style of the API.
// This maps to the following system defined attribute:
// `projects/{project}/locations/{location}/attributes/system-api-style`
// attribute.
// The number of 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.
ApiStyle *AttributeValues `protobuf:"bytes,14,opt,name=api_style,json=apiStyle,proto3" json:"api_style,omitempty"`
// Optional. The selected version for an API resource.
// This can be used when special handling is needed on client side for
// particular version of the API. Format is
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
SelectedVersion string `protobuf:"bytes,15,opt,name=selected_version,json=selectedVersion,proto3" json:"selected_version,omitempty"`
// Optional. The api requirement doc associated with the API resource.
// Carinality is 1 for this attribute. This maps to the following system
// defined attribute:
// `projects/{project}/locations/{location}/attributes/system-api-requirements`
// attribute. The value of the attribute should be a proper URI, and in case
// of Cloud Storage URI, it should point to a Cloud Storage object,
// not a directory.
ApiRequirements *AttributeValues `protobuf:"bytes,16,opt,name=api_requirements,json=apiRequirements,proto3" json:"api_requirements,omitempty"`
// Optional. Fingerprint of the API resource.
Fingerprint string `protobuf:"bytes,17,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
// Output only. The list of sources and metadata from the sources of the API
// resource.
SourceMetadata []*SourceMetadata `protobuf:"bytes,18,rep,name=source_metadata,json=sourceMetadata,proto3" json:"source_metadata,omitempty"`
// Optional. The api functional requirements associated with the API resource.
// Carinality is 1 for this attribute.
// This maps to the following system defined attribute:
// `projects/{project}/locations/{location}/attributes/system-api-functional-requirements`
// attribute. The value of the attribute should be a proper URI, and in case
// of Cloud Storage URI, it should point to a Cloud Storage object,
// not a directory.
ApiFunctionalRequirements *AttributeValues `protobuf:"bytes,19,opt,name=api_functional_requirements,json=apiFunctionalRequirements,proto3" json:"api_functional_requirements,omitempty"`
// Optional. The api technical requirements associated with the API resource.
// Carinality is 1 for this attribute. This maps to the following system
// defined attribute:
// `projects/{project}/locations/{location}/attributes/system-api-technical-requirements`
// attribute. The value of the attribute should be a proper URI, and in case
// of Cloud Storage URI, it should point to a Cloud Storage object,
// not a directory.
ApiTechnicalRequirements *AttributeValues `protobuf:"bytes,20,opt,name=api_technical_requirements,json=apiTechnicalRequirements,proto3" json:"api_technical_requirements,omitempty"`
// contains filtered or unexported fields
}An API resource in the API Hub.
func (*Api) Descriptor
Deprecated: Use Api.ProtoReflect.Descriptor instead.
func (*Api) GetApiFunctionalRequirements
func (x *Api) GetApiFunctionalRequirements() *AttributeValuesfunc (*Api) GetApiRequirements
func (x *Api) GetApiRequirements() *AttributeValuesfunc (*Api) GetApiStyle
func (x *Api) GetApiStyle() *AttributeValuesfunc (*Api) GetApiTechnicalRequirements
func (x *Api) GetApiTechnicalRequirements() *AttributeValuesfunc (*Api) GetAttributes
func (x *Api) GetAttributes() map[string]*AttributeValuesfunc (*Api) GetBusinessUnit
func (x *Api) GetBusinessUnit() *AttributeValuesfunc (*Api) GetCreateTime
func (x *Api) GetCreateTime() *timestamppb.Timestampfunc (*Api) GetDescription
func (*Api) GetDisplayName
func (*Api) GetDocumentation
func (x *Api) GetDocumentation() *Documentationfunc (*Api) GetFingerprint
func (*Api) GetMaturityLevel
func (x *Api) GetMaturityLevel() *AttributeValuesfunc (*Api) GetName
func (*Api) GetOwner
func (*Api) GetSelectedVersion
func (*Api) GetSourceMetadata
func (x *Api) GetSourceMetadata() []*SourceMetadatafunc (*Api) GetTargetUser
func (x *Api) GetTargetUser() *AttributeValuesfunc (*Api) GetTeam
func (x *Api) GetTeam() *AttributeValuesfunc (*Api) GetUpdateTime
func (x *Api) GetUpdateTime() *timestamppb.Timestampfunc (*Api) GetVersions
func (*Api) ProtoMessage
func (*Api) ProtoMessage()func (*Api) ProtoReflect
func (x *Api) ProtoReflect() protoreflect.Messagefunc (*Api) Reset
func (x *Api) Reset()func (*Api) String
ApiData
type ApiData struct {
// The data to be collected.
//
// Types that are assignable to Data:
//
// *ApiData_ApiMetadataList
Data isApiData_Data `protobuf_oneof:"Data"`
// contains filtered or unexported fields
}The API data to be collected.
func (*ApiData) Descriptor
Deprecated: Use ApiData.ProtoReflect.Descriptor instead.
func (*ApiData) GetApiMetadataList
func (x *ApiData) GetApiMetadataList() *ApiMetadataListfunc (*ApiData) GetData
func (m *ApiData) GetData() isApiData_Datafunc (*ApiData) ProtoMessage
func (*ApiData) ProtoMessage()func (*ApiData) ProtoReflect
func (x *ApiData) ProtoReflect() protoreflect.Messagefunc (*ApiData) Reset
func (x *ApiData) Reset()func (*ApiData) String
ApiData_ApiMetadataList
type ApiData_ApiMetadataList struct {
// Optional. The list of API metadata.
ApiMetadataList *ApiMetadataList `protobuf:"bytes,1,opt,name=api_metadata_list,json=apiMetadataList,proto3,oneof"`
}ApiHubClient
type ApiHubClient interface {
// Create an API resource in the API hub.
// Once an API resource is created, versions can be added to it.
CreateApi(ctx context.Context, in *CreateApiRequest, opts ...grpc.CallOption) (*Api, error)
// Get API resource details including the API versions contained in it.
GetApi(ctx context.Context, in *GetApiRequest, opts ...grpc.CallOption) (*Api, error)
// List API resources in the API hub.
ListApis(ctx context.Context, in *ListApisRequest, opts ...grpc.CallOption) (*ListApisResponse, error)
// Update an API resource in the API hub. The following fields in the
// [API][google.cloud.apihub.v1.Api] can be updated:
//
// * [display_name][google.cloud.apihub.v1.Api.display_name]
// * [description][google.cloud.apihub.v1.Api.description]
// * [owner][google.cloud.apihub.v1.Api.owner]
// * [documentation][google.cloud.apihub.v1.Api.documentation]
// * [target_user][google.cloud.apihub.v1.Api.target_user]
// * [team][google.cloud.apihub.v1.Api.team]
// * [business_unit][google.cloud.apihub.v1.Api.business_unit]
// * [maturity_level][google.cloud.apihub.v1.Api.maturity_level]
// * [api_style][google.cloud.apihub.v1.Api.api_style]
// * [attributes][google.cloud.apihub.v1.Api.attributes]
//
// The
// [update_mask][google.cloud.apihub.v1.UpdateApiRequest.update_mask]
// should be used to specify the fields being updated.
//
// Updating the owner field requires complete owner message
// and updates both owner and email fields.
UpdateApi(ctx context.Context, in *UpdateApiRequest, opts ...grpc.CallOption) (*Api, error)
// Delete an API resource in the API hub. API can only be deleted if all
// underlying versions are deleted.
DeleteApi(ctx context.Context, in *DeleteApiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Create an API version for an API resource in the API hub.
CreateVersion(ctx context.Context, in *CreateVersionRequest, opts ...grpc.CallOption) (*Version, error)
// Get details about the API version of an API resource. This will include
// information about the specs and operations present in the API
// version as well as the deployments linked to it.
GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*Version, error)
// List API versions of an API resource in the API hub.
ListVersions(ctx context.Context, in *ListVersionsRequest, opts ...grpc.CallOption) (*ListVersionsResponse, error)
// Update API version. The following fields in the
// [version][google.cloud.apihub.v1.Version] can be updated currently:
//
// * [display_name][google.cloud.apihub.v1.Version.display_name]
// * [description][google.cloud.apihub.v1.Version.description]
// * [documentation][google.cloud.apihub.v1.Version.documentation]
// * [deployments][google.cloud.apihub.v1.Version.deployments]
// * [lifecycle][google.cloud.apihub.v1.Version.lifecycle]
// * [compliance][google.cloud.apihub.v1.Version.compliance]
// * [accreditation][google.cloud.apihub.v1.Version.accreditation]
// * [attributes][google.cloud.apihub.v1.Version.attributes]
//
// The
// [update_mask][google.cloud.apihub.v1.UpdateVersionRequest.update_mask]
// should be used to specify the fields being updated.
UpdateVersion(ctx context.Context, in *UpdateVersionRequest, opts ...grpc.CallOption) (*Version, error)
// Delete an API version. Version can only be deleted if all underlying specs,
// operations, definitions and linked deployments are deleted.
DeleteVersion(ctx context.Context, in *DeleteVersionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Add a spec to an API version in the API hub.
// Multiple specs can be added to an API version.
// Note, while adding a spec, at least one of `contents` or `source_uri` must
// be provided. If `contents` is provided, then `spec_type` must also be
// provided.
//
// On adding a spec with contents to the version, the operations present in it
// will be added to the version.Note that the file contents in the spec should
// be of the same type as defined in the
// `projects/{project}/locations/{location}/attributes/system-spec-type`
// attribute associated with spec resource. Note that specs of various types
// can be uploaded, however parsing of details is supported for OpenAPI spec
// currently.
//
// In order to access the information parsed from the spec, use the
// [GetSpec][google.cloud.apihub.v1.ApiHub.GetSpec] method.
// In order to access the raw contents for a particular spec, use the
// [GetSpecContents][google.cloud.apihub.v1.ApiHub.GetSpecContents] method.
// In order to access the operations parsed from the spec, use the
// [ListAPIOperations][google.cloud.apihub.v1.ApiHub.ListApiOperations]
// method.
CreateSpec(ctx context.Context, in *CreateSpecRequest, opts ...grpc.CallOption) (*Spec, error)
// Get details about the information parsed from a spec.
// Note that this method does not return the raw spec contents.
// Use [GetSpecContents][google.cloud.apihub.v1.ApiHub.GetSpecContents] method
// to retrieve the same.
GetSpec(ctx context.Context, in *GetSpecRequest, opts ...grpc.CallOption) (*Spec, error)
// Get spec contents.
GetSpecContents(ctx context.Context, in *GetSpecContentsRequest, opts ...grpc.CallOption) (*SpecContents, error)
// List specs corresponding to a particular API resource.
ListSpecs(ctx context.Context, in *ListSpecsRequest, opts ...grpc.CallOption) (*ListSpecsResponse, error)
// Update spec. The following fields in the
// [spec][google.cloud.apihub.v1.Spec] can be updated:
//
// * [display_name][google.cloud.apihub.v1.Spec.display_name]
// * [source_uri][google.cloud.apihub.v1.Spec.source_uri]
// * [lint_response][google.cloud.apihub.v1.Spec.lint_response]
// * [attributes][google.cloud.apihub.v1.Spec.attributes]
// * [contents][google.cloud.apihub.v1.Spec.contents]
// * [spec_type][google.cloud.apihub.v1.Spec.spec_type]
//
// In case of an OAS spec, updating spec contents can lead to:
// 1. Creation, deletion and update of operations.
// 2. Creation, deletion and update of definitions.
// 3. Update of other info parsed out from the new spec.
//
// In case of contents or source_uri being present in update mask, spec_type
// must also be present. Also, spec_type can not be present in update mask if
// contents or source_uri is not present.
//
// The
// [update_mask][google.cloud.apihub.v1.UpdateSpecRequest.update_mask]
// should be used to specify the fields being updated.
UpdateSpec(ctx context.Context, in *UpdateSpecRequest, opts ...grpc.CallOption) (*Spec, error)
// Delete a spec.
// Deleting a spec will also delete the associated operations from the
// version.
DeleteSpec(ctx context.Context, in *DeleteSpecRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Create an apiOperation in an API version.
// An apiOperation can be created only if the version has no apiOperations
// which were created by parsing a spec.
CreateApiOperation(ctx context.Context, in *CreateApiOperationRequest, opts ...grpc.CallOption) (*ApiOperation, error)
// Get details about a particular operation in API version.
GetApiOperation(ctx context.Context, in *GetApiOperationRequest, opts ...grpc.CallOption) (*ApiOperation, error)
// List operations in an API version.
ListApiOperations(ctx context.Context, in *ListApiOperationsRequest, opts ...grpc.CallOption) (*ListApiOperationsResponse, error)
// Update an operation in an API version. The following fields in the
// [ApiOperation resource][google.cloud.apihub.v1.ApiOperation] can be
// updated:
//
// * [details.description][ApiOperation.details.description]
// * [details.documentation][ApiOperation.details.documentation]
// * [details.http_operation.path][ApiOperation.details.http_operation.path.path]
// * [details.http_operation.method][ApiOperation.details.http_operation.method]
// * [details.deprecated][ApiOperation.details.deprecated]
// * [attributes][google.cloud.apihub.v1.ApiOperation.attributes]
//
// The
// [update_mask][google.cloud.apihub.v1.UpdateApiOperationRequest.update_mask]
// should be used to specify the fields being updated.
//
// An operation can be updated only if the operation was created via
// [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation] API.
// If the operation was created by parsing the spec, then it can be edited by
// updating the spec.
UpdateApiOperation(ctx context.Context, in *UpdateApiOperationRequest, opts ...grpc.CallOption) (*ApiOperation, error)
// Delete an operation in an API version and we can delete only the
// operations created via create API. If the operation was created by parsing
// the spec, then it can be deleted by editing or deleting the spec.
DeleteApiOperation(ctx context.Context, in *DeleteApiOperationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Get details about a definition in an API version.
GetDefinition(ctx context.Context, in *GetDefinitionRequest, opts ...grpc.CallOption) (*Definition, error)
// Create a deployment resource in the API hub.
// Once a deployment resource is created, it can be associated with API
// versions.
CreateDeployment(ctx context.Context, in *CreateDeploymentRequest, opts ...grpc.CallOption) (*Deployment, error)
// Get details about a deployment and the API versions linked to it.
GetDeployment(ctx context.Context, in *GetDeploymentRequest, opts ...grpc.CallOption) (*Deployment, error)
// List deployment resources in the API hub.
ListDeployments(ctx context.Context, in *ListDeploymentsRequest, opts ...grpc.CallOption) (*ListDeploymentsResponse, error)
// Update a deployment resource in the API hub. The following fields in the
// [deployment resource][google.cloud.apihub.v1.Deployment] can be
// updated:
//
// * [display_name][google.cloud.apihub.v1.Deployment.display_name]
// * [description][google.cloud.apihub.v1.Deployment.description]
// * [documentation][google.cloud.apihub.v1.Deployment.documentation]
// * [deployment_type][google.cloud.apihub.v1.Deployment.deployment_type]
// * [resource_uri][google.cloud.apihub.v1.Deployment.resource_uri]
// * [endpoints][google.cloud.apihub.v1.Deployment.endpoints]
// * [slo][google.cloud.apihub.v1.Deployment.slo]
// * [environment][google.cloud.apihub.v1.Deployment.environment]
// * [attributes][google.cloud.apihub.v1.Deployment.attributes]
// * [source_project] [google.cloud.apihub.v1.Deployment.source_project]
// * [source_environment]
// [google.cloud.apihub.v1.Deployment.source_environment]
// * [management_url][google.cloud.apihub.v1.Deployment.management_url]
// * [source_uri][google.cloud.apihub.v1.Deployment.source_uri]
// The
// [update_mask][google.cloud.apihub.v1.UpdateDeploymentRequest.update_mask]
// should be used to specify the fields being updated.
UpdateDeployment(ctx context.Context, in *UpdateDeploymentRequest, opts ...grpc.CallOption) (*Deployment, error)
// Delete a deployment resource in the API hub.
DeleteDeployment(ctx context.Context, in *DeleteDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Create a user defined attribute.
//
// Certain pre defined attributes are already created by the API hub. These
// attributes will have type as `SYSTEM_DEFINED` and can be listed via
// [ListAttributes][google.cloud.apihub.v1.ApiHub.ListAttributes] method.
// Allowed values for the same can be updated via
// [UpdateAttribute][google.cloud.apihub.v1.ApiHub.UpdateAttribute] method.
CreateAttribute(ctx context.Context, in *CreateAttributeRequest, opts ...grpc.CallOption) (*Attribute, error)
// Get details about the attribute.
GetAttribute(ctx context.Context, in *GetAttributeRequest, opts ...grpc.CallOption) (*Attribute, error)
// Update the attribute. The following fields in the
// [Attribute resource][google.cloud.apihub.v1.Attribute] can be updated:
//
// * [display_name][google.cloud.apihub.v1.Attribute.display_name]
// The display name can be updated for user defined attributes only.
// * [description][google.cloud.apihub.v1.Attribute.description]
// The description can be updated for user defined attributes only.
// * [allowed_values][google.cloud.apihub.v1.Attribute.allowed_values]
// To update the list of allowed values, clients need to use the fetched list
// of allowed values and add or remove values to or from the same list.
// The mutable allowed values can be updated for both user defined and System
// defined attributes. The immutable allowed values cannot be updated or
// deleted. The updated list of allowed values cannot be empty. If an allowed
// value that is already used by some resource's attribute is deleted, then
// the association between the resource and the attribute value will also be
// deleted.
// * [cardinality][google.cloud.apihub.v1.Attribute.cardinality]
// The cardinality can be updated for user defined attributes only.
// Cardinality can only be increased during an update.
//
// The
// [update_mask][google.cloud.apihub.v1.UpdateAttributeRequest.update_mask]
// should be used to specify the fields being updated.
UpdateAttribute(ctx context.Context, in *UpdateAttributeRequest, opts ...grpc.CallOption) (*Attribute, error)
// Delete an attribute.
//
// Note: System defined attributes cannot be deleted. All
// associations of the attribute being deleted with any API hub resource will
// also get deleted.
DeleteAttribute(ctx context.Context, in *DeleteAttributeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// List all attributes.
ListAttributes(ctx context.Context, in *ListAttributesRequest, opts ...grpc.CallOption) (*ListAttributesResponse, error)
// Search across API-Hub resources.
SearchResources(ctx context.Context, in *SearchResourcesRequest, opts ...grpc.CallOption) (*SearchResourcesResponse, error)
// Create an External API resource in the API hub.
CreateExternalApi(ctx context.Context, in *CreateExternalApiRequest, opts ...grpc.CallOption) (*ExternalApi, error)
// Get details about an External API resource in the API hub.
GetExternalApi(ctx context.Context, in *GetExternalApiRequest, opts ...grpc.CallOption) (*ExternalApi, error)
// Update an External API resource in the API hub. The following fields can be
// updated:
//
// * [display_name][google.cloud.apihub.v1.ExternalApi.display_name]
// * [description][google.cloud.apihub.v1.ExternalApi.description]
// * [documentation][google.cloud.apihub.v1.ExternalApi.documentation]
// * [endpoints][google.cloud.apihub.v1.ExternalApi.endpoints]
// * [paths][google.cloud.apihub.v1.ExternalApi.paths]
//
// The
// [update_mask][google.cloud.apihub.v1.UpdateExternalApiRequest.update_mask]
// should be used to specify the fields being updated.
UpdateExternalApi(ctx context.Context, in *UpdateExternalApiRequest, opts ...grpc.CallOption) (*ExternalApi, error)
// Delete an External API resource in the API hub.
DeleteExternalApi(ctx context.Context, in *DeleteExternalApiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// List External API resources in the API hub.
ListExternalApis(ctx context.Context, in *ListExternalApisRequest, opts ...grpc.CallOption) (*ListExternalApisResponse, error)
}ApiHubClient is the client API for ApiHub service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewApiHubClient
func NewApiHubClient(cc grpc.ClientConnInterface) ApiHubClientApiHubCollectClient
type ApiHubCollectClient interface {
// Collect API data from a source and push it to Hub's collect layer.
CollectApiData(ctx context.Context, in *CollectApiDataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}ApiHubCollectClient is the client API for ApiHubCollect service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewApiHubCollectClient
func NewApiHubCollectClient(cc grpc.ClientConnInterface) ApiHubCollectClientApiHubCollectServer
type ApiHubCollectServer interface {
// Collect API data from a source and push it to Hub's collect layer.
CollectApiData(context.Context, *CollectApiDataRequest) (*longrunningpb.Operation, error)
}ApiHubCollectServer is the server API for ApiHubCollect service. All implementations should embed UnimplementedApiHubCollectServer for forward compatibility
ApiHubCurateClient
type ApiHubCurateClient interface {
// Create a curation resource in the API hub.
// Once a curation resource is created, plugin instances can start using it.
CreateCuration(ctx context.Context, in *CreateCurationRequest, opts ...grpc.CallOption) (*Curation, error)
// Get curation resource details.
GetCuration(ctx context.Context, in *GetCurationRequest, opts ...grpc.CallOption) (*Curation, error)
// List curation resources in the API hub.
ListCurations(ctx context.Context, in *ListCurationsRequest, opts ...grpc.CallOption) (*ListCurationsResponse, error)
// Update a curation resource in the API hub. The following fields in the
// [curation][google.cloud.apihub.v1.Curation] can be updated:
//
// * [display_name][google.cloud.apihub.v1.Curation.display_name]
// * [description][google.cloud.apihub.v1.Curation.description]
//
// The
// [update_mask][google.cloud.apihub.v1.UpdateApiRequest.update_mask]
// should be used to specify the fields being updated.
UpdateCuration(ctx context.Context, in *UpdateCurationRequest, opts ...grpc.CallOption) (*Curation, error)
// Delete a curation resource in the API hub. A curation can only be deleted
// if it's not being used by any plugin instance.
DeleteCuration(ctx context.Context, in *DeleteCurationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}ApiHubCurateClient is the client API for ApiHubCurate service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewApiHubCurateClient
func NewApiHubCurateClient(cc grpc.ClientConnInterface) ApiHubCurateClientApiHubCurateServer
type ApiHubCurateServer interface {
// Create a curation resource in the API hub.
// Once a curation resource is created, plugin instances can start using it.
CreateCuration(context.Context, *CreateCurationRequest) (*Curation, error)
// Get curation resource details.
GetCuration(context.Context, *GetCurationRequest) (*Curation, error)
// List curation resources in the API hub.
ListCurations(context.Context, *ListCurationsRequest) (*ListCurationsResponse, error)
// Update a curation resource in the API hub. The following fields in the
// [curation][google.cloud.apihub.v1.Curation] can be updated:
//
// * [display_name][google.cloud.apihub.v1.Curation.display_name]
// * [description][google.cloud.apihub.v1.Curation.description]
//
// The
// [update_mask][google.cloud.apihub.v1.UpdateApiRequest.update_mask]
// should be used to specify the fields being updated.
UpdateCuration(context.Context, *UpdateCurationRequest) (*Curation, error)
// Delete a curation resource in the API hub. A curation can only be deleted
// if it's not being used by any plugin instance.
DeleteCuration(context.Context, *DeleteCurationRequest) (*emptypb.Empty, error)
}ApiHubCurateServer is the server API for ApiHubCurate service. All implementations should embed UnimplementedApiHubCurateServer for forward compatibility
ApiHubDependenciesClient
type ApiHubDependenciesClient interface {
// Create a dependency between two entities in the API hub.
CreateDependency(ctx context.Context, in *CreateDependencyRequest, opts ...grpc.CallOption) (*Dependency, error)
// Get details about a dependency resource in the API hub.
GetDependency(ctx context.Context, in *GetDependencyRequest, opts ...grpc.CallOption) (*Dependency, error)
// Update a dependency based on the
// [update_mask][google.cloud.apihub.v1.UpdateDependencyRequest.update_mask]
// provided in the request.
//
// The following fields in the [dependency][google.cloud.apihub.v1.Dependency]
// can be updated:
// * [description][google.cloud.apihub.v1.Dependency.description]
UpdateDependency(ctx context.Context, in *UpdateDependencyRequest, opts ...grpc.CallOption) (*Dependency, error)
// Delete the dependency resource.
DeleteDependency(ctx context.Context, in *DeleteDependencyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// List dependencies based on the provided filter and pagination parameters.
ListDependencies(ctx context.Context, in *ListDependenciesRequest, opts ...grpc.CallOption) (*ListDependenciesResponse, error)
}ApiHubDependenciesClient is the client API for ApiHubDependencies service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewApiHubDependenciesClient
func NewApiHubDependenciesClient(cc grpc.ClientConnInterface) ApiHubDependenciesClientApiHubDependenciesServer
type ApiHubDependenciesServer interface {
// Create a dependency between two entities in the API hub.
CreateDependency(context.Context, *CreateDependencyRequest) (*Dependency, error)
// Get details about a dependency resource in the API hub.
GetDependency(context.Context, *GetDependencyRequest) (*Dependency, error)
// Update a dependency based on the
// [update_mask][google.cloud.apihub.v1.UpdateDependencyRequest.update_mask]
// provided in the request.
//
// The following fields in the [dependency][google.cloud.apihub.v1.Dependency]
// can be updated:
// * [description][google.cloud.apihub.v1.Dependency.description]
UpdateDependency(context.Context, *UpdateDependencyRequest) (*Dependency, error)
// Delete the dependency resource.
DeleteDependency(context.Context, *DeleteDependencyRequest) (*emptypb.Empty, error)
// List dependencies based on the provided filter and pagination parameters.
ListDependencies(context.Context, *ListDependenciesRequest) (*ListDependenciesResponse, error)
}ApiHubDependenciesServer is the server API for ApiHubDependencies service. All implementations should embed UnimplementedApiHubDependenciesServer for forward compatibility
ApiHubDiscoveryClient
type ApiHubDiscoveryClient interface {
// Lists all the DiscoveredAPIObservations in a given project and location.
ListDiscoveredApiObservations(ctx context.Context, in *ListDiscoveredApiObservationsRequest, opts ...grpc.CallOption) (*ListDiscoveredApiObservationsResponse, error)
// Gets a DiscoveredAPIObservation in a given project, location and
// ApiObservation.
GetDiscoveredApiObservation(ctx context.Context, in *GetDiscoveredApiObservationRequest, opts ...grpc.CallOption) (*DiscoveredApiObservation, error)
// Lists all the DiscoveredAPIOperations in a given project, location and
// ApiObservation.
ListDiscoveredApiOperations(ctx context.Context, in *ListDiscoveredApiOperationsRequest, opts ...grpc.CallOption) (*ListDiscoveredApiOperationsResponse, error)
// Gets a DiscoveredAPIOperation in a given project, location,
// ApiObservation and ApiOperation.
GetDiscoveredApiOperation(ctx context.Context, in *GetDiscoveredApiOperationRequest, opts ...grpc.CallOption) (*DiscoveredApiOperation, error)
}ApiHubDiscoveryClient is the client API for ApiHubDiscovery service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewApiHubDiscoveryClient
func NewApiHubDiscoveryClient(cc grpc.ClientConnInterface) ApiHubDiscoveryClientApiHubDiscoveryServer
type ApiHubDiscoveryServer interface {
// Lists all the DiscoveredAPIObservations in a given project and location.
ListDiscoveredApiObservations(context.Context, *ListDiscoveredApiObservationsRequest) (*ListDiscoveredApiObservationsResponse, error)
// Gets a DiscoveredAPIObservation in a given project, location and
// ApiObservation.
GetDiscoveredApiObservation(context.Context, *GetDiscoveredApiObservationRequest) (*DiscoveredApiObservation, error)
// Lists all the DiscoveredAPIOperations in a given project, location and
// ApiObservation.
ListDiscoveredApiOperations(context.Context, *ListDiscoveredApiOperationsRequest) (*ListDiscoveredApiOperationsResponse, error)
// Gets a DiscoveredAPIOperation in a given project, location,
// ApiObservation and ApiOperation.
GetDiscoveredApiOperation(context.Context, *GetDiscoveredApiOperationRequest) (*DiscoveredApiOperation, error)
}ApiHubDiscoveryServer is the server API for ApiHubDiscovery service. All implementations should embed UnimplementedApiHubDiscoveryServer for forward compatibility
ApiHubInstance
type ApiHubInstance struct {
// Identifier. Format:
// `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. Creation timestamp.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Last update timestamp.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. The current state of the ApiHub instance.
State ApiHubInstance_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.apihub.v1.ApiHubInstance_State" json:"state,omitempty"`
// Output only. Extra information about ApiHub instance state. Currently the
// message would be populated when state is `FAILED`.
StateMessage string `protobuf:"bytes,5,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"`
// Required. Config of the ApiHub instance.
Config *ApiHubInstance_Config `protobuf:"bytes,6,opt,name=config,proto3" json:"config,omitempty"`
// Optional. Instance labels to represent user-provided metadata.
// Refer to cloud documentation on labels for more details.
// https://cloud.google.com/compute/docs/labeling-resources
Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. Description of the ApiHub instance.
Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}An ApiHubInstance represents the instance resources of the API Hub. Currently, only one ApiHub instance is allowed for each project.
func (*ApiHubInstance) Descriptor
func (*ApiHubInstance) Descriptor() ([]byte, []int)Deprecated: Use ApiHubInstance.ProtoReflect.Descriptor instead.
func (*ApiHubInstance) GetConfig
func (x *ApiHubInstance) GetConfig() *ApiHubInstance_Configfunc (*ApiHubInstance) GetCreateTime
func (x *ApiHubInstance) GetCreateTime() *timestamppb.Timestampfunc (*ApiHubInstance) GetDescription
func (x *ApiHubInstance) GetDescription() stringfunc (*ApiHubInstance) GetLabels
func (x *ApiHubInstance) GetLabels() map[string]stringfunc (*ApiHubInstance) GetName
func (x *ApiHubInstance) GetName() stringfunc (*ApiHubInstance) GetState
func (x *ApiHubInstance) GetState() ApiHubInstance_Statefunc (*ApiHubInstance) GetStateMessage
func (x *ApiHubInstance) GetStateMessage() stringfunc (*ApiHubInstance) GetUpdateTime
func (x *ApiHubInstance) GetUpdateTime() *timestamppb.Timestampfunc (*ApiHubInstance) ProtoMessage
func (*ApiHubInstance) ProtoMessage()func (*ApiHubInstance) ProtoReflect
func (x *ApiHubInstance) ProtoReflect() protoreflect.Messagefunc (*ApiHubInstance) Reset
func (x *ApiHubInstance) Reset()func (*ApiHubInstance) String
func (x *ApiHubInstance) String() stringApiHubInstance_Config
type ApiHubInstance_Config struct {
// Optional. The Customer Managed Encryption Key (CMEK) used for data
// encryption. The CMEK name should follow the format of
// `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`,
// where the location must match the instance location.
// If the CMEK is not provided, a GMEK will be created for the instance.
CmekKeyName string `protobuf:"bytes,1,opt,name=cmek_key_name,json=cmekKeyName,proto3" json:"cmek_key_name,omitempty"`
// Optional. If true, the search will be disabled for the instance. The
// default value is false.
DisableSearch bool `protobuf:"varint,2,opt,name=disable_search,json=disableSearch,proto3" json:"disable_search,omitempty"`
// Optional. The name of the Vertex AI location where the data store is
// stored.
VertexLocation string `protobuf:"bytes,3,opt,name=vertex_location,json=vertexLocation,proto3" json:"vertex_location,omitempty"`
// Optional. Encryption type for the region. If the encryption type is CMEK,
// the cmek_key_name must be provided. If no encryption type is provided,
// GMEK will be used.
EncryptionType ApiHubInstance_Config_EncryptionType `protobuf:"varint,4,opt,name=encryption_type,json=encryptionType,proto3,enum=google.cloud.apihub.v1.ApiHubInstance_Config_EncryptionType" json:"encryption_type,omitempty"`
// contains filtered or unexported fields
}Available configurations to provision an ApiHub Instance.
func (*ApiHubInstance_Config) Descriptor
func (*ApiHubInstance_Config) Descriptor() ([]byte, []int)Deprecated: Use ApiHubInstance_Config.ProtoReflect.Descriptor instead.
func (*ApiHubInstance_Config) GetCmekKeyName
func (x *ApiHubInstance_Config) GetCmekKeyName() stringfunc (*ApiHubInstance_Config) GetDisableSearch
func (x *ApiHubInstance_Config) GetDisableSearch() boolfunc (*ApiHubInstance_Config) GetEncryptionType
func (x *ApiHubInstance_Config) GetEncryptionType() ApiHubInstance_Config_EncryptionTypefunc (*ApiHubInstance_Config) GetVertexLocation
func (x *ApiHubInstance_Config) GetVertexLocation() stringfunc (*ApiHubInstance_Config) ProtoMessage
func (*ApiHubInstance_Config) ProtoMessage()func (*ApiHubInstance_Config) ProtoReflect
func (x *ApiHubInstance_Config) ProtoReflect() protoreflect.Messagefunc (*ApiHubInstance_Config) Reset
func (x *ApiHubInstance_Config) Reset()func (*ApiHubInstance_Config) String
func (x *ApiHubInstance_Config) String() stringApiHubInstance_Config_EncryptionType
type ApiHubInstance_Config_EncryptionType int32Types of data encryption.
ApiHubInstance_Config_ENCRYPTION_TYPE_UNSPECIFIED, ApiHubInstance_Config_GMEK, ApiHubInstance_Config_CMEK
const (
// Encryption type unspecified.
ApiHubInstance_Config_ENCRYPTION_TYPE_UNSPECIFIED ApiHubInstance_Config_EncryptionType = 0
// Default encryption using Google managed encryption key.
ApiHubInstance_Config_GMEK ApiHubInstance_Config_EncryptionType = 1
// Encryption using customer managed encryption key.
ApiHubInstance_Config_CMEK ApiHubInstance_Config_EncryptionType = 2
)func (ApiHubInstance_Config_EncryptionType) Descriptor
func (ApiHubInstance_Config_EncryptionType) Descriptor() protoreflect.EnumDescriptorfunc (ApiHubInstance_Config_EncryptionType) Enum
func (x ApiHubInstance_Config_EncryptionType) Enum() *ApiHubInstance_Config_EncryptionTypefunc (ApiHubInstance_Config_EncryptionType) EnumDescriptor
func (ApiHubInstance_Config_EncryptionType) EnumDescriptor() ([]byte, []int)Deprecated: Use ApiHubInstance_Config_EncryptionType.Descriptor instead.
func (ApiHubInstance_Config_EncryptionType) Number
func (x ApiHubInstance_Config_EncryptionType) Number() protoreflect.EnumNumberfunc (ApiHubInstance_Config_EncryptionType) String
func (x ApiHubInstance_Config_EncryptionType) String() stringfunc (ApiHubInstance_Config_EncryptionType) Type
func (ApiHubInstance_Config_EncryptionType) Type() protoreflect.EnumTypeApiHubInstance_State
type ApiHubInstance_State int32State of the ApiHub Instance.
ApiHubInstance_STATE_UNSPECIFIED, ApiHubInstance_INACTIVE, ApiHubInstance_CREATING, ApiHubInstance_ACTIVE, ApiHubInstance_UPDATING, ApiHubInstance_DELETING, ApiHubInstance_FAILED
const (
// The default value. This value is used if the state is omitted.
ApiHubInstance_STATE_UNSPECIFIED ApiHubInstance_State = 0
// The ApiHub instance has not been initialized or has been deleted.
ApiHubInstance_INACTIVE ApiHubInstance_State = 1
// The ApiHub instance is being created.
ApiHubInstance_CREATING ApiHubInstance_State = 2
// The ApiHub instance has been created and is ready for use.
ApiHubInstance_ACTIVE ApiHubInstance_State = 3
// The ApiHub instance is being updated.
ApiHubInstance_UPDATING ApiHubInstance_State = 4
// The ApiHub instance is being deleted.
ApiHubInstance_DELETING ApiHubInstance_State = 5
// The ApiHub instance encountered an error during a state change.
ApiHubInstance_FAILED ApiHubInstance_State = 6
)func (ApiHubInstance_State) Descriptor
func (ApiHubInstance_State) Descriptor() protoreflect.EnumDescriptorfunc (ApiHubInstance_State) Enum
func (x ApiHubInstance_State) Enum() *ApiHubInstance_Statefunc (ApiHubInstance_State) EnumDescriptor
func (ApiHubInstance_State) EnumDescriptor() ([]byte, []int)Deprecated: Use ApiHubInstance_State.Descriptor instead.
func (ApiHubInstance_State) Number
func (x ApiHubInstance_State) Number() protoreflect.EnumNumberfunc (ApiHubInstance_State) String
func (x ApiHubInstance_State) String() stringfunc (ApiHubInstance_State) Type
func (ApiHubInstance_State) Type() protoreflect.EnumTypeApiHubPluginClient
type ApiHubPluginClient interface {
// Get an API Hub plugin.
GetPlugin(ctx context.Context, in *GetPluginRequest, opts ...grpc.CallOption) (*Plugin, error)
// Enables a plugin.
// The `state` of the plugin after enabling is `ENABLED`
EnablePlugin(ctx context.Context, in *EnablePluginRequest, opts ...grpc.CallOption) (*Plugin, error)
// Disables a plugin.
// The `state` of the plugin after disabling is `DISABLED`
DisablePlugin(ctx context.Context, in *DisablePluginRequest, opts ...grpc.CallOption) (*Plugin, error)
// Create an API Hub plugin resource in the API hub.
// Once a plugin is created, it can be used to create plugin instances.
CreatePlugin(ctx context.Context, in *CreatePluginRequest, opts ...grpc.CallOption) (*Plugin, error)
// List all the plugins in a given project and location.
ListPlugins(ctx context.Context, in *ListPluginsRequest, opts ...grpc.CallOption) (*ListPluginsResponse, error)
// Delete a Plugin in API hub.
// Note, only user owned plugins can be deleted via this method.
DeletePlugin(ctx context.Context, in *DeletePluginRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Creates a Plugin instance in the API hub.
CreatePluginInstance(ctx context.Context, in *CreatePluginInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Executes a plugin instance in the API hub.
ExecutePluginInstanceAction(ctx context.Context, in *ExecutePluginInstanceActionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Get an API Hub plugin instance.
GetPluginInstance(ctx context.Context, in *GetPluginInstanceRequest, opts ...grpc.CallOption) (*PluginInstance, error)
// List all the plugins in a given project and location.
// `-` can be used as wildcard value for {plugin_id}
ListPluginInstances(ctx context.Context, in *ListPluginInstancesRequest, opts ...grpc.CallOption) (*ListPluginInstancesResponse, error)
// Enables a plugin instance in the API hub.
EnablePluginInstanceAction(ctx context.Context, in *EnablePluginInstanceActionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Disables a plugin instance in the API hub.
DisablePluginInstanceAction(ctx context.Context, in *DisablePluginInstanceActionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates a plugin instance in the API hub.
// The following fields in the
// [plugin_instance][google.cloud.apihub.v1.PluginInstance] can be updated
// currently:
//
// * [display_name][google.cloud.apihub.v1.PluginInstance.display_name]
// * [schedule_cron_expression][PluginInstance.actions.schedule_cron_expression]
//
// The
// [update_mask][google.cloud.apihub.v1.UpdatePluginInstanceRequest.update_mask]
// should be used to specify the fields being updated.
//
// To update the
// [auth_config][google.cloud.apihub.v1.PluginInstance.auth_config] and
// [additional_config][google.cloud.apihub.v1.PluginInstance.additional_config]
// of the plugin instance, use the
// [ApplyPluginInstanceConfig][google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig]
// method.
UpdatePluginInstance(ctx context.Context, in *UpdatePluginInstanceRequest, opts ...grpc.CallOption) (*PluginInstance, error)
// Deletes a plugin instance in the API hub.
DeletePluginInstance(ctx context.Context, in *DeletePluginInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}ApiHubPluginClient is the client API for ApiHubPlugin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewApiHubPluginClient
func NewApiHubPluginClient(cc grpc.ClientConnInterface) ApiHubPluginClientApiHubPluginServer
type ApiHubPluginServer interface {
// Get an API Hub plugin.
GetPlugin(context.Context, *GetPluginRequest) (*Plugin, error)
// Enables a plugin.
// The `state` of the plugin after enabling is `ENABLED`
EnablePlugin(context.Context, *EnablePluginRequest) (*Plugin, error)
// Disables a plugin.
// The `state` of the plugin after disabling is `DISABLED`
DisablePlugin(context.Context, *DisablePluginRequest) (*Plugin, error)
// Create an API Hub plugin resource in the API hub.
// Once a plugin is created, it can be used to create plugin instances.
CreatePlugin(context.Context, *CreatePluginRequest) (*Plugin, error)
// List all the plugins in a given project and location.
ListPlugins(context.Context, *ListPluginsRequest) (*ListPluginsResponse, error)
// Delete a Plugin in API hub.
// Note, only user owned plugins can be deleted via this method.
DeletePlugin(context.Context, *DeletePluginRequest) (*longrunningpb.Operation, error)
// Creates a Plugin instance in the API hub.
CreatePluginInstance(context.Context, *CreatePluginInstanceRequest) (*longrunningpb.Operation, error)
// Executes a plugin instance in the API hub.
ExecutePluginInstanceAction(context.Context, *ExecutePluginInstanceActionRequest) (*longrunningpb.Operation, error)
// Get an API Hub plugin instance.
GetPluginInstance(context.Context, *GetPluginInstanceRequest) (*PluginInstance, error)
// List all the plugins in a given project and location.
// `-` can be used as wildcard value for {plugin_id}
ListPluginInstances(context.Context, *ListPluginInstancesRequest) (*ListPluginInstancesResponse, error)
// Enables a plugin instance in the API hub.
EnablePluginInstanceAction(context.Context, *EnablePluginInstanceActionRequest) (*longrunningpb.Operation, error)
// Disables a plugin instance in the API hub.
DisablePluginInstanceAction(context.Context, *DisablePluginInstanceActionRequest) (*longrunningpb.Operation, error)
// Updates a plugin instance in the API hub.
// The following fields in the
// [plugin_instance][google.cloud.apihub.v1.PluginInstance] can be updated
// currently:
//
// * [display_name][google.cloud.apihub.v1.PluginInstance.display_name]
// * [schedule_cron_expression][PluginInstance.actions.schedule_cron_expression]
//
// The
// [update_mask][google.cloud.apihub.v1.UpdatePluginInstanceRequest.update_mask]
// should be used to specify the fields being updated.
//
// To update the
// [auth_config][google.cloud.apihub.v1.PluginInstance.auth_config] and
// [additional_config][google.cloud.apihub.v1.PluginInstance.additional_config]
// of the plugin instance, use the
// [ApplyPluginInstanceConfig][google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig]
// method.
UpdatePluginInstance(context.Context, *UpdatePluginInstanceRequest) (*PluginInstance, error)
// Deletes a plugin instance in the API hub.
DeletePluginInstance(context.Context, *DeletePluginInstanceRequest) (*longrunningpb.Operation, error)
}ApiHubPluginServer is the server API for ApiHubPlugin service. All implementations should embed UnimplementedApiHubPluginServer for forward compatibility
ApiHubResource
type ApiHubResource struct {
// Types that are assignable to Resource:
//
// *ApiHubResource_Api
// *ApiHubResource_Operation
// *ApiHubResource_Deployment
// *ApiHubResource_Spec
// *ApiHubResource_Definition
// *ApiHubResource_Version
Resource isApiHubResource_Resource `protobuf_oneof:"resource"`
// contains filtered or unexported fields
}ApiHubResource is one of the resources such as Api, Operation, Deployment, Definition, Spec and Version resources stored in API-Hub.
func (*ApiHubResource) Descriptor
func (*ApiHubResource) Descriptor() ([]byte, []int)Deprecated: Use ApiHubResource.ProtoReflect.Descriptor instead.
func (*ApiHubResource) GetApi
func (x *ApiHubResource) GetApi() *Apifunc (*ApiHubResource) GetDefinition
func (x *ApiHubResource) GetDefinition() *Definitionfunc (*ApiHubResource) GetDeployment
func (x *ApiHubResource) GetDeployment() *Deploymentfunc (*ApiHubResource) GetOperation
func (x *ApiHubResource) GetOperation() *ApiOperationfunc (*ApiHubResource) GetResource
func (m *ApiHubResource) GetResource() isApiHubResource_Resourcefunc (*ApiHubResource) GetSpec
func (x *ApiHubResource) GetSpec() *Specfunc (*ApiHubResource) GetVersion
func (x *ApiHubResource) GetVersion() *Versionfunc (*ApiHubResource) ProtoMessage
func (*ApiHubResource) ProtoMessage()func (*ApiHubResource) ProtoReflect
func (x *ApiHubResource) ProtoReflect() protoreflect.Messagefunc (*ApiHubResource) Reset
func (x *ApiHubResource) Reset()func (*ApiHubResource) String
func (x *ApiHubResource) String() stringApiHubResource_Api
type ApiHubResource_Api struct {
// This represents Api resource in search results. Only name, display_name,
// description and owner fields are populated in search results.
Api *Api `protobuf:"bytes,1,opt,name=api,proto3,oneof"`
}ApiHubResource_Definition
type ApiHubResource_Definition struct {
// This represents Definition resource in search results.
// Only name field is populated in search results.
Definition *Definition `protobuf:"bytes,5,opt,name=definition,proto3,oneof"`
}ApiHubResource_Deployment
type ApiHubResource_Deployment struct {
// This represents Deployment resource in search results. Only name,
// display_name, description, deployment_type and api_versions fields are
// populated in search results.
Deployment *Deployment `protobuf:"bytes,3,opt,name=deployment,proto3,oneof"`
}ApiHubResource_Operation
type ApiHubResource_Operation struct {
// This represents ApiOperation resource in search results. Only name,
// description, spec and details fields are populated in search results.
Operation *ApiOperation `protobuf:"bytes,2,opt,name=operation,proto3,oneof"`
}ApiHubResource_Spec
type ApiHubResource_Spec struct {
// This represents Spec resource in search results. Only name,
// display_name, description, spec_type and documentation fields are
// populated in search results.
Spec *Spec `protobuf:"bytes,4,opt,name=spec,proto3,oneof"`
}ApiHubResource_Version
type ApiHubResource_Version struct {
// This represents Version resource in search results. Only name,
// display_name, description, lifecycle, compliance and accreditation fields
// are populated in search results.
Version *Version `protobuf:"bytes,6,opt,name=version,proto3,oneof"`
}ApiHubServer
type ApiHubServer interface {
// Create an API resource in the API hub.
// Once an API resource is created, versions can be added to it.
CreateApi(context.Context, *CreateApiRequest) (*Api, error)
// Get API resource details including the API versions contained in it.
GetApi(context.Context, *GetApiRequest) (*Api, error)
// List API resources in the API hub.
ListApis(context.Context, *ListApisRequest) (*ListApisResponse, error)
// Update an API resource in the API hub. The following fields in the
// [API][google.cloud.apihub.v1.Api] can be updated:
//
// * [display_name][google.cloud.apihub.v1.Api.display_name]
// * [description][google.cloud.apihub.v1.Api.description]
// * [owner][google.cloud.apihub.v1.Api.owner]
// * [documentation][google.cloud.apihub.v1.Api.documentation]
// * [target_user][google.cloud.apihub.v1.Api.target_user]
// * [team][google.cloud.apihub.v1.Api.team]
// * [business_unit][google.cloud.apihub.v1.Api.business_unit]
// * [maturity_level][google.cloud.apihub.v1.Api.maturity_level]
// * [api_style][google.cloud.apihub.v1.Api.api_style]
// * [attributes][google.cloud.apihub.v1.Api.attributes]
//
// The
// [update_mask][google.cloud.apihub.v1.UpdateApiRequest.update_mask]
// should be used to specify the fields being updated.
//
// Updating the owner field requires complete owner message
// and updates both owner and email fields.
UpdateApi(context.Context, *UpdateApiRequest) (*Api, error)
// Delete an API resource in the API hub. API can only be deleted if all
// underlying versions are deleted.
DeleteApi(context.Context, *DeleteApiRequest) (*emptypb.Empty, error)
// Create an API version for an API resource in the API hub.
CreateVersion(context.Context, *CreateVersionRequest) (*Version, error)
// Get details about the API version of an API resource. This will include
// information about the specs and operations present in the API
// version as well as the deployments linked to it.
GetVersion(context.Context, *GetVersionRequest) (*Version, error)
// List API versions of an API resource in the API hub.
ListVersions(context.Context, *ListVersionsRequest) (*ListVersionsResponse, error)
// Update API version. The following fields in the
// [version][google.cloud.apihub.v1.Version] can be updated currently:
//
// * [display_name][google.cloud.apihub.v1.Version.display_name]
// * [description][google.cloud.apihub.v1.Version.description]
// * [documentation][google.cloud.apihub.v1.Version.documentation]
// * [deployments][google.cloud.apihub.v1.Version.deployments]
// * [lifecycle][google.cloud.apihub.v1.Version.lifecycle]
// * [compliance][google.cloud.apihub.v1.Version.compliance]
// * [accreditation][google.cloud.apihub.v1.Version.accreditation]
// * [attributes][google.cloud.apihub.v1.Version.attributes]
//
// The
// [update_mask][google.cloud.apihub.v1.UpdateVersionRequest.update_mask]
// should be used to specify the fields being updated.
UpdateVersion(context.Context, *UpdateVersionRequest) (*Version, error)
// Delete an API version. Version can only be deleted if all underlying specs,
// operations, definitions and linked deployments are deleted.
DeleteVersion(context.Context, *DeleteVersionRequest) (*emptypb.Empty, error)
// Add a spec to an API version in the API hub.
// Multiple specs can be added to an API version.
// Note, while adding a spec, at least one of `contents` or `source_uri` must
// be provided. If `contents` is provided, then `spec_type` must also be
// provided.
//
// On adding a spec with contents to the version, the operations present in it
// will be added to the version.Note that the file contents in the spec should
// be of the same type as defined in the
// `projects/{project}/locations/{location}/attributes/system-spec-type`
// attribute associated with spec resource. Note that specs of various types
// can be uploaded, however parsing of details is supported for OpenAPI spec
// currently.
//
// In order to access the information parsed from the spec, use the
// [GetSpec][google.cloud.apihub.v1.ApiHub.GetSpec] method.
// In order to access the raw contents for a particular spec, use the
// [GetSpecContents][google.cloud.apihub.v1.ApiHub.GetSpecContents] method.
// In order to access the operations parsed from the spec, use the
// [ListAPIOperations][google.cloud.apihub.v1.ApiHub.ListApiOperations]
// method.
CreateSpec(context.Context, *CreateSpecRequest) (*Spec, error)
// Get details about the information parsed from a spec.
// Note that this method does not return the raw spec contents.
// Use [GetSpecContents][google.cloud.apihub.v1.ApiHub.GetSpecContents] method
// to retrieve the same.
GetSpec(context.Context, *GetSpecRequest) (*Spec, error)
// Get spec contents.
GetSpecContents(context.Context, *GetSpecContentsRequest) (*SpecContents, error)
// List specs corresponding to a particular API resource.
ListSpecs(context.Context, *ListSpecsRequest) (*ListSpecsResponse, error)
// Update spec. The following fields in the
// [spec][google.cloud.apihub.v1.Spec] can be updated:
//
// * [display_name][google.cloud.apihub.v1.Spec.display_name]
// * [source_uri][google.cloud.apihub.v1.Spec.source_uri]
// * [lint_response][google.cloud.apihub.v1.Spec.lint_response]
// * [attributes][google.cloud.apihub.v1.Spec.attributes]
// * [contents][google.cloud.apihub.v1.Spec.contents]
// * [spec_type][google.cloud.apihub.v1.Spec.spec_type]
//
// In case of an OAS spec, updating spec contents can lead to:
// 1. Creation, deletion and update of operations.
// 2. Creation, deletion and update of definitions.
// 3. Update of other info parsed out from the new spec.
//
// In case of contents or source_uri being present in update mask, spec_type
// must also be present. Also, spec_type can not be present in update mask if
// contents or source_uri is not present.
//
// The
// [update_mask][google.cloud.apihub.v1.UpdateSpecRequest.update_mask]
// should be used to specify the fields being updated.
UpdateSpec(context.Context, *UpdateSpecRequest) (*Spec, error)
// Delete a spec.
// Deleting a spec will also delete the associated operations from the
// version.
DeleteSpec(context.Context, *DeleteSpecRequest) (*emptypb.Empty, error)
// Create an apiOperation in an API version.
// An apiOperation can be created only if the version has no apiOperations
// which were created by parsing a spec.
CreateApiOperation(context.Context, *CreateApiOperationRequest) (*ApiOperation, error)
// Get details about a particular operation in API version.
GetApiOperation(context.Context, *GetApiOperationRequest) (*ApiOperation, error)
// List operations in an API version.
ListApiOperations(context.Context, *ListApiOperationsRequest) (*ListApiOperationsResponse, error)
// Update an operation in an API version. The following fields in the
// [ApiOperation resource][google.cloud.apihub.v1.ApiOperation] can be
// updated:
//
// * [details.description][ApiOperation.details.description]
// * [details.documentation][ApiOperation.details.documentation]
// * [details.http_operation.path][ApiOperation.details.http_operation.path.path]
// * [details.http_operation.method][ApiOperation.details.http_operation.method]
// * [details.deprecated][ApiOperation.details.deprecated]
// * [attributes][google.cloud.apihub.v1.ApiOperation.attributes]
//
// The
// [update_mask][google.cloud.apihub.v1.UpdateApiOperationRequest.update_mask]
// should be used to specify the fields being updated.
//
// An operation can be updated only if the operation was created via
// [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation] API.
// If the operation was created by parsing the spec, then it can be edited by
// updating the spec.
UpdateApiOperation(context.Context, *UpdateApiOperationRequest) (*ApiOperation, error)
// Delete an operation in an API version and we can delete only the
// operations created via create API. If the operation was created by parsing
// the spec, then it can be deleted by editing or deleting the spec.
DeleteApiOperation(context.Context, *DeleteApiOperationRequest) (*emptypb.Empty, error)
// Get details about a definition in an API version.
GetDefinition(context.Context, *GetDefinitionRequest) (*Definition, error)
// Create a deployment resource in the API hub.
// Once a deployment resource is created, it can be associated with API
// versions.
CreateDeployment(context.Context, *CreateDeploymentRequest) (*Deployment, error)
// Get details about a deployment and the API versions linked to it.
GetDeployment(context.Context, *GetDeploymentRequest) (*Deployment, error)
// List deployment resources in the API hub.
ListDeployments(context.Context, *ListDeploymentsRequest) (*ListDeploymentsResponse, error)
// Update a deployment resource in the API hub. The following fields in the
// [deployment resource][google.cloud.apihub.v1.Deployment] can be
// updated:
//
// * [display_name][google.cloud.apihub.v1.Deployment.display_name]
// * [description][google.cloud.apihub.v1.Deployment.description]
// * [documentation][google.cloud.apihub.v1.Deployment.documentation]
// * [deployment_type][google.cloud.apihub.v1.Deployment.deployment_type]
// * [resource_uri][google.cloud.apihub.v1.Deployment.resource_uri]
// * [endpoints][google.cloud.apihub.v1.Deployment.endpoints]
// * [slo][google.cloud.apihub.v1.Deployment.slo]
// * [environment][google.cloud.apihub.v1.Deployment.environment]
// * [attributes][google.cloud.apihub.v1.Deployment.attributes]
// * [source_project] [google.cloud.apihub.v1.Deployment.source_project]
// * [source_environment]
// [google.cloud.apihub.v1.Deployment.source_environment]
// * [management_url][google.cloud.apihub.v1.Deployment.management_url]
// * [source_uri][google.cloud.apihub.v1.Deployment.source_uri]
// The
// [update_mask][google.cloud.apihub.v1.UpdateDeploymentRequest.update_mask]
// should be used to specify the fields being updated.
UpdateDeployment(context.Context, *UpdateDeploymentRequest) (*Deployment, error)
// Delete a deployment resource in the API hub.
DeleteDeployment(context.Context, *DeleteDeploymentRequest) (*emptypb.Empty, error)
// Create a user defined attribute.
//
// Certain pre defined attributes are already created by the API hub. These
// attributes will have type as `SYSTEM_DEFINED` and can be listed via
// [ListAttributes][google.cloud.apihub.v1.ApiHub.ListAttributes] method.
// Allowed values for the same can be updated via
// [UpdateAttribute][google.cloud.apihub.v1.ApiHub.UpdateAttribute] method.
CreateAttribute(context.Context, *CreateAttributeRequest) (*Attribute, error)
// Get details about the attribute.
GetAttribute(context.Context, *GetAttributeRequest) (*Attribute, error)
// Update the attribute. The following fields in the
// [Attribute resource][google.cloud.apihub.v1.Attribute] can be updated:
//
// * [display_name][google.cloud.apihub.v1.Attribute.display_name]
// The display name can be updated for user defined attributes only.
// * [description][google.cloud.apihub.v1.Attribute.description]
// The description can be updated for user defined attributes only.
// * [allowed_values][google.cloud.apihub.v1.Attribute.allowed_values]
// To update the list of allowed values, clients need to use the fetched list
// of allowed values and add or remove values to or from the same list.
// The mutable allowed values can be updated for both user defined and System
// defined attributes. The immutable allowed values cannot be updated or
// deleted. The updated list of allowed values cannot be empty. If an allowed
// value that is already used by some resource's attribute is deleted, then
// the association between the resource and the attribute value will also be
// deleted.
// * [cardinality][google.cloud.apihub.v1.Attribute.cardinality]
// The cardinality can be updated for user defined attributes only.
// Cardinality can only be increased during an update.
//
// The
// [update_mask][google.cloud.apihub.v1.UpdateAttributeRequest.update_mask]
// should be used to specify the fields being updated.
UpdateAttribute(context.Context, *UpdateAttributeRequest) (*Attribute, error)
// Delete an attribute.
//
// Note: System defined attributes cannot be deleted. All
// associations of the attribute being deleted with any API hub resource will
// also get deleted.
DeleteAttribute(context.Context, *DeleteAttributeRequest) (*emptypb.Empty, error)
// List all attributes.
ListAttributes(context.Context, *ListAttributesRequest) (*ListAttributesResponse, error)
// Search across API-Hub resources.
SearchResources(context.Context, *SearchResourcesRequest) (*SearchResourcesResponse, error)
// Create an External API resource in the API hub.
CreateExternalApi(context.Context, *CreateExternalApiRequest) (*ExternalApi, error)
// Get details about an External API resource in the API hub.
GetExternalApi(context.Context, *GetExternalApiRequest) (*ExternalApi, error)
// Update an External API resource in the API hub. The following fields can be
// updated:
//
// * [display_name][google.cloud.apihub.v1.ExternalApi.display_name]
// * [description][google.cloud.apihub.v1.ExternalApi.description]
// * [documentation][google.cloud.apihub.v1.ExternalApi.documentation]
// * [endpoints][google.cloud.apihub.v1.ExternalApi.endpoints]
// * [paths][google.cloud.apihub.v1.ExternalApi.paths]
//
// The
// [update_mask][google.cloud.apihub.v1.UpdateExternalApiRequest.update_mask]
// should be used to specify the fields being updated.
UpdateExternalApi(context.Context, *UpdateExternalApiRequest) (*ExternalApi, error)
// Delete an External API resource in the API hub.
DeleteExternalApi(context.Context, *DeleteExternalApiRequest) (*emptypb.Empty, error)
// List External API resources in the API hub.
ListExternalApis(context.Context, *ListExternalApisRequest) (*ListExternalApisResponse, error)
}ApiHubServer is the server API for ApiHub service. All implementations should embed UnimplementedApiHubServer for forward compatibility
ApiMetadataList
type ApiMetadataList struct {
// Required. The list of API metadata.
ApiMetadata []*APIMetadata `protobuf:"bytes,1,rep,name=api_metadata,json=apiMetadata,proto3" json:"api_metadata,omitempty"`
// contains filtered or unexported fields
}The message to hold repeated API metadata.
func (*ApiMetadataList) Descriptor
func (*ApiMetadataList) Descriptor() ([]byte, []int)Deprecated: Use ApiMetadataList.ProtoReflect.Descriptor instead.
func (*ApiMetadataList) GetApiMetadata
func (x *ApiMetadataList) GetApiMetadata() []*APIMetadatafunc (*ApiMetadataList) ProtoMessage
func (*ApiMetadataList) ProtoMessage()func (*ApiMetadataList) ProtoReflect
func (x *ApiMetadataList) ProtoReflect() protoreflect.Messagefunc (*ApiMetadataList) Reset
func (x *ApiMetadataList) Reset()func (*ApiMetadataList) String
func (x *ApiMetadataList) String() stringApiOperation
type ApiOperation struct {
// Identifier. The name of the operation.
//
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The name of the spec will be of the format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
// Note:The name of the spec will be empty if the operation is created via
// [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation] API.
Spec string `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
// Optional. Operation details.
// Note: Even though this field is optional, it is required for
// [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
// API and we will fail the request if not provided.
Details *OperationDetails `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
// Output only. The time at which the operation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time at which the operation was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. The list of user defined attributes associated with the API
// operation resource. The key is the attribute name. It will be of the
// format: `projects/{project}/locations/{location}/attributes/{attribute}`.
// The value is the attribute values associated with the resource.
Attributes map[string]*AttributeValues `protobuf:"bytes,6,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Output only. The list of sources and metadata from the sources of the API
// operation.
SourceMetadata []*SourceMetadata `protobuf:"bytes,7,rep,name=source_metadata,json=sourceMetadata,proto3" json:"source_metadata,omitempty"`
// contains filtered or unexported fields
}Represents an operation contained in an API version in the API Hub. An operation is added/updated/deleted in an API version when a new spec is added or an existing spec is updated/deleted in a version. Currently, an operation will be created only corresponding to OpenAPI spec as parsing is supported for OpenAPI spec. Alternatively operations can be managed via create,update and delete APIs, creation of apiOperation can be possible only for version with no parsed operations and update/delete can be possible only for operations created via create API.
func (*ApiOperation) Descriptor
func (*ApiOperation) Descriptor() ([]byte, []int)Deprecated: Use ApiOperation.ProtoReflect.Descriptor instead.
func (*ApiOperation) GetAttributes
func (x *ApiOperation) GetAttributes() map[string]*AttributeValuesfunc (*ApiOperation) GetCreateTime
func (x *ApiOperation) GetCreateTime() *timestamppb.Timestampfunc (*ApiOperation) GetDetails
func (x *ApiOperation) GetDetails() *OperationDetailsfunc (*ApiOperation) GetName
func (x *ApiOperation) GetName() stringfunc (*ApiOperation) GetSourceMetadata
func (x *ApiOperation) GetSourceMetadata() []*SourceMetadatafunc (*ApiOperation) GetSpec
func (x *ApiOperation) GetSpec() stringfunc (*ApiOperation) GetUpdateTime
func (x *ApiOperation) GetUpdateTime() *timestamppb.Timestampfunc (*ApiOperation) ProtoMessage
func (*ApiOperation) ProtoMessage()func (*ApiOperation) ProtoReflect
func (x *ApiOperation) ProtoReflect() protoreflect.Messagefunc (*ApiOperation) Reset
func (x *ApiOperation) Reset()func (*ApiOperation) String
func (x *ApiOperation) String() stringApplicationIntegrationEndpointDetails
type ApplicationIntegrationEndpointDetails struct {
// Required. The endpoint URI should be a valid REST URI for triggering an
// Application Integration. Format:
// `https://integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute`
// or
// `https://{location}-integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute`
Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
// Required. The API trigger ID of the Application Integration workflow.
TriggerId string `protobuf:"bytes,2,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"`
// contains filtered or unexported fields
}The details of the Application Integration endpoint to be triggered for curation.
func (*ApplicationIntegrationEndpointDetails) Descriptor
func (*ApplicationIntegrationEndpointDetails) Descriptor() ([]byte, []int)Deprecated: Use ApplicationIntegrationEndpointDetails.ProtoReflect.Descriptor instead.
func (*ApplicationIntegrationEndpointDetails) GetTriggerId
func (x *ApplicationIntegrationEndpointDetails) GetTriggerId() stringfunc (*ApplicationIntegrationEndpointDetails) GetUri
func (x *ApplicationIntegrationEndpointDetails) GetUri() stringfunc (*ApplicationIntegrationEndpointDetails) ProtoMessage
func (*ApplicationIntegrationEndpointDetails) ProtoMessage()func (*ApplicationIntegrationEndpointDetails) ProtoReflect
func (x *ApplicationIntegrationEndpointDetails) ProtoReflect() protoreflect.Messagefunc (*ApplicationIntegrationEndpointDetails) Reset
func (x *ApplicationIntegrationEndpointDetails) Reset()func (*ApplicationIntegrationEndpointDetails) String
func (x *ApplicationIntegrationEndpointDetails) String() stringAttribute
type Attribute struct {
// Identifier. The name of the attribute in the API Hub.
//
// Format:
// `projects/{project}/locations/{location}/attributes/{attribute}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The display name of the attribute.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. The description of the attribute.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The definition type of the attribute.
DefinitionType Attribute_DefinitionType `protobuf:"varint,4,opt,name=definition_type,json=definitionType,proto3,enum=google.cloud.apihub.v1.Attribute_DefinitionType" json:"definition_type,omitempty"`
// Required. The scope of the attribute. It represents the resource in the API
// Hub to which the attribute can be linked.
Scope Attribute_Scope `protobuf:"varint,5,opt,name=scope,proto3,enum=google.cloud.apihub.v1.Attribute_Scope" json:"scope,omitempty"`
// Required. The type of the data of the attribute.
DataType Attribute_DataType `protobuf:"varint,6,opt,name=data_type,json=dataType,proto3,enum=google.cloud.apihub.v1.Attribute_DataType" json:"data_type,omitempty"`
// Optional. The list of allowed values when the attribute value is of type
// enum. This is required when the data_type of the attribute is ENUM. The
// maximum number of allowed values of an attribute will be 1000.
AllowedValues []*Attribute_AllowedValue `protobuf:"bytes,7,rep,name=allowed_values,json=allowedValues,proto3" json:"allowed_values,omitempty"`
// Optional. The maximum number of values that the attribute can have when
// associated with an API Hub resource. Cardinality 1 would represent a
// single-valued attribute. It must not be less than 1 or greater than 20. If
// not specified, the cardinality would be set to 1 by default and represent a
// single-valued attribute.
Cardinality int32 `protobuf:"varint,8,opt,name=cardinality,proto3" json:"cardinality,omitempty"`
// Output only. When mandatory is true, the attribute is mandatory for the
// resource specified in the scope. Only System defined attributes can be
// mandatory.
Mandatory bool `protobuf:"varint,9,opt,name=mandatory,proto3" json:"mandatory,omitempty"`
// Output only. The time at which the attribute was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time at which the attribute was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// contains filtered or unexported fields
}An attribute in the API Hub. An attribute is a name value pair which can be attached to different resources in the API hub based on the scope of the attribute. Attributes can either be pre-defined by the API Hub or created by users.
func (*Attribute) Descriptor
Deprecated: Use Attribute.ProtoReflect.Descriptor instead.
func (*Attribute) GetAllowedValues
func (x *Attribute) GetAllowedValues() []*Attribute_AllowedValuefunc (*Attribute) GetCardinality
func (*Attribute) GetCreateTime
func (x *Attribute) GetCreateTime() *timestamppb.Timestampfunc (*Attribute) GetDataType
func (x *Attribute) GetDataType() Attribute_DataTypefunc (*Attribute) GetDefinitionType
func (x *Attribute) GetDefinitionType() Attribute_DefinitionTypefunc (*Attribute) GetDescription
func (*Attribute) GetDisplayName
func (*Attribute) GetMandatory
func (*Attribute) GetName
func (*Attribute) GetScope
func (x *Attribute) GetScope() Attribute_Scopefunc (*Attribute) GetUpdateTime
func (x *Attribute) GetUpdateTime() *timestamppb.Timestampfunc (*Attribute) ProtoMessage
func (*Attribute) ProtoMessage()func (*Attribute) ProtoReflect
func (x *Attribute) ProtoReflect() protoreflect.Messagefunc (*Attribute) Reset
func (x *Attribute) Reset()func (*Attribute) String
AttributeValues
type AttributeValues struct {
// The attribute values associated with the resource.
//
// Types that are assignable to Value:
//
// *AttributeValues_EnumValues
// *AttributeValues_StringValues
// *AttributeValues_JsonValues
// *AttributeValues_UriValues
Value isAttributeValues_Value `protobuf_oneof:"Value"`
// Output only. The name of the attribute.
// Format: projects/{project}/locations/{location}/attributes/{attribute}
Attribute string `protobuf:"bytes,1,opt,name=attribute,proto3" json:"attribute,omitempty"`
// contains filtered or unexported fields
}The attribute values associated with resource.
func (*AttributeValues) Descriptor
func (*AttributeValues) Descriptor() ([]byte, []int)Deprecated: Use AttributeValues.ProtoReflect.Descriptor instead.
func (*AttributeValues) GetAttribute
func (x *AttributeValues) GetAttribute() stringfunc (*AttributeValues) GetEnumValues
func (x *AttributeValues) GetEnumValues() *AttributeValues_EnumAttributeValuesfunc (*AttributeValues) GetJsonValues
func (x *AttributeValues) GetJsonValues() *AttributeValues_StringAttributeValuesfunc (*AttributeValues) GetStringValues
func (x *AttributeValues) GetStringValues() *AttributeValues_StringAttributeValuesfunc (*AttributeValues) GetUriValues
func (x *AttributeValues) GetUriValues() *AttributeValues_StringAttributeValuesfunc (*AttributeValues) GetValue
func (m *AttributeValues) GetValue() isAttributeValues_Valuefunc (*AttributeValues) ProtoMessage
func (*AttributeValues) ProtoMessage()func (*AttributeValues) ProtoReflect
func (x *AttributeValues) ProtoReflect() protoreflect.Messagefunc (*AttributeValues) Reset
func (x *AttributeValues) Reset()func (*AttributeValues) String
func (x *AttributeValues) String() stringAttributeValues_EnumAttributeValues
type AttributeValues_EnumAttributeValues struct {
// Required. The attribute values in case attribute data type is enum.
Values []*Attribute_AllowedValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}The attribute values of data type enum.
func (*AttributeValues_EnumAttributeValues) Descriptor
func (*AttributeValues_EnumAttributeValues) Descriptor() ([]byte, []int)Deprecated: Use AttributeValues_EnumAttributeValues.ProtoReflect.Descriptor instead.
func (*AttributeValues_EnumAttributeValues) GetValues
func (x *AttributeValues_EnumAttributeValues) GetValues() []*Attribute_AllowedValuefunc (*AttributeValues_EnumAttributeValues) ProtoMessage
func (*AttributeValues_EnumAttributeValues) ProtoMessage()func (*AttributeValues_EnumAttributeValues) ProtoReflect
func (x *AttributeValues_EnumAttributeValues) ProtoReflect() protoreflect.Messagefunc (*AttributeValues_EnumAttributeValues) Reset
func (x *AttributeValues_EnumAttributeValues) Reset()func (*AttributeValues_EnumAttributeValues) String
func (x *AttributeValues_EnumAttributeValues) String() stringAttributeValues_EnumValues
type AttributeValues_EnumValues struct {
// The attribute values associated with a resource in case attribute data
// type is enum.
EnumValues *AttributeValues_EnumAttributeValues `protobuf:"bytes,2,opt,name=enum_values,json=enumValues,proto3,oneof"`
}AttributeValues_JsonValues
type AttributeValues_JsonValues struct {
// The attribute values associated with a resource in case attribute data
// type is JSON.
JsonValues *AttributeValues_StringAttributeValues `protobuf:"bytes,4,opt,name=json_values,json=jsonValues,proto3,oneof"`
}AttributeValues_StringAttributeValues
type AttributeValues_StringAttributeValues struct {
// Required. The attribute values in case attribute data type is string or
// JSON.
Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}The attribute values of data type string or JSON.
func (*AttributeValues_StringAttributeValues) Descriptor
func (*AttributeValues_StringAttributeValues) Descriptor() ([]byte, []int)Deprecated: Use AttributeValues_StringAttributeValues.ProtoReflect.Descriptor instead.
func (*AttributeValues_StringAttributeValues) GetValues
func (x *AttributeValues_StringAttributeValues) GetValues() []stringfunc (*AttributeValues_StringAttributeValues) ProtoMessage
func (*AttributeValues_StringAttributeValues) ProtoMessage()func (*AttributeValues_StringAttributeValues) ProtoReflect
func (x *AttributeValues_StringAttributeValues) ProtoReflect() protoreflect.Messagefunc (*AttributeValues_StringAttributeValues) Reset
func (x *AttributeValues_StringAttributeValues) Reset()func (*AttributeValues_StringAttributeValues) String
func (x *AttributeValues_StringAttributeValues) String() stringAttributeValues_StringValues
type AttributeValues_StringValues struct {
// The attribute values associated with a resource in case attribute data
// type is string.
StringValues *AttributeValues_StringAttributeValues `protobuf:"bytes,3,opt,name=string_values,json=stringValues,proto3,oneof"`
}AttributeValues_UriValues
type AttributeValues_UriValues struct {
// The attribute values associated with a resource in case attribute data
// type is URL, URI or IP, like gs://bucket-name/object-name.
UriValues *AttributeValues_StringAttributeValues `protobuf:"bytes,5,opt,name=uri_values,json=uriValues,proto3,oneof"`
}Attribute_AllowedValue
type Attribute_AllowedValue struct {
// Required. The ID of the allowed value.
// * If provided, the same will be used. The service will throw an error if
// the specified id is already used by another allowed value in the same
// attribute resource.
// * If not provided, a system generated id derived from the display name
// will be used. In this case, the service will handle conflict resolution
// by adding a system generated suffix in case of duplicates.
//
// This value should be 4-63 characters, and valid characters
// are /[a-z][0-9]-/.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Required. The display name of the allowed value.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. The detailed description of the allowed value.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Optional. When set to true, the allowed value cannot be updated or
// deleted by the user. It can only be true for System defined attributes.
Immutable bool `protobuf:"varint,4,opt,name=immutable,proto3" json:"immutable,omitempty"`
// contains filtered or unexported fields
}The value that can be assigned to the attribute when the data type is enum.
func (*Attribute_AllowedValue) Descriptor
func (*Attribute_AllowedValue) Descriptor() ([]byte, []int)Deprecated: Use Attribute_AllowedValue.ProtoReflect.Descriptor instead.
func (*Attribute_AllowedValue) GetDescription
func (x *Attribute_AllowedValue) GetDescription() stringfunc (*Attribute_AllowedValue) GetDisplayName
func (x *Attribute_AllowedValue) GetDisplayName() stringfunc (*Attribute_AllowedValue) GetId
func (x *Attribute_AllowedValue) GetId() stringfunc (*Attribute_AllowedValue) GetImmutable
func (x *Attribute_AllowedValue) GetImmutable() boolfunc (*Attribute_AllowedValue) ProtoMessage
func (*Attribute_AllowedValue) ProtoMessage()func (*Attribute_AllowedValue) ProtoReflect
func (x *Attribute_AllowedValue) ProtoReflect() protoreflect.Messagefunc (*Attribute_AllowedValue) Reset
func (x *Attribute_AllowedValue) Reset()func (*Attribute_AllowedValue) String
func (x *Attribute_AllowedValue) String() stringAttribute_DataType
type Attribute_DataType int32Enumeration of attribute's data type.
Attribute_DATA_TYPE_UNSPECIFIED, Attribute_ENUM, Attribute_JSON, Attribute_STRING, Attribute_URI
const (
// Attribute data type unspecified.
Attribute_DATA_TYPE_UNSPECIFIED Attribute_DataType = 0
// Attribute's value is of type enum.
Attribute_ENUM Attribute_DataType = 1
// Attribute's value is of type json.
Attribute_JSON Attribute_DataType = 2
// Attribute's value is of type string.
Attribute_STRING Attribute_DataType = 3
// Attribute's value is of type uri.
Attribute_URI Attribute_DataType = 4
)func (Attribute_DataType) Descriptor
func (Attribute_DataType) Descriptor() protoreflect.EnumDescriptorfunc (Attribute_DataType) Enum
func (x Attribute_DataType) Enum() *Attribute_DataTypefunc (Attribute_DataType) EnumDescriptor
func (Attribute_DataType) EnumDescriptor() ([]byte, []int)Deprecated: Use Attribute_DataType.Descriptor instead.
func (Attribute_DataType) Number
func (x Attribute_DataType) Number() protoreflect.EnumNumberfunc (Attribute_DataType) String
func (x Attribute_DataType) String() stringfunc (Attribute_DataType) Type
func (Attribute_DataType) Type() protoreflect.EnumTypeAttribute_DefinitionType
type Attribute_DefinitionType int32Enumeration of attribute definition types.
Attribute_DEFINITION_TYPE_UNSPECIFIED, Attribute_SYSTEM_DEFINED, Attribute_USER_DEFINED
const (
// Attribute definition type unspecified.
Attribute_DEFINITION_TYPE_UNSPECIFIED Attribute_DefinitionType = 0
// The attribute is predefined by the API Hub. Note that only the list of
// allowed values can be updated in this case via UpdateAttribute method.
Attribute_SYSTEM_DEFINED Attribute_DefinitionType = 1
// The attribute is defined by the user.
Attribute_USER_DEFINED Attribute_DefinitionType = 2
)func (Attribute_DefinitionType) Descriptor
func (Attribute_DefinitionType) Descriptor() protoreflect.EnumDescriptorfunc (Attribute_DefinitionType) Enum
func (x Attribute_DefinitionType) Enum() *Attribute_DefinitionTypefunc (Attribute_DefinitionType) EnumDescriptor
func (Attribute_DefinitionType) EnumDescriptor() ([]byte, []int)Deprecated: Use Attribute_DefinitionType.Descriptor instead.
func (Attribute_DefinitionType) Number
func (x Attribute_DefinitionType) Number() protoreflect.EnumNumberfunc (Attribute_DefinitionType) String
func (x Attribute_DefinitionType) String() stringfunc (Attribute_DefinitionType) Type
func (Attribute_DefinitionType) Type() protoreflect.EnumTypeAttribute_Scope
type Attribute_Scope int32Enumeration for the scope of the attribute representing the resource in the API Hub to which the attribute can be linked.
Attribute_SCOPE_UNSPECIFIED, Attribute_API, Attribute_VERSION, Attribute_SPEC, Attribute_API_OPERATION, Attribute_DEPLOYMENT, Attribute_DEPENDENCY, Attribute_DEFINITION, Attribute_EXTERNAL_API, Attribute_PLUGIN
const (
// Scope Unspecified.
Attribute_SCOPE_UNSPECIFIED Attribute_Scope = 0
// Attribute can be linked to an API.
Attribute_API Attribute_Scope = 1
// Attribute can be linked to an API version.
Attribute_VERSION Attribute_Scope = 2
// Attribute can be linked to a Spec.
Attribute_SPEC Attribute_Scope = 3
// Attribute can be linked to an API Operation.
Attribute_API_OPERATION Attribute_Scope = 4
// Attribute can be linked to a Deployment.
Attribute_DEPLOYMENT Attribute_Scope = 5
// Attribute can be linked to a Dependency.
Attribute_DEPENDENCY Attribute_Scope = 6
// Attribute can be linked to a definition.
Attribute_DEFINITION Attribute_Scope = 7
// Attribute can be linked to a ExternalAPI.
Attribute_EXTERNAL_API Attribute_Scope = 8
// Attribute can be linked to a Plugin.
Attribute_PLUGIN Attribute_Scope = 9
)func (Attribute_Scope) Descriptor
func (Attribute_Scope) Descriptor() protoreflect.EnumDescriptorfunc (Attribute_Scope) Enum
func (x Attribute_Scope) Enum() *Attribute_Scopefunc (Attribute_Scope) EnumDescriptor
func (Attribute_Scope) EnumDescriptor() ([]byte, []int)Deprecated: Use Attribute_Scope.Descriptor instead.
func (Attribute_Scope) Number
func (x Attribute_Scope) Number() protoreflect.EnumNumberfunc (Attribute_Scope) String
func (x Attribute_Scope) String() stringfunc (Attribute_Scope) Type
func (Attribute_Scope) Type() protoreflect.EnumTypeAuthConfig
type AuthConfig struct {
// Supported auth types.
//
// Types that are assignable to Config:
//
// *AuthConfig_GoogleServiceAccountConfig
// *AuthConfig_UserPasswordConfig_
// *AuthConfig_ApiKeyConfig_
// *AuthConfig_Oauth2ClientCredentialsConfig_
Config isAuthConfig_Config `protobuf_oneof:"config"`
// Required. The authentication type.
AuthType AuthType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=google.cloud.apihub.v1.AuthType" json:"auth_type,omitempty"`
// contains filtered or unexported fields
}AuthConfig represents the authentication information.
func (*AuthConfig) Descriptor
func (*AuthConfig) Descriptor() ([]byte, []int)Deprecated: Use AuthConfig.ProtoReflect.Descriptor instead.
func (*AuthConfig) GetApiKeyConfig
func (x *AuthConfig) GetApiKeyConfig() *AuthConfig_ApiKeyConfigfunc (*AuthConfig) GetAuthType
func (x *AuthConfig) GetAuthType() AuthTypefunc (*AuthConfig) GetConfig
func (m *AuthConfig) GetConfig() isAuthConfig_Configfunc (*AuthConfig) GetGoogleServiceAccountConfig
func (x *AuthConfig) GetGoogleServiceAccountConfig() *GoogleServiceAccountConfigfunc (*AuthConfig) GetOauth2ClientCredentialsConfig
func (x *AuthConfig) GetOauth2ClientCredentialsConfig() *AuthConfig_Oauth2ClientCredentialsConfigfunc (*AuthConfig) GetUserPasswordConfig
func (x *AuthConfig) GetUserPasswordConfig() *AuthConfig_UserPasswordConfigfunc (*AuthConfig) ProtoMessage
func (*AuthConfig) ProtoMessage()func (*AuthConfig) ProtoReflect
func (x *AuthConfig) ProtoReflect() protoreflect.Messagefunc (*AuthConfig) Reset
func (x *AuthConfig) Reset()func (*AuthConfig) String
func (x *AuthConfig) String() stringAuthConfig_ApiKeyConfig
type AuthConfig_ApiKeyConfig struct {
// Required. The parameter name of the API key.
// E.g. If the API request is "https://example.com/act?api_key=Config for authentication with API key.
func (*AuthConfig_ApiKeyConfig) Descriptor
func (*AuthConfig_ApiKeyConfig) Descriptor() ([]byte, []int)Deprecated: Use AuthConfig_ApiKeyConfig.ProtoReflect.Descriptor instead.
func (*AuthConfig_ApiKeyConfig) GetApiKey
func (x *AuthConfig_ApiKeyConfig) GetApiKey() *Secretfunc (*AuthConfig_ApiKeyConfig) GetHttpElementLocation
func (x *AuthConfig_ApiKeyConfig) GetHttpElementLocation() AuthConfig_ApiKeyConfig_HttpElementLocationfunc (*AuthConfig_ApiKeyConfig) GetName
func (x *AuthConfig_ApiKeyConfig) GetName() stringfunc (*AuthConfig_ApiKeyConfig) ProtoMessage
func (*AuthConfig_ApiKeyConfig) ProtoMessage()func (*AuthConfig_ApiKeyConfig) ProtoReflect
func (x *AuthConfig_ApiKeyConfig) ProtoReflect() protoreflect.Messagefunc (*AuthConfig_ApiKeyConfig) Reset
func (x *AuthConfig_ApiKeyConfig) Reset()func (*AuthConfig_ApiKeyConfig) String
func (x *AuthConfig_ApiKeyConfig) String() stringAuthConfig_ApiKeyConfig_
type AuthConfig_ApiKeyConfig_ struct {
// Api Key Config.
ApiKeyConfig *AuthConfig_ApiKeyConfig `protobuf:"bytes,4,opt,name=api_key_config,json=apiKeyConfig,proto3,oneof"`
}AuthConfig_ApiKeyConfig_HttpElementLocation
type AuthConfig_ApiKeyConfig_HttpElementLocation int32Enum of location an HTTP element can be.
AuthConfig_ApiKeyConfig_HTTP_ELEMENT_LOCATION_UNSPECIFIED, AuthConfig_ApiKeyConfig_QUERY, AuthConfig_ApiKeyConfig_HEADER, AuthConfig_ApiKeyConfig_PATH, AuthConfig_ApiKeyConfig_BODY, AuthConfig_ApiKeyConfig_COOKIE
const (
// HTTP element location not specified.
AuthConfig_ApiKeyConfig_HTTP_ELEMENT_LOCATION_UNSPECIFIED AuthConfig_ApiKeyConfig_HttpElementLocation = 0
// Element is in the HTTP request query.
AuthConfig_ApiKeyConfig_QUERY AuthConfig_ApiKeyConfig_HttpElementLocation = 1
// Element is in the HTTP request header.
AuthConfig_ApiKeyConfig_HEADER AuthConfig_ApiKeyConfig_HttpElementLocation = 2
// Element is in the HTTP request path.
AuthConfig_ApiKeyConfig_PATH AuthConfig_ApiKeyConfig_HttpElementLocation = 3
// Element is in the HTTP request body.
AuthConfig_ApiKeyConfig_BODY AuthConfig_ApiKeyConfig_HttpElementLocation = 4
// Element is in the HTTP request cookie.
AuthConfig_ApiKeyConfig_COOKIE AuthConfig_ApiKeyConfig_HttpElementLocation = 5
)func (AuthConfig_ApiKeyConfig_HttpElementLocation) Descriptor
func (AuthConfig_ApiKeyConfig_HttpElementLocation) Descriptor() protoreflect.EnumDescriptorfunc (AuthConfig_ApiKeyConfig_HttpElementLocation) Enum
func (x AuthConfig_ApiKeyConfig_HttpElementLocation) Enum() *AuthConfig_ApiKeyConfig_HttpElementLocationfunc (AuthConfig_ApiKeyConfig_HttpElementLocation) EnumDescriptor
func (AuthConfig_ApiKeyConfig_HttpElementLocation) EnumDescriptor() ([]byte, []int)Deprecated: Use AuthConfig_ApiKeyConfig_HttpElementLocation.Descriptor instead.
func (AuthConfig_ApiKeyConfig_HttpElementLocation) Number
func (x AuthConfig_ApiKeyConfig_HttpElementLocation) Number() protoreflect.EnumNumberfunc (AuthConfig_ApiKeyConfig_HttpElementLocation) String
func (x AuthConfig_ApiKeyConfig_HttpElementLocation) String() stringfunc (AuthConfig_ApiKeyConfig_HttpElementLocation) Type
func (AuthConfig_ApiKeyConfig_HttpElementLocation) Type() protoreflect.EnumTypeAuthConfig_GoogleServiceAccountConfig
type AuthConfig_GoogleServiceAccountConfig struct {
// Google Service Account.
GoogleServiceAccountConfig *GoogleServiceAccountConfig `protobuf:"bytes,2,opt,name=google_service_account_config,json=googleServiceAccountConfig,proto3,oneof"`
}AuthConfig_Oauth2ClientCredentialsConfig
type AuthConfig_Oauth2ClientCredentialsConfig struct {
// Required. The client identifier.
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
// Required. Secret version reference containing the client secret.
// The `secretmanager.versions.access` permission should be
// granted to the service account accessing the secret.
ClientSecret *Secret `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
// contains filtered or unexported fields
}Parameters to support Oauth 2.0 client credentials grant authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details.
func (*AuthConfig_Oauth2ClientCredentialsConfig) Descriptor
func (*AuthConfig_Oauth2ClientCredentialsConfig) Descriptor() ([]byte, []int)Deprecated: Use AuthConfig_Oauth2ClientCredentialsConfig.ProtoReflect.Descriptor instead.
func (*AuthConfig_Oauth2ClientCredentialsConfig) GetClientId
func (x *AuthConfig_Oauth2ClientCredentialsConfig) GetClientId() stringfunc (*AuthConfig_Oauth2ClientCredentialsConfig) GetClientSecret
func (x *AuthConfig_Oauth2ClientCredentialsConfig) GetClientSecret() *Secretfunc (*AuthConfig_Oauth2ClientCredentialsConfig) ProtoMessage
func (*AuthConfig_Oauth2ClientCredentialsConfig) ProtoMessage()func (*AuthConfig_Oauth2ClientCredentialsConfig) ProtoReflect
func (x *AuthConfig_Oauth2ClientCredentialsConfig) ProtoReflect() protoreflect.Messagefunc (*AuthConfig_Oauth2ClientCredentialsConfig) Reset
func (x *AuthConfig_Oauth2ClientCredentialsConfig) Reset()func (*AuthConfig_Oauth2ClientCredentialsConfig) String
func (x *AuthConfig_Oauth2ClientCredentialsConfig) String() stringAuthConfig_Oauth2ClientCredentialsConfig_
type AuthConfig_Oauth2ClientCredentialsConfig_ struct {
// Oauth2.0 Client Credentials.
Oauth2ClientCredentialsConfig *AuthConfig_Oauth2ClientCredentialsConfig `protobuf:"bytes,5,opt,name=oauth2_client_credentials_config,json=oauth2ClientCredentialsConfig,proto3,oneof"`
}AuthConfig_UserPasswordConfig
type AuthConfig_UserPasswordConfig struct {
// Required. Username.
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
// Required. Secret version reference containing the password.
// The `secretmanager.versions.access` permission should be
// granted to the service account accessing the secret.
Password *Secret `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
// contains filtered or unexported fields
}Parameters to support Username and Password Authentication.
func (*AuthConfig_UserPasswordConfig) Descriptor
func (*AuthConfig_UserPasswordConfig) Descriptor() ([]byte, []int)Deprecated: Use AuthConfig_UserPasswordConfig.ProtoReflect.Descriptor instead.
func (*AuthConfig_UserPasswordConfig) GetPassword
func (x *AuthConfig_UserPasswordConfig) GetPassword() *Secretfunc (*AuthConfig_UserPasswordConfig) GetUsername
func (x *AuthConfig_UserPasswordConfig) GetUsername() stringfunc (*AuthConfig_UserPasswordConfig) ProtoMessage
func (*AuthConfig_UserPasswordConfig) ProtoMessage()func (*AuthConfig_UserPasswordConfig) ProtoReflect
func (x *AuthConfig_UserPasswordConfig) ProtoReflect() protoreflect.Messagefunc (*AuthConfig_UserPasswordConfig) Reset
func (x *AuthConfig_UserPasswordConfig) Reset()func (*AuthConfig_UserPasswordConfig) String
func (x *AuthConfig_UserPasswordConfig) String() stringAuthConfig_UserPasswordConfig_
type AuthConfig_UserPasswordConfig_ struct {
// User Password.
UserPasswordConfig *AuthConfig_UserPasswordConfig `protobuf:"bytes,3,opt,name=user_password_config,json=userPasswordConfig,proto3,oneof"`
}AuthType
type AuthType int32AuthType represents the authentication type.
AuthType_AUTH_TYPE_UNSPECIFIED, AuthType_NO_AUTH, AuthType_GOOGLE_SERVICE_ACCOUNT, AuthType_USER_PASSWORD, AuthType_API_KEY, AuthType_OAUTH2_CLIENT_CREDENTIALS
const (
// Authentication type not specified.
AuthType_AUTH_TYPE_UNSPECIFIED AuthType = 0
// No authentication.
AuthType_NO_AUTH AuthType = 1
// Google service account authentication.
AuthType_GOOGLE_SERVICE_ACCOUNT AuthType = 2
// Username and password authentication.
AuthType_USER_PASSWORD AuthType = 3
// API Key authentication.
AuthType_API_KEY AuthType = 4
// Oauth 2.0 client credentials grant authentication.
AuthType_OAUTH2_CLIENT_CREDENTIALS AuthType = 5
)func (AuthType) Descriptor
func (AuthType) Descriptor() protoreflect.EnumDescriptorfunc (AuthType) Enum
func (AuthType) EnumDescriptor
Deprecated: Use AuthType.Descriptor instead.
func (AuthType) Number
func (x AuthType) Number() protoreflect.EnumNumberfunc (AuthType) String
func (AuthType) Type
func (AuthType) Type() protoreflect.EnumTypeCollectApiDataRequest
type CollectApiDataRequest struct {
// Required. The regional location of the API hub instance and its resources.
// Format: `projects/{project}/locations/{location}`
Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
// Required. The type of collection. Applies to all entries in
// [api_data][google.cloud.apihub.v1.CollectApiDataRequest.api_data].
CollectionType CollectionType `protobuf:"varint,2,opt,name=collection_type,json=collectionType,proto3,enum=google.cloud.apihub.v1.CollectionType" json:"collection_type,omitempty"`
// Required. The plugin instance collecting the API data.
// Format:
// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.
PluginInstance string `protobuf:"bytes,3,opt,name=plugin_instance,json=pluginInstance,proto3" json:"plugin_instance,omitempty"`
// Required. The action ID to be used for collecting the API data.
// This should map to one of the action IDs specified
// in action configs in the plugin.
ActionId string `protobuf:"bytes,4,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
// Required. The API data to be collected.
ApiData *ApiData `protobuf:"bytes,5,opt,name=api_data,json=apiData,proto3" json:"api_data,omitempty"`
// contains filtered or unexported fields
}The CollectApiData method's request.
func (*CollectApiDataRequest) Descriptor
func (*CollectApiDataRequest) Descriptor() ([]byte, []int)Deprecated: Use CollectApiDataRequest.ProtoReflect.Descriptor instead.
func (*CollectApiDataRequest) GetActionId
func (x *CollectApiDataRequest) GetActionId() stringfunc (*CollectApiDataRequest) GetApiData
func (x *CollectApiDataRequest) GetApiData() *ApiDatafunc (*CollectApiDataRequest) GetCollectionType
func (x *CollectApiDataRequest) GetCollectionType() CollectionTypefunc (*CollectApiDataRequest) GetLocation
func (x *CollectApiDataRequest) GetLocation() stringfunc (*CollectApiDataRequest) GetPluginInstance
func (x *CollectApiDataRequest) GetPluginInstance() stringfunc (*CollectApiDataRequest) ProtoMessage
func (*CollectApiDataRequest) ProtoMessage()func (*CollectApiDataRequest) ProtoReflect
func (x *CollectApiDataRequest) ProtoReflect() protoreflect.Messagefunc (*CollectApiDataRequest) Reset
func (x *CollectApiDataRequest) Reset()func (*CollectApiDataRequest) String
func (x *CollectApiDataRequest) String() stringCollectApiDataResponse
type CollectApiDataResponse struct {
// contains filtered or unexported fields
}The CollectApiData method's response.
func (*CollectApiDataResponse) Descriptor
func (*CollectApiDataResponse) Descriptor() ([]byte, []int)Deprecated: Use CollectApiDataResponse.ProtoReflect.Descriptor instead.
func (*CollectApiDataResponse) ProtoMessage
func (*CollectApiDataResponse) ProtoMessage()func (*CollectApiDataResponse) ProtoReflect
func (x *CollectApiDataResponse) ProtoReflect() protoreflect.Messagefunc (*CollectApiDataResponse) Reset
func (x *CollectApiDataResponse) Reset()func (*CollectApiDataResponse) String
func (x *CollectApiDataResponse) String() stringCollectionType
type CollectionType int32The type of the collect request.
CollectionType_COLLECTION_TYPE_UNSPECIFIED, CollectionType_COLLECTION_TYPE_UPSERT, CollectionType_COLLECTION_TYPE_DELETE
const (
// The default value. This value is used if the collection type is omitted.
CollectionType_COLLECTION_TYPE_UNSPECIFIED CollectionType = 0
// The collection type is upsert. This should be used when an API is created
// or updated at the source.
CollectionType_COLLECTION_TYPE_UPSERT CollectionType = 1
// The collection type is delete. This should be used when an API is deleted
// at the source.
CollectionType_COLLECTION_TYPE_DELETE CollectionType = 2
)func (CollectionType) Descriptor
func (CollectionType) Descriptor() protoreflect.EnumDescriptorfunc (CollectionType) Enum
func (x CollectionType) Enum() *CollectionTypefunc (CollectionType) EnumDescriptor
func (CollectionType) EnumDescriptor() ([]byte, []int)Deprecated: Use CollectionType.Descriptor instead.
func (CollectionType) Number
func (x CollectionType) Number() protoreflect.EnumNumberfunc (CollectionType) String
func (x CollectionType) String() stringfunc (CollectionType) Type
func (CollectionType) Type() protoreflect.EnumTypeConfigValueOption
type ConfigValueOption struct {
// Required. Id of the option.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Required. Display name of the option.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. Description of the option.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}ConfigValueOption represents an option for a config variable of type enum or multi select.
func (*ConfigValueOption) Descriptor
func (*ConfigValueOption) Descriptor() ([]byte, []int)Deprecated: Use ConfigValueOption.ProtoReflect.Descriptor instead.
func (*ConfigValueOption) GetDescription
func (x *ConfigValueOption) GetDescription() stringfunc (*ConfigValueOption) GetDisplayName
func (x *ConfigValueOption) GetDisplayName() stringfunc (*ConfigValueOption) GetId
func (x *ConfigValueOption) GetId() stringfunc (*ConfigValueOption) ProtoMessage
func (*ConfigValueOption) ProtoMessage()func (*ConfigValueOption) ProtoReflect
func (x *ConfigValueOption) ProtoReflect() protoreflect.Messagefunc (*ConfigValueOption) Reset
func (x *ConfigValueOption) Reset()func (*ConfigValueOption) String
func (x *ConfigValueOption) String() stringConfigVariable
type ConfigVariable struct {
// The values associated with the config variable.
//
// Types that are assignable to Value:
//
// *ConfigVariable_StringValue
// *ConfigVariable_IntValue
// *ConfigVariable_BoolValue
// *ConfigVariable_SecretValue
// *ConfigVariable_EnumValue
// *ConfigVariable_MultiSelectValues_
// *ConfigVariable_MultiStringValues_
// *ConfigVariable_MultiIntValues_
Value isConfigVariable_Value `protobuf_oneof:"value"`
// Output only. Key will be the
// [id][google.cloud.apihub.v1.ConfigVariableTemplate.id] to uniquely identify
// the config variable.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}ConfigVariable represents a additional configuration variable present in a PluginInstance Config or AuthConfig, based on a ConfigVariableTemplate.
func (*ConfigVariable) Descriptor
func (*ConfigVariable) Descriptor() ([]byte, []int)Deprecated: Use ConfigVariable.ProtoReflect.Descriptor instead.
func (*ConfigVariable) GetBoolValue
func (x *ConfigVariable) GetBoolValue() boolfunc (*ConfigVariable) GetEnumValue
func (x *ConfigVariable) GetEnumValue() *ConfigValueOptionfunc (*ConfigVariable) GetIntValue
func (x *ConfigVariable) GetIntValue() int64func (*ConfigVariable) GetKey
func (x *ConfigVariable) GetKey() stringfunc (*ConfigVariable) GetMultiIntValues
func (x *ConfigVariable) GetMultiIntValues() *ConfigVariable_MultiIntValuesfunc (*ConfigVariable) GetMultiSelectValues
func (x *ConfigVariable) GetMultiSelectValues() *ConfigVariable_MultiSelectValuesfunc (*ConfigVariable) GetMultiStringValues
func (x *ConfigVariable) GetMultiStringValues() *ConfigVariable_MultiStringValuesfunc (*ConfigVariable) GetSecretValue
func (x *ConfigVariable) GetSecretValue() *Secretfunc (*ConfigVariable) GetStringValue
func (x *ConfigVariable) GetStringValue() stringfunc (*ConfigVariable) GetValue
func (m *ConfigVariable) GetValue() isConfigVariable_Valuefunc (*ConfigVariable) ProtoMessage
func (*ConfigVariable) ProtoMessage()func (*ConfigVariable) ProtoReflect
func (x *ConfigVariable) ProtoReflect() protoreflect.Messagefunc (*ConfigVariable) Reset
func (x *ConfigVariable) Reset()func (*ConfigVariable) String
func (x *ConfigVariable) String() stringConfigVariableTemplate
type ConfigVariableTemplate struct {
// Required. ID of the config variable. Must be unique within the
// configuration.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Required. Type of the parameter: string, int, bool etc.
ValueType ConfigVariableTemplate_ValueType `protobuf:"varint,2,opt,name=value_type,json=valueType,proto3,enum=google.cloud.apihub.v1.ConfigVariableTemplate_ValueType" json:"value_type,omitempty"`
// Optional. Description.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Optional. Regular expression in RE2 syntax used for validating the `value`
// of a `ConfigVariable`.
ValidationRegex string `protobuf:"bytes,4,opt,name=validation_regex,json=validationRegex,proto3" json:"validation_regex,omitempty"`
// Optional. Flag represents that this `ConfigVariable` must be provided for a
// PluginInstance.
Required bool `protobuf:"varint,5,opt,name=required,proto3" json:"required,omitempty"`
// Optional. Enum options. To be populated if `ValueType` is `ENUM`.
EnumOptions []*ConfigValueOption `protobuf:"bytes,6,rep,name=enum_options,json=enumOptions,proto3" json:"enum_options,omitempty"`
// Optional. Multi select options. To be populated if `ValueType` is
// `MULTI_SELECT`.
MultiSelectOptions []*ConfigValueOption `protobuf:"bytes,7,rep,name=multi_select_options,json=multiSelectOptions,proto3" json:"multi_select_options,omitempty"`
// contains filtered or unexported fields
}ConfigVariableTemplate represents a configuration variable template present in a Plugin Config.
func (*ConfigVariableTemplate) Descriptor
func (*ConfigVariableTemplate) Descriptor() ([]byte, []int)Deprecated: Use ConfigVariableTemplate.ProtoReflect.Descriptor instead.
func (*ConfigVariableTemplate) GetDescription
func (x *ConfigVariableTemplate) GetDescription() stringfunc (*ConfigVariableTemplate) GetEnumOptions
func (x *ConfigVariableTemplate) GetEnumOptions() []*ConfigValueOptionfunc (*ConfigVariableTemplate) GetId
func (x *ConfigVariableTemplate) GetId() stringfunc (*ConfigVariableTemplate) GetMultiSelectOptions
func (x *ConfigVariableTemplate) GetMultiSelectOptions() []*ConfigValueOptionfunc (*ConfigVariableTemplate) GetRequired
func (x *ConfigVariableTemplate) GetRequired() boolfunc (*ConfigVariableTemplate) GetValidationRegex
func (x *ConfigVariableTemplate) GetValidationRegex() stringfunc (*ConfigVariableTemplate) GetValueType
func (x *ConfigVariableTemplate) GetValueType() ConfigVariableTemplate_ValueTypefunc (*ConfigVariableTemplate) ProtoMessage
func (*ConfigVariableTemplate) ProtoMessage()func (*ConfigVariableTemplate) ProtoReflect
func (x *ConfigVariableTemplate) ProtoReflect() protoreflect.Messagefunc (*ConfigVariableTemplate) Reset
func (x *ConfigVariableTemplate) Reset()func (*ConfigVariableTemplate) String
func (x *ConfigVariableTemplate) String() stringConfigVariableTemplate_ValueType
type ConfigVariableTemplate_ValueType int32ValueType indicates the data type of the value.
ConfigVariableTemplate_VALUE_TYPE_UNSPECIFIED, ConfigVariableTemplate_STRING, ConfigVariableTemplate_INT, ConfigVariableTemplate_BOOL, ConfigVariableTemplate_SECRET, ConfigVariableTemplate_ENUM, ConfigVariableTemplate_MULTI_SELECT, ConfigVariableTemplate_MULTI_STRING, ConfigVariableTemplate_MULTI_INT
const (
// Value type is not specified.
ConfigVariableTemplate_VALUE_TYPE_UNSPECIFIED ConfigVariableTemplate_ValueType = 0
// Value type is string.
ConfigVariableTemplate_STRING ConfigVariableTemplate_ValueType = 1
// Value type is integer.
ConfigVariableTemplate_INT ConfigVariableTemplate_ValueType = 2
// Value type is boolean.
ConfigVariableTemplate_BOOL ConfigVariableTemplate_ValueType = 3
// Value type is secret.
ConfigVariableTemplate_SECRET ConfigVariableTemplate_ValueType = 4
// Value type is enum.
ConfigVariableTemplate_ENUM ConfigVariableTemplate_ValueType = 5
// Value type is multi select.
ConfigVariableTemplate_MULTI_SELECT ConfigVariableTemplate_ValueType = 6
// Value type is multi string.
ConfigVariableTemplate_MULTI_STRING ConfigVariableTemplate_ValueType = 7
// Value type is multi int.
ConfigVariableTemplate_MULTI_INT ConfigVariableTemplate_ValueType = 8
)func (ConfigVariableTemplate_ValueType) Descriptor
func (ConfigVariableTemplate_ValueType) Descriptor() protoreflect.EnumDescriptorfunc (ConfigVariableTemplate_ValueType) Enum
func (x ConfigVariableTemplate_ValueType) Enum() *ConfigVariableTemplate_ValueTypefunc (ConfigVariableTemplate_ValueType) EnumDescriptor
func (ConfigVariableTemplate_ValueType) EnumDescriptor() ([]byte, []int)Deprecated: Use ConfigVariableTemplate_ValueType.Descriptor instead.
func (ConfigVariableTemplate_ValueType) Number
func (x ConfigVariableTemplate_ValueType) Number() protoreflect.EnumNumberfunc (ConfigVariableTemplate_ValueType) String
func (x ConfigVariableTemplate_ValueType) String() stringfunc (ConfigVariableTemplate_ValueType) Type
func (ConfigVariableTemplate_ValueType) Type() protoreflect.EnumTypeConfigVariable_BoolValue
type ConfigVariable_BoolValue struct {
// Optional. The config variable value in case of config variable of type
// boolean.
BoolValue bool `protobuf:"varint,4,opt,name=bool_value,json=boolValue,proto3,oneof"`
}ConfigVariable_EnumValue
type ConfigVariable_EnumValue struct {
// Optional. The config variable value in case of config variable of type
// enum.
EnumValue *ConfigValueOption `protobuf:"bytes,6,opt,name=enum_value,json=enumValue,proto3,oneof"`
}ConfigVariable_IntValue
type ConfigVariable_IntValue struct {
// Optional. The config variable value in case of config variable of type
// integer.
IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"`
}ConfigVariable_MultiIntValues
type ConfigVariable_MultiIntValues struct {
// Optional. The config variable value of data type multi int.
Values []int32 `protobuf:"varint,1,rep,packed,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}The config variable value of data type multi int.
func (*ConfigVariable_MultiIntValues) Descriptor
func (*ConfigVariable_MultiIntValues) Descriptor() ([]byte, []int)Deprecated: Use ConfigVariable_MultiIntValues.ProtoReflect.Descriptor instead.
func (*ConfigVariable_MultiIntValues) GetValues
func (x *ConfigVariable_MultiIntValues) GetValues() []int32func (*ConfigVariable_MultiIntValues) ProtoMessage
func (*ConfigVariable_MultiIntValues) ProtoMessage()func (*ConfigVariable_MultiIntValues) ProtoReflect
func (x *ConfigVariable_MultiIntValues) ProtoReflect() protoreflect.Messagefunc (*ConfigVariable_MultiIntValues) Reset
func (x *ConfigVariable_MultiIntValues) Reset()func (*ConfigVariable_MultiIntValues) String
func (x *ConfigVariable_MultiIntValues) String() stringConfigVariable_MultiIntValues_
type ConfigVariable_MultiIntValues_ struct {
// Optional. The config variable value in case of config variable of type
// multi integer.
MultiIntValues *ConfigVariable_MultiIntValues `protobuf:"bytes,9,opt,name=multi_int_values,json=multiIntValues,proto3,oneof"`
}ConfigVariable_MultiSelectValues
type ConfigVariable_MultiSelectValues struct {
// Optional. The config variable value of data type multi select.
Values []*ConfigValueOption `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}The config variable value of data type multi select.
func (*ConfigVariable_MultiSelectValues) Descriptor
func (*ConfigVariable_MultiSelectValues) Descriptor() ([]byte, []int)Deprecated: Use ConfigVariable_MultiSelectValues.ProtoReflect.Descriptor instead.
func (*ConfigVariable_MultiSelectValues) GetValues
func (x *ConfigVariable_MultiSelectValues) GetValues() []*ConfigValueOptionfunc (*ConfigVariable_MultiSelectValues) ProtoMessage
func (*ConfigVariable_MultiSelectValues) ProtoMessage()func (*ConfigVariable_MultiSelectValues) ProtoReflect
func (x *ConfigVariable_MultiSelectValues) ProtoReflect() protoreflect.Messagefunc (*ConfigVariable_MultiSelectValues) Reset
func (x *ConfigVariable_MultiSelectValues) Reset()func (*ConfigVariable_MultiSelectValues) String
func (x *ConfigVariable_MultiSelectValues) String() stringConfigVariable_MultiSelectValues_
type ConfigVariable_MultiSelectValues_ struct {
// Optional. The config variable value in case of config variable of type
// multi select.
MultiSelectValues *ConfigVariable_MultiSelectValues `protobuf:"bytes,7,opt,name=multi_select_values,json=multiSelectValues,proto3,oneof"`
}ConfigVariable_MultiStringValues
type ConfigVariable_MultiStringValues struct {
// Optional. The config variable value of data type multi string.
Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}The config variable value of data type multi string.
func (*ConfigVariable_MultiStringValues) Descriptor
func (*ConfigVariable_MultiStringValues) Descriptor() ([]byte, []int)Deprecated: Use ConfigVariable_MultiStringValues.ProtoReflect.Descriptor instead.
func (*ConfigVariable_MultiStringValues) GetValues
func (x *ConfigVariable_MultiStringValues) GetValues() []stringfunc (*ConfigVariable_MultiStringValues) ProtoMessage
func (*ConfigVariable_MultiStringValues) ProtoMessage()func (*ConfigVariable_MultiStringValues) ProtoReflect
func (x *ConfigVariable_MultiStringValues) ProtoReflect() protoreflect.Messagefunc (*ConfigVariable_MultiStringValues) Reset
func (x *ConfigVariable_MultiStringValues) Reset()func (*ConfigVariable_MultiStringValues) String
func (x *ConfigVariable_MultiStringValues) String() stringConfigVariable_MultiStringValues_
type ConfigVariable_MultiStringValues_ struct {
// Optional. The config variable value in case of config variable of type
// multi string.
MultiStringValues *ConfigVariable_MultiStringValues `protobuf:"bytes,8,opt,name=multi_string_values,json=multiStringValues,proto3,oneof"`
}ConfigVariable_SecretValue
type ConfigVariable_SecretValue struct {
// Optional. The config variable value in case of config variable of type
// secret.
SecretValue *Secret `protobuf:"bytes,5,opt,name=secret_value,json=secretValue,proto3,oneof"`
}ConfigVariable_StringValue
type ConfigVariable_StringValue struct {
// Optional. The config variable value in case of config variable of type
// string.
StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"`
}CreateApiHubInstanceRequest
type CreateApiHubInstanceRequest struct {
// Required. The parent resource for the Api Hub instance resource.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Identifier to assign to the Api Hub instance. Must be unique
// within scope of the parent resource. If the field is not provided, system
// generated id will be used.
//
// This value should be 4-40 characters, and valid characters
// are `/[a-z][A-Z][0-9]-_/`.
ApiHubInstanceId string `protobuf:"bytes,2,opt,name=api_hub_instance_id,json=apiHubInstanceId,proto3" json:"api_hub_instance_id,omitempty"`
// Required. The ApiHub instance.
ApiHubInstance *ApiHubInstance `protobuf:"bytes,3,opt,name=api_hub_instance,json=apiHubInstance,proto3" json:"api_hub_instance,omitempty"`
// contains filtered or unexported fields
}The [CreateApiHubInstance][google.cloud.apihub.v1.Provisioning.CreateApiHubInstance] method's request.
func (*CreateApiHubInstanceRequest) Descriptor
func (*CreateApiHubInstanceRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateApiHubInstanceRequest.ProtoReflect.Descriptor instead.
func (*CreateApiHubInstanceRequest) GetApiHubInstance
func (x *CreateApiHubInstanceRequest) GetApiHubInstance() *ApiHubInstancefunc (*CreateApiHubInstanceRequest) GetApiHubInstanceId
func (x *CreateApiHubInstanceRequest) GetApiHubInstanceId() stringfunc (*CreateApiHubInstanceRequest) GetParent
func (x *CreateApiHubInstanceRequest) GetParent() stringfunc (*CreateApiHubInstanceRequest) ProtoMessage
func (*CreateApiHubInstanceRequest) ProtoMessage()func (*CreateApiHubInstanceRequest) ProtoReflect
func (x *CreateApiHubInstanceRequest) ProtoReflect() protoreflect.Messagefunc (*CreateApiHubInstanceRequest) Reset
func (x *CreateApiHubInstanceRequest) Reset()func (*CreateApiHubInstanceRequest) String
func (x *CreateApiHubInstanceRequest) String() stringCreateApiOperationRequest
type CreateApiOperationRequest struct {
// Required. The parent resource for the operation resource.
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// 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]-_/.
ApiOperationId string `protobuf:"bytes,2,opt,name=api_operation_id,json=apiOperationId,proto3" json:"api_operation_id,omitempty"`
// Required. The operation resource to create.
ApiOperation *ApiOperation `protobuf:"bytes,3,opt,name=api_operation,json=apiOperation,proto3" json:"api_operation,omitempty"`
// contains filtered or unexported fields
}The [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation] method's request.
func (*CreateApiOperationRequest) Descriptor
func (*CreateApiOperationRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateApiOperationRequest.ProtoReflect.Descriptor instead.
func (*CreateApiOperationRequest) GetApiOperation
func (x *CreateApiOperationRequest) GetApiOperation() *ApiOperationfunc (*CreateApiOperationRequest) GetApiOperationId
func (x *CreateApiOperationRequest) GetApiOperationId() stringfunc (*CreateApiOperationRequest) GetParent
func (x *CreateApiOperationRequest) GetParent() stringfunc (*CreateApiOperationRequest) ProtoMessage
func (*CreateApiOperationRequest) ProtoMessage()func (*CreateApiOperationRequest) ProtoReflect
func (x *CreateApiOperationRequest) ProtoReflect() protoreflect.Messagefunc (*CreateApiOperationRequest) Reset
func (x *CreateApiOperationRequest) Reset()func (*CreateApiOperationRequest) String
func (x *CreateApiOperationRequest) String() stringCreateApiRequest
type CreateApiRequest struct {
// Required. The parent resource for the API resource.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// 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]-_/.
ApiId string `protobuf:"bytes,2,opt,name=api_id,json=apiId,proto3" json:"api_id,omitempty"`
// Required. The API resource to create.
Api *Api `protobuf:"bytes,3,opt,name=api,proto3" json:"api,omitempty"`
// contains filtered or unexported fields
}The [CreateApi][google.cloud.apihub.v1.ApiHub.CreateApi] method's request.
func (*CreateApiRequest) Descriptor
func (*CreateApiRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateApiRequest.ProtoReflect.Descriptor instead.
func (*CreateApiRequest) GetApi
func (x *CreateApiRequest) GetApi() *Apifunc (*CreateApiRequest) GetApiId
func (x *CreateApiRequest) GetApiId() stringfunc (*CreateApiRequest) GetParent
func (x *CreateApiRequest) GetParent() stringfunc (*CreateApiRequest) ProtoMessage
func (*CreateApiRequest) ProtoMessage()func (*CreateApiRequest) ProtoReflect
func (x *CreateApiRequest) ProtoReflect() protoreflect.Messagefunc (*CreateApiRequest) Reset
func (x *CreateApiRequest) Reset()func (*CreateApiRequest) String
func (x *CreateApiRequest) String() stringCreateAttributeRequest
type CreateAttributeRequest struct {
// Required. The parent resource for Attribute.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// 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]-_/.
AttributeId string `protobuf:"bytes,2,opt,name=attribute_id,json=attributeId,proto3" json:"attribute_id,omitempty"`
// Required. The attribute to create.
Attribute *Attribute `protobuf:"bytes,3,opt,name=attribute,proto3" json:"attribute,omitempty"`
// contains filtered or unexported fields
}The [CreateAttribute][google.cloud.apihub.v1.ApiHub.CreateAttribute] method's request.
func (*CreateAttributeRequest) Descriptor
func (*CreateAttributeRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateAttributeRequest.ProtoReflect.Descriptor instead.
func (*CreateAttributeRequest) GetAttribute
func (x *CreateAttributeRequest) GetAttribute() *Attributefunc (*CreateAttributeRequest) GetAttributeId
func (x *CreateAttributeRequest) GetAttributeId() stringfunc (*CreateAttributeRequest) GetParent
func (x *CreateAttributeRequest) GetParent() stringfunc (*CreateAttributeRequest) ProtoMessage
func (*CreateAttributeRequest) ProtoMessage()func (*CreateAttributeRequest) ProtoReflect
func (x *CreateAttributeRequest) ProtoReflect() protoreflect.Messagefunc (*CreateAttributeRequest) Reset
func (x *CreateAttributeRequest) Reset()func (*CreateAttributeRequest) String
func (x *CreateAttributeRequest) String() stringCreateCurationRequest
type CreateCurationRequest struct {
// Required. The parent resource for the curation resource.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The ID to use for the curation resource, which will become the
// final component of the curations's resource name. This field is optional.
//
// * If provided, the same will be used. The service will throw an error if
// the specified ID is already used by another curation resource in the API
// hub.
// * If not provided, a system generated ID will be used.
//
// This value should be 4-500 characters, and valid characters
// are /[a-z][A-Z][0-9]-_/.
CurationId string `protobuf:"bytes,2,opt,name=curation_id,json=curationId,proto3" json:"curation_id,omitempty"`
// Required. The curation resource to create.
Curation *Curation `protobuf:"bytes,3,opt,name=curation,proto3" json:"curation,omitempty"`
// contains filtered or unexported fields
}The [CreateCuration][ApiHub.CreateCuration] method's request.
func (*CreateCurationRequest) Descriptor
func (*CreateCurationRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateCurationRequest.ProtoReflect.Descriptor instead.
func (*CreateCurationRequest) GetCuration
func (x *CreateCurationRequest) GetCuration() *Curationfunc (*CreateCurationRequest) GetCurationId
func (x *CreateCurationRequest) GetCurationId() stringfunc (*CreateCurationRequest) GetParent
func (x *CreateCurationRequest) GetParent() stringfunc (*CreateCurationRequest) ProtoMessage
func (*CreateCurationRequest) ProtoMessage()func (*CreateCurationRequest) ProtoReflect
func (x *CreateCurationRequest) ProtoReflect() protoreflect.Messagefunc (*CreateCurationRequest) Reset
func (x *CreateCurationRequest) Reset()func (*CreateCurationRequest) String
func (x *CreateCurationRequest) String() stringCreateDependencyRequest
type CreateDependencyRequest struct {
// Required. The parent resource for the dependency resource.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// 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]-_`.
DependencyId string `protobuf:"bytes,2,opt,name=dependency_id,json=dependencyId,proto3" json:"dependency_id,omitempty"`
// Required. The dependency resource to create.
Dependency *Dependency `protobuf:"bytes,3,opt,name=dependency,proto3" json:"dependency,omitempty"`
// contains filtered or unexported fields
}The [CreateDependency][google.cloud.apihub.v1.ApiHubDependencies.CreateDependency] method's request.
func (*CreateDependencyRequest) Descriptor
func (*CreateDependencyRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateDependencyRequest.ProtoReflect.Descriptor instead.
func (*CreateDependencyRequest) GetDependency
func (x *CreateDependencyRequest) GetDependency() *Dependencyfunc (*CreateDependencyRequest) GetDependencyId
func (x *CreateDependencyRequest) GetDependencyId() stringfunc (*CreateDependencyRequest) GetParent
func (x *CreateDependencyRequest) GetParent() stringfunc (*CreateDependencyRequest) ProtoMessage
func (*CreateDependencyRequest) ProtoMessage()func (*CreateDependencyRequest) ProtoReflect
func (x *CreateDependencyRequest) ProtoReflect() protoreflect.Messagefunc (*CreateDependencyRequest) Reset
func (x *CreateDependencyRequest) Reset()func (*CreateDependencyRequest) String
func (x *CreateDependencyRequest) String() stringCreateDeploymentRequest
type CreateDeploymentRequest struct {
// Required. The parent resource for the deployment resource.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// 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]-_/.
DeploymentId string `protobuf:"bytes,2,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"`
// Required. The deployment resource to create.
Deployment *Deployment `protobuf:"bytes,3,opt,name=deployment,proto3" json:"deployment,omitempty"`
// contains filtered or unexported fields
}The [CreateDeployment][google.cloud.apihub.v1.ApiHub.CreateDeployment] method's request.
func (*CreateDeploymentRequest) Descriptor
func (*CreateDeploymentRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateDeploymentRequest.ProtoReflect.Descriptor instead.
func (*CreateDeploymentRequest) GetDeployment
func (x *CreateDeploymentRequest) GetDeployment() *Deploymentfunc (*CreateDeploymentRequest) GetDeploymentId
func (x *CreateDeploymentRequest) GetDeploymentId() stringfunc (*CreateDeploymentRequest) GetParent
func (x *CreateDeploymentRequest) GetParent() stringfunc (*CreateDeploymentRequest) ProtoMessage
func (*CreateDeploymentRequest) ProtoMessage()func (*CreateDeploymentRequest) ProtoReflect
func (x *CreateDeploymentRequest) ProtoReflect() protoreflect.Messagefunc (*CreateDeploymentRequest) Reset
func (x *CreateDeploymentRequest) Reset()func (*CreateDeploymentRequest) String
func (x *CreateDeploymentRequest) String() stringCreateExternalApiRequest
type CreateExternalApiRequest struct {
// Required. The parent resource for the External API resource.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// 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]-_/.
ExternalApiId string `protobuf:"bytes,2,opt,name=external_api_id,json=externalApiId,proto3" json:"external_api_id,omitempty"`
// Required. The External API resource to create.
ExternalApi *ExternalApi `protobuf:"bytes,3,opt,name=external_api,json=externalApi,proto3" json:"external_api,omitempty"`
// contains filtered or unexported fields
}The [CreateExternalApi][google.cloud.apihub.v1.ApiHub.CreateExternalApi] method's request.
func (*CreateExternalApiRequest) Descriptor
func (*CreateExternalApiRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateExternalApiRequest.ProtoReflect.Descriptor instead.
func (*CreateExternalApiRequest) GetExternalApi
func (x *CreateExternalApiRequest) GetExternalApi() *ExternalApifunc (*CreateExternalApiRequest) GetExternalApiId
func (x *CreateExternalApiRequest) GetExternalApiId() stringfunc (*CreateExternalApiRequest) GetParent
func (x *CreateExternalApiRequest) GetParent() stringfunc (*CreateExternalApiRequest) ProtoMessage
func (*CreateExternalApiRequest) ProtoMessage()func (*CreateExternalApiRequest) ProtoReflect
func (x *CreateExternalApiRequest) ProtoReflect() protoreflect.Messagefunc (*CreateExternalApiRequest) Reset
func (x *CreateExternalApiRequest) Reset()func (*CreateExternalApiRequest) String
func (x *CreateExternalApiRequest) String() stringCreateHostProjectRegistrationRequest
type CreateHostProjectRegistrationRequest struct {
// Required. The parent resource for the host project.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The ID to use for the Host Project Registration, which will
// become the final component of the host project registration's resource
// name. The ID must be the same as the Google cloud project specified in the
// host_project_registration.gcp_project field.
HostProjectRegistrationId string `protobuf:"bytes,2,opt,name=host_project_registration_id,json=hostProjectRegistrationId,proto3" json:"host_project_registration_id,omitempty"`
// Required. The host project registration to register.
HostProjectRegistration *HostProjectRegistration `protobuf:"bytes,3,opt,name=host_project_registration,json=hostProjectRegistration,proto3" json:"host_project_registration,omitempty"`
// contains filtered or unexported fields
}The [CreateHostProjectRegistration][google.cloud.apihub.v1.HostProjectRegistrationService.CreateHostProjectRegistration] method's request.
func (*CreateHostProjectRegistrationRequest) Descriptor
func (*CreateHostProjectRegistrationRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateHostProjectRegistrationRequest.ProtoReflect.Descriptor instead.
func (*CreateHostProjectRegistrationRequest) GetHostProjectRegistration
func (x *CreateHostProjectRegistrationRequest) GetHostProjectRegistration() *HostProjectRegistrationfunc (*CreateHostProjectRegistrationRequest) GetHostProjectRegistrationId
func (x *CreateHostProjectRegistrationRequest) GetHostProjectRegistrationId() stringfunc (*CreateHostProjectRegistrationRequest) GetParent
func (x *CreateHostProjectRegistrationRequest) GetParent() stringfunc (*CreateHostProjectRegistrationRequest) ProtoMessage
func (*CreateHostProjectRegistrationRequest) ProtoMessage()func (*CreateHostProjectRegistrationRequest) ProtoReflect
func (x *CreateHostProjectRegistrationRequest) ProtoReflect() protoreflect.Messagefunc (*CreateHostProjectRegistrationRequest) Reset
func (x *CreateHostProjectRegistrationRequest) Reset()func (*CreateHostProjectRegistrationRequest) String
func (x *CreateHostProjectRegistrationRequest) String() stringCreatePluginInstanceRequest
type CreatePluginInstanceRequest struct {
// Required. The parent of the plugin instance resource.
// Format: `projects/{project}/locations/{location}/plugins/{plugin}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The ID to use for the plugin instance, which will become the
// final component of the plugin instance'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 plugin instance in the plugin
// resource.
// * If not provided, a system generated id will be used.
//
// This value should be 4-63 characters, and valid characters
// are /[a-z][A-Z][0-9]-_/.
PluginInstanceId string `protobuf:"bytes,2,opt,name=plugin_instance_id,json=pluginInstanceId,proto3" json:"plugin_instance_id,omitempty"`
// Required. The plugin instance to create.
PluginInstance *PluginInstance `protobuf:"bytes,3,opt,name=plugin_instance,json=pluginInstance,proto3" json:"plugin_instance,omitempty"`
// contains filtered or unexported fields
}The [CreatePluginInstance][google.cloud.apihub.v1.ApiHubPlugin.CreatePluginInstance] method's request.
func (*CreatePluginInstanceRequest) Descriptor
func (*CreatePluginInstanceRequest) Descriptor() ([]byte, []int)Deprecated: Use CreatePluginInstanceRequest.ProtoReflect.Descriptor instead.
func (*CreatePluginInstanceRequest) GetParent
func (x *CreatePluginInstanceRequest) GetParent() stringfunc (*CreatePluginInstanceRequest) GetPluginInstance
func (x *CreatePluginInstanceRequest) GetPluginInstance() *PluginInstancefunc (*CreatePluginInstanceRequest) GetPluginInstanceId
func (x *CreatePluginInstanceRequest) GetPluginInstanceId() stringfunc (*CreatePluginInstanceRequest) ProtoMessage
func (*CreatePluginInstanceRequest) ProtoMessage()func (*CreatePluginInstanceRequest) ProtoReflect
func (x *CreatePluginInstanceRequest) ProtoReflect() protoreflect.Messagefunc (*CreatePluginInstanceRequest) Reset
func (x *CreatePluginInstanceRequest) Reset()func (*CreatePluginInstanceRequest) String
func (x *CreatePluginInstanceRequest) String() stringCreatePluginRequest
type CreatePluginRequest struct {
// Required. The parent resource where this plugin will be created.
// Format: `projects/{project}/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The ID to use for the Plugin resource, which will become the
// final component of the Plugin'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 Plugin resource in the API hub
// instance.
// * If not provided, a system generated id will be used.
//
// This value should be 4-63 characters, overall resource name which will be
// of format
// `projects/{project}/locations/{location}/plugins/{plugin}`,
// its length is limited to 1000 characters and valid characters are
// /[a-z][A-Z][0-9]-_/.
PluginId string `protobuf:"bytes,2,opt,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"`
// Required. The plugin to create.
Plugin *Plugin `protobuf:"bytes,3,opt,name=plugin,proto3" json:"plugin,omitempty"`
// contains filtered or unexported fields
}The [CreatePlugin][google.cloud.apihub.v1.ApiHubPlugin.CreatePlugin] method's request.
func (*CreatePluginRequest) Descriptor
func (*CreatePluginRequest) Descriptor() ([]byte, []int)Deprecated: Use CreatePluginRequest.ProtoReflect.Descriptor instead.
func (*CreatePluginRequest) GetParent
func (x *CreatePluginRequest) GetParent() stringfunc (*CreatePluginRequest) GetPlugin
func (x *CreatePluginRequest) GetPlugin() *Pluginfunc (*CreatePluginRequest) GetPluginId
func (x *CreatePluginRequest) GetPluginId() stringfunc (*CreatePluginRequest) ProtoMessage
func (*CreatePluginRequest) ProtoMessage()func (*CreatePluginRequest) ProtoReflect
func (x *CreatePluginRequest) ProtoReflect() protoreflect.Messagefunc (*CreatePluginRequest) Reset
func (x *CreatePluginRequest) Reset()func (*CreatePluginRequest) String
func (x *CreatePluginRequest) String() stringCreateRuntimeProjectAttachmentRequest
type CreateRuntimeProjectAttachmentRequest struct {
// Required. The parent resource for the Runtime Project Attachment.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The ID to use for the Runtime Project Attachment, which will
// become the final component of the Runtime Project Attachment's name. The ID
// must be the same as the project ID of the Google cloud project specified in
// the runtime_project_attachment.runtime_project field.
RuntimeProjectAttachmentId string `protobuf:"bytes,2,opt,name=runtime_project_attachment_id,json=runtimeProjectAttachmentId,proto3" json:"runtime_project_attachment_id,omitempty"`
// Required. The Runtime Project Attachment to create.
RuntimeProjectAttachment *RuntimeProjectAttachment `protobuf:"bytes,3,opt,name=runtime_project_attachment,json=runtimeProjectAttachment,proto3" json:"runtime_project_attachment,omitempty"`
// contains filtered or unexported fields
}The [CreateRuntimeProjectAttachment][google.cloud.apihub.v1.RuntimeProjectAttachmentService.CreateRuntimeProjectAttachment] method's request.
func (*CreateRuntimeProjectAttachmentRequest) Descriptor
func (*CreateRuntimeProjectAttachmentRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateRuntimeProjectAttachmentRequest.ProtoReflect.Descriptor instead.
func (*CreateRuntimeProjectAttachmentRequest) GetParent
func (x *CreateRuntimeProjectAttachmentRequest) GetParent() stringfunc (*CreateRuntimeProjectAttachmentRequest) GetRuntimeProjectAttachment
func (x *CreateRuntimeProjectAttachmentRequest) GetRuntimeProjectAttachment() *RuntimeProjectAttachmentfunc (*CreateRuntimeProjectAttachmentRequest) GetRuntimeProjectAttachmentId
func (x *CreateRuntimeProjectAttachmentRequest) GetRuntimeProjectAttachmentId() stringfunc (*CreateRuntimeProjectAttachmentRequest) ProtoMessage
func (*CreateRuntimeProjectAttachmentRequest) ProtoMessage()func (*CreateRuntimeProjectAttachmentRequest) ProtoReflect
func (x *CreateRuntimeProjectAttachmentRequest) ProtoReflect() protoreflect.Messagefunc (*CreateRuntimeProjectAttachmentRequest) Reset
func (x *CreateRuntimeProjectAttachmentRequest) Reset()func (*CreateRuntimeProjectAttachmentRequest) String
func (x *CreateRuntimeProjectAttachmentRequest) String() stringCreateSpecRequest
type CreateSpecRequest struct {
// Required. The parent resource for Spec.
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// 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]-_/.
SpecId string `protobuf:"bytes,2,opt,name=spec_id,json=specId,proto3" json:"spec_id,omitempty"`
// Required. The spec to create.
Spec *Spec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"`
// contains filtered or unexported fields
}The [CreateSpec][google.cloud.apihub.v1.ApiHub.CreateSpec] method's request.
func (*CreateSpecRequest) Descriptor
func (*CreateSpecRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateSpecRequest.ProtoReflect.Descriptor instead.
func (*CreateSpecRequest) GetParent
func (x *CreateSpecRequest) GetParent() stringfunc (*CreateSpecRequest) GetSpec
func (x *CreateSpecRequest) GetSpec() *Specfunc (*CreateSpecRequest) GetSpecId
func (x *CreateSpecRequest) GetSpecId() stringfunc (*CreateSpecRequest) ProtoMessage
func (*CreateSpecRequest) ProtoMessage()func (*CreateSpecRequest) ProtoReflect
func (x *CreateSpecRequest) ProtoReflect() protoreflect.Messagefunc (*CreateSpecRequest) Reset
func (x *CreateSpecRequest) Reset()func (*CreateSpecRequest) String
func (x *CreateSpecRequest) String() stringCreateVersionRequest
type CreateVersionRequest struct {
// Required. The parent resource for API version.
// Format: `projects/{project}/locations/{location}/apis/{api}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// 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]-_/.
VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
// Required. The version to create.
Version *Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}The [CreateVersion][google.cloud.apihub.v1.ApiHub.CreateVersion] method's request.
func (*CreateVersionRequest) Descriptor
func (*CreateVersionRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateVersionRequest.ProtoReflect.Descriptor instead.
func (*CreateVersionRequest) GetParent
func (x *CreateVersionRequest) GetParent() stringfunc (*CreateVersionRequest) GetVersion
func (x *CreateVersionRequest) GetVersion() *Versionfunc (*CreateVersionRequest) GetVersionId
func (x *CreateVersionRequest) GetVersionId() stringfunc (*CreateVersionRequest) ProtoMessage
func (*CreateVersionRequest) ProtoMessage()func (*CreateVersionRequest) ProtoReflect
func (x *CreateVersionRequest) ProtoReflect() protoreflect.Messagefunc (*CreateVersionRequest) Reset
func (x *CreateVersionRequest) Reset()func (*CreateVersionRequest) String
func (x *CreateVersionRequest) String() stringCuration
type Curation struct {
// Identifier. The name of the curation.
//
// Format:
// `projects/{project}/locations/{location}/curations/{curation}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The display name of the curation.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. The description of the curation.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Required. The endpoint to be triggered for curation.
Endpoint *Endpoint `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// Output only. The plugin instances and associated actions that are using the
// curation. Note: A particular curation could be used by multiple plugin
// instances or multiple actions in a plugin instance.
PluginInstanceActions []*Curation_PluginInstanceActionID `protobuf:"bytes,5,rep,name=plugin_instance_actions,json=pluginInstanceActions,proto3" json:"plugin_instance_actions,omitempty"`
// Output only. The last execution state of the curation.
LastExecutionState Curation_LastExecutionState `protobuf:"varint,6,opt,name=last_execution_state,json=lastExecutionState,proto3,enum=google.cloud.apihub.v1.Curation_LastExecutionState" json:"last_execution_state,omitempty"`
// Output only. The error code of the last execution of the curation. The
// error code is populated only when the last execution state is failed.
LastExecutionErrorCode Curation_ErrorCode `protobuf:"varint,7,opt,name=last_execution_error_code,json=lastExecutionErrorCode,proto3,enum=google.cloud.apihub.v1.Curation_ErrorCode" json:"last_execution_error_code,omitempty"`
// Output only. Error message describing the failure, if any, during the last
// execution of the curation.
LastExecutionErrorMessage string `protobuf:"bytes,8,opt,name=last_execution_error_message,json=lastExecutionErrorMessage,proto3" json:"last_execution_error_message,omitempty"`
// Output only. The time at which the curation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time at which the curation was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// contains filtered or unexported fields
}A curation resource in the API Hub.
func (*Curation) Descriptor
Deprecated: Use Curation.ProtoReflect.Descriptor instead.
func (*Curation) GetCreateTime
func (x *Curation) GetCreateTime() *timestamppb.Timestampfunc (*Curation) GetDescription
func (*Curation) GetDisplayName
func (*Curation) GetEndpoint
func (*Curation) GetLastExecutionErrorCode
func (x *Curation) GetLastExecutionErrorCode() Curation_ErrorCodefunc (*Curation) GetLastExecutionErrorMessage
func (*Curation) GetLastExecutionState
func (x *Curation) GetLastExecutionState() Curation_LastExecutionStatefunc (*Curation) GetName
func (*Curation) GetPluginInstanceActions
func (x *Curation) GetPluginInstanceActions() []*Curation_PluginInstanceActionIDfunc (*Curation) GetUpdateTime
func (x *Curation) GetUpdateTime() *timestamppb.Timestampfunc (*Curation) ProtoMessage
func (*Curation) ProtoMessage()func (*Curation) ProtoReflect
func (x *Curation) ProtoReflect() protoreflect.Messagefunc (*Curation) Reset
func (x *Curation) Reset()func (*Curation) String
CurationConfig
type CurationConfig struct {
// The curation information for this plugin instance.
//
// Types that are assignable to CurationConfig:
//
// *CurationConfig_CustomCuration_
CurationConfig isCurationConfig_CurationConfig `protobuf_oneof:"curation_config"`
// Required. The curation type for this plugin instance.
CurationType CurationType `protobuf:"varint,1,opt,name=curation_type,json=curationType,proto3,enum=google.cloud.apihub.v1.CurationType" json:"curation_type,omitempty"`
// contains filtered or unexported fields
}The curation information for this plugin instance.
func (*CurationConfig) Descriptor
func (*CurationConfig) Descriptor() ([]byte, []int)Deprecated: Use CurationConfig.ProtoReflect.Descriptor instead.
func (*CurationConfig) GetCurationConfig
func (m *CurationConfig) GetCurationConfig() isCurationConfig_CurationConfigfunc (*CurationConfig) GetCurationType
func (x *CurationConfig) GetCurationType() CurationTypefunc (*CurationConfig) GetCustomCuration
func (x *CurationConfig) GetCustomCuration() *CurationConfig_CustomCurationfunc (*CurationConfig) ProtoMessage
func (*CurationConfig) ProtoMessage()func (*CurationConfig) ProtoReflect
func (x *CurationConfig) ProtoReflect() protoreflect.Messagefunc (*CurationConfig) Reset
func (x *CurationConfig) Reset()func (*CurationConfig) String
func (x *CurationConfig) String() stringCurationConfig_CustomCuration
type CurationConfig_CustomCuration struct {
// Required. The unique name of the curation resource. This will be the name
// of the curation resource in the format:
// `projects/{project}/locations/{location}/curations/{curation}`
Curation string `protobuf:"bytes,1,opt,name=curation,proto3" json:"curation,omitempty"`
// contains filtered or unexported fields
}Custom curation information for this plugin instance.
func (*CurationConfig_CustomCuration) Descriptor
func (*CurationConfig_CustomCuration) Descriptor() ([]byte, []int)Deprecated: Use CurationConfig_CustomCuration.ProtoReflect.Descriptor instead.
func (*CurationConfig_CustomCuration) GetCuration
func (x *CurationConfig_CustomCuration) GetCuration() stringfunc (*CurationConfig_CustomCuration) ProtoMessage
func (*CurationConfig_CustomCuration) ProtoMessage()func (*CurationConfig_CustomCuration) ProtoReflect
func (x *CurationConfig_CustomCuration) ProtoReflect() protoreflect.Messagefunc (*CurationConfig_CustomCuration) Reset
func (x *CurationConfig_CustomCuration) Reset()func (*CurationConfig_CustomCuration) String
func (x *CurationConfig_CustomCuration) String() stringCurationConfig_CustomCuration_
type CurationConfig_CustomCuration_ struct {
// Optional. Custom curation information for this plugin instance.
CustomCuration *CurationConfig_CustomCuration `protobuf:"bytes,2,opt,name=custom_curation,json=customCuration,proto3,oneof"`
}CurationType
type CurationType int32Enum for the curation type.
CurationType_CURATION_TYPE_UNSPECIFIED, CurationType_DEFAULT_CURATION_FOR_API_METADATA, CurationType_CUSTOM_CURATION_FOR_API_METADATA
const (
// Default unspecified curation type.
CurationType_CURATION_TYPE_UNSPECIFIED CurationType = 0
// Default curation for API metadata will be used.
CurationType_DEFAULT_CURATION_FOR_API_METADATA CurationType = 1
// Custom curation for API metadata will be used.
CurationType_CUSTOM_CURATION_FOR_API_METADATA CurationType = 2
)func (CurationType) Descriptor
func (CurationType) Descriptor() protoreflect.EnumDescriptorfunc (CurationType) Enum
func (x CurationType) Enum() *CurationTypefunc (CurationType) EnumDescriptor
func (CurationType) EnumDescriptor() ([]byte, []int)Deprecated: Use CurationType.Descriptor instead.
func (CurationType) Number
func (x CurationType) Number() protoreflect.EnumNumberfunc (CurationType) String
func (x CurationType) String() stringfunc (CurationType) Type
func (CurationType) Type() protoreflect.EnumTypeCuration_ErrorCode
type Curation_ErrorCode int32The error codes for failed executions.
Curation_ERROR_CODE_UNSPECIFIED, Curation_INTERNAL_ERROR, Curation_UNAUTHORIZED
const (
// Default unspecified error code.
Curation_ERROR_CODE_UNSPECIFIED Curation_ErrorCode = 0
// The execution failed due to an internal error.
Curation_INTERNAL_ERROR Curation_ErrorCode = 1
// The curation is not authorized to trigger the endpoint uri.
Curation_UNAUTHORIZED Curation_ErrorCode = 2
)func (Curation_ErrorCode) Descriptor
func (Curation_ErrorCode) Descriptor() protoreflect.EnumDescriptorfunc (Curation_ErrorCode) Enum
func (x Curation_ErrorCode) Enum() *Curation_ErrorCodefunc (Curation_ErrorCode) EnumDescriptor
func (Curation_ErrorCode) EnumDescriptor() ([]byte, []int)Deprecated: Use Curation_ErrorCode.Descriptor instead.
func (Curation_ErrorCode) Number
func (x Curation_ErrorCode) Number() protoreflect.EnumNumberfunc (Curation_ErrorCode) String
func (x Curation_ErrorCode) String() stringfunc (Curation_ErrorCode) Type
func (Curation_ErrorCode) Type() protoreflect.EnumTypeCuration_LastExecutionState
type Curation_LastExecutionState int32The state of the last execution of the curation.
Curation_LAST_EXECUTION_STATE_UNSPECIFIED, Curation_SUCCEEDED, Curation_FAILED
const (
// Default unspecified state.
Curation_LAST_EXECUTION_STATE_UNSPECIFIED Curation_LastExecutionState = 0
// The last curation execution was successful.
Curation_SUCCEEDED Curation_LastExecutionState = 1
// The last curation execution failed.
Curation_FAILED Curation_LastExecutionState = 2
)func (Curation_LastExecutionState) Descriptor
func (Curation_LastExecutionState) Descriptor() protoreflect.EnumDescriptorfunc (Curation_LastExecutionState) Enum
func (x Curation_LastExecutionState) Enum() *Curation_LastExecutionStatefunc (Curation_LastExecutionState) EnumDescriptor
func (Curation_LastExecutionState) EnumDescriptor() ([]byte, []int)Deprecated: Use Curation_LastExecutionState.Descriptor instead.
func (Curation_LastExecutionState) Number
func (x Curation_LastExecutionState) Number() protoreflect.EnumNumberfunc (Curation_LastExecutionState) String
func (x Curation_LastExecutionState) String() stringfunc (Curation_LastExecutionState) Type
func (Curation_LastExecutionState) Type() protoreflect.EnumTypeCuration_PluginInstanceActionID
type Curation_PluginInstanceActionID struct {
// Output only. Plugin instance that is using the curation.
// Format is
// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
PluginInstance string `protobuf:"bytes,1,opt,name=plugin_instance,json=pluginInstance,proto3" json:"plugin_instance,omitempty"`
// Output only. The action ID that is using the curation.
// This should map to one of the action IDs specified
// in action configs in the plugin.
ActionId string `protobuf:"bytes,2,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
// contains filtered or unexported fields
}The plugin instance and associated action that is using the curation.
func (*Curation_PluginInstanceActionID) Descriptor
func (*Curation_PluginInstanceActionID) Descriptor() ([]byte, []int)Deprecated: Use Curation_PluginInstanceActionID.ProtoReflect.Descriptor instead.
func (*Curation_PluginInstanceActionID) GetActionId
func (x *Curation_PluginInstanceActionID) GetActionId() stringfunc (*Curation_PluginInstanceActionID) GetPluginInstance
func (x *Curation_PluginInstanceActionID) GetPluginInstance() stringfunc (*Curation_PluginInstanceActionID) ProtoMessage
func (*Curation_PluginInstanceActionID) ProtoMessage()func (*Curation_PluginInstanceActionID) ProtoReflect
func (x *Curation_PluginInstanceActionID) ProtoReflect() protoreflect.Messagefunc (*Curation_PluginInstanceActionID) Reset
func (x *Curation_PluginInstanceActionID) Reset()func (*Curation_PluginInstanceActionID) String
func (x *Curation_PluginInstanceActionID) String() stringDefinition
type Definition struct {
// Types that are assignable to Value:
//
// *Definition_Schema
Value isDefinition_Value `protobuf_oneof:"value"`
// Identifier. The name of the definition.
//
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The name of the spec from where the definition was parsed.
// Format is
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
Spec string `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
// Output only. The type of the definition.
Type Definition_Type `protobuf:"varint,3,opt,name=type,proto3,enum=google.cloud.apihub.v1.Definition_Type" json:"type,omitempty"`
// Output only. The time at which the definition was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time at which the definition was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. The list of user defined attributes associated with the
// definition resource. The key is the attribute name. It will be of the
// format: `projects/{project}/locations/{location}/attributes/{attribute}`.
// The value is the attribute values associated with the resource.
Attributes map[string]*AttributeValues `protobuf:"bytes,7,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// contains filtered or unexported fields
}Represents a definition for example schema, request, response definitions
contained in an API version.
A definition is added/updated/deleted in an API version when a new spec is
added or an existing spec is updated/deleted in a version. Currently,
definition will be created only corresponding to OpenAPI spec as parsing is
supported for OpenAPI spec. Also, within OpenAPI spec, only schema object
is supported.
func (*Definition) Descriptor
func (*Definition) Descriptor() ([]byte, []int)Deprecated: Use Definition.ProtoReflect.Descriptor instead.
func (*Definition) GetAttributes
func (x *Definition) GetAttributes() map[string]*AttributeValuesfunc (*Definition) GetCreateTime
func (x *Definition) GetCreateTime() *timestamppb.Timestampfunc (*Definition) GetName
func (x *Definition) GetName() stringfunc (*Definition) GetSchema
func (x *Definition) GetSchema() *Schemafunc (*Definition) GetSpec
func (x *Definition) GetSpec() stringfunc (*Definition) GetType
func (x *Definition) GetType() Definition_Typefunc (*Definition) GetUpdateTime
func (x *Definition) GetUpdateTime() *timestamppb.Timestampfunc (*Definition) GetValue
func (m *Definition) GetValue() isDefinition_Valuefunc (*Definition) ProtoMessage
func (*Definition) ProtoMessage()func (*Definition) ProtoReflect
func (x *Definition) ProtoReflect() protoreflect.Messagefunc (*Definition) Reset
func (x *Definition) Reset()func (*Definition) String
func (x *Definition) String() stringDefinition_Schema
type Definition_Schema struct {
// Output only. The value of a schema definition.
Schema *Schema `protobuf:"bytes,4,opt,name=schema,proto3,oneof"`
}Definition_Type
type Definition_Type int32Enumeration of definition types.
Definition_TYPE_UNSPECIFIED, Definition_SCHEMA
const (
// Definition type unspecified.
Definition_TYPE_UNSPECIFIED Definition_Type = 0
// Definition type schema.
Definition_SCHEMA Definition_Type = 1
)func (Definition_Type) Descriptor
func (Definition_Type) Descriptor() protoreflect.EnumDescriptorfunc (Definition_Type) Enum
func (x Definition_Type) Enum() *Definition_Typefunc (Definition_Type) EnumDescriptor
func (Definition_Type) EnumDescriptor() ([]byte, []int)Deprecated: Use Definition_Type.Descriptor instead.
func (Definition_Type) Number
func (x Definition_Type) Number() protoreflect.EnumNumberfunc (Definition_Type) String
func (x Definition_Type) String() stringfunc (Definition_Type) Type
func (Definition_Type) Type() protoreflect.EnumTypeDeleteApiHubInstanceRequest
type DeleteApiHubInstanceRequest struct {
// Required. The name of the Api Hub instance to delete.
// Format:
// `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [DeleteApiHubInstance][google.cloud.apihub.v1.Provisioning.DeleteApiHubInstance] method's request.
func (*DeleteApiHubInstanceRequest) Descriptor
func (*DeleteApiHubInstanceRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteApiHubInstanceRequest.ProtoReflect.Descriptor instead.
func (*DeleteApiHubInstanceRequest) GetName
func (x *DeleteApiHubInstanceRequest) GetName() stringfunc (*DeleteApiHubInstanceRequest) ProtoMessage
func (*DeleteApiHubInstanceRequest) ProtoMessage()func (*DeleteApiHubInstanceRequest) ProtoReflect
func (x *DeleteApiHubInstanceRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteApiHubInstanceRequest) Reset
func (x *DeleteApiHubInstanceRequest) Reset()func (*DeleteApiHubInstanceRequest) String
func (x *DeleteApiHubInstanceRequest) String() stringDeleteApiOperationRequest
type DeleteApiOperationRequest struct {
// Required. The name of the operation resource to delete.
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [DeleteApiOperation][google.cloud.apihub.v1.ApiHub.DeleteApiOperation] method's request.
func (*DeleteApiOperationRequest) Descriptor
func (*DeleteApiOperationRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteApiOperationRequest.ProtoReflect.Descriptor instead.
func (*DeleteApiOperationRequest) GetName
func (x *DeleteApiOperationRequest) GetName() stringfunc (*DeleteApiOperationRequest) ProtoMessage
func (*DeleteApiOperationRequest) ProtoMessage()func (*DeleteApiOperationRequest) ProtoReflect
func (x *DeleteApiOperationRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteApiOperationRequest) Reset
func (x *DeleteApiOperationRequest) Reset()func (*DeleteApiOperationRequest) String
func (x *DeleteApiOperationRequest) String() stringDeleteApiRequest
type DeleteApiRequest struct {
// Required. The name of the API resource to delete.
// Format: `projects/{project}/locations/{location}/apis/{api}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// 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.
Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
// contains filtered or unexported fields
}The [DeleteApi][google.cloud.apihub.v1.ApiHub.DeleteApi] method's request.
func (*DeleteApiRequest) Descriptor
func (*DeleteApiRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteApiRequest.ProtoReflect.Descriptor instead.
func (*DeleteApiRequest) GetForce
func (x *DeleteApiRequest) GetForce() boolfunc (*DeleteApiRequest) GetName
func (x *DeleteApiRequest) GetName() stringfunc (*DeleteApiRequest) ProtoMessage
func (*DeleteApiRequest) ProtoMessage()func (*DeleteApiRequest) ProtoReflect
func (x *DeleteApiRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteApiRequest) Reset
func (x *DeleteApiRequest) Reset()func (*DeleteApiRequest) String
func (x *DeleteApiRequest) String() stringDeleteAttributeRequest
type DeleteAttributeRequest struct {
// Required. The name of the attribute to delete.
// Format:
// `projects/{project}/locations/{location}/attributes/{attribute}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [DeleteAttribute][google.cloud.apihub.v1.ApiHub.DeleteAttribute] method's request.
func (*DeleteAttributeRequest) Descriptor
func (*DeleteAttributeRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteAttributeRequest.ProtoReflect.Descriptor instead.
func (*DeleteAttributeRequest) GetName
func (x *DeleteAttributeRequest) GetName() stringfunc (*DeleteAttributeRequest) ProtoMessage
func (*DeleteAttributeRequest) ProtoMessage()func (*DeleteAttributeRequest) ProtoReflect
func (x *DeleteAttributeRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteAttributeRequest) Reset
func (x *DeleteAttributeRequest) Reset()func (*DeleteAttributeRequest) String
func (x *DeleteAttributeRequest) String() stringDeleteCurationRequest
type DeleteCurationRequest struct {
// Required. The name of the curation resource to delete.
// Format: `projects/{project}/locations/{location}/curations/{curation}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [DeleteCuration][ApiHub.DeleteCuration] method's request.
func (*DeleteCurationRequest) Descriptor
func (*DeleteCurationRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteCurationRequest.ProtoReflect.Descriptor instead.
func (*DeleteCurationRequest) GetName
func (x *DeleteCurationRequest) GetName() stringfunc (*DeleteCurationRequest) ProtoMessage
func (*DeleteCurationRequest) ProtoMessage()func (*DeleteCurationRequest) ProtoReflect
func (x *DeleteCurationRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteCurationRequest) Reset
func (x *DeleteCurationRequest) Reset()func (*DeleteCurationRequest) String
func (x *DeleteCurationRequest) String() stringDeleteDependencyRequest
type DeleteDependencyRequest struct {
// Required. The name of the dependency resource to delete.
// Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [DeleteDependency][google.cloud.apihub.v1.ApiHubDependencies.DeleteDependency] method's request.
func (*DeleteDependencyRequest) Descriptor
func (*DeleteDependencyRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteDependencyRequest.ProtoReflect.Descriptor instead.
func (*DeleteDependencyRequest) GetName
func (x *DeleteDependencyRequest) GetName() stringfunc (*DeleteDependencyRequest) ProtoMessage
func (*DeleteDependencyRequest) ProtoMessage()func (*DeleteDependencyRequest) ProtoReflect
func (x *DeleteDependencyRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteDependencyRequest) Reset
func (x *DeleteDependencyRequest) Reset()func (*DeleteDependencyRequest) String
func (x *DeleteDependencyRequest) String() stringDeleteDeploymentRequest
type DeleteDeploymentRequest struct {
// Required. The name of the deployment resource to delete.
// Format: `projects/{project}/locations/{location}/deployments/{deployment}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [DeleteDeployment][google.cloud.apihub.v1.ApiHub.DeleteDeployment] method's request.
func (*DeleteDeploymentRequest) Descriptor
func (*DeleteDeploymentRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteDeploymentRequest.ProtoReflect.Descriptor instead.
func (*DeleteDeploymentRequest) GetName
func (x *DeleteDeploymentRequest) GetName() stringfunc (*DeleteDeploymentRequest) ProtoMessage
func (*DeleteDeploymentRequest) ProtoMessage()func (*DeleteDeploymentRequest) ProtoReflect
func (x *DeleteDeploymentRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteDeploymentRequest) Reset
func (x *DeleteDeploymentRequest) Reset()func (*DeleteDeploymentRequest) String
func (x *DeleteDeploymentRequest) String() stringDeleteExternalApiRequest
type DeleteExternalApiRequest struct {
// Required. The name of the External API resource to delete.
// Format:
// `projects/{project}/locations/{location}/externalApis/{externalApi}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [DeleteExternalApi][google.cloud.apihub.v1.ApiHub.DeleteExternalApi] method's request.
func (*DeleteExternalApiRequest) Descriptor
func (*DeleteExternalApiRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteExternalApiRequest.ProtoReflect.Descriptor instead.
func (*DeleteExternalApiRequest) GetName
func (x *DeleteExternalApiRequest) GetName() stringfunc (*DeleteExternalApiRequest) ProtoMessage
func (*DeleteExternalApiRequest) ProtoMessage()func (*DeleteExternalApiRequest) ProtoReflect
func (x *DeleteExternalApiRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteExternalApiRequest) Reset
func (x *DeleteExternalApiRequest) Reset()func (*DeleteExternalApiRequest) String
func (x *DeleteExternalApiRequest) String() stringDeletePluginInstanceRequest
type DeletePluginInstanceRequest struct {
// Required. The name of the plugin instance to delete.
// Format:
// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [DeletePluginInstance][google.cloud.apihub.v1.ApiHubPlugin.DeletePluginInstance] method's request.
func (*DeletePluginInstanceRequest) Descriptor
func (*DeletePluginInstanceRequest) Descriptor() ([]byte, []int)Deprecated: Use DeletePluginInstanceRequest.ProtoReflect.Descriptor instead.
func (*DeletePluginInstanceRequest) GetName
func (x *DeletePluginInstanceRequest) GetName() stringfunc (*DeletePluginInstanceRequest) ProtoMessage
func (*DeletePluginInstanceRequest) ProtoMessage()func (*DeletePluginInstanceRequest) ProtoReflect
func (x *DeletePluginInstanceRequest) ProtoReflect() protoreflect.Messagefunc (*DeletePluginInstanceRequest) Reset
func (x *DeletePluginInstanceRequest) Reset()func (*DeletePluginInstanceRequest) String
func (x *DeletePluginInstanceRequest) String() stringDeletePluginRequest
type DeletePluginRequest struct {
// Required. The name of the Plugin resource to delete.
// Format: `projects/{project}/locations/{location}/plugins/{plugin}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [DeletePlugin][ApiHub.DeletePlugin] method's request.
func (*DeletePluginRequest) Descriptor
func (*DeletePluginRequest) Descriptor() ([]byte, []int)Deprecated: Use DeletePluginRequest.ProtoReflect.Descriptor instead.
func (*DeletePluginRequest) GetName
func (x *DeletePluginRequest) GetName() stringfunc (*DeletePluginRequest) ProtoMessage
func (*DeletePluginRequest) ProtoMessage()func (*DeletePluginRequest) ProtoReflect
func (x *DeletePluginRequest) ProtoReflect() protoreflect.Messagefunc (*DeletePluginRequest) Reset
func (x *DeletePluginRequest) Reset()func (*DeletePluginRequest) String
func (x *DeletePluginRequest) String() stringDeleteRuntimeProjectAttachmentRequest
type DeleteRuntimeProjectAttachmentRequest struct {
// Required. The name of the Runtime Project Attachment to delete.
// Format:
// `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [DeleteRuntimeProjectAttachment][google.cloud.apihub.v1.RuntimeProjectAttachmentService.DeleteRuntimeProjectAttachment] method's request.
func (*DeleteRuntimeProjectAttachmentRequest) Descriptor
func (*DeleteRuntimeProjectAttachmentRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteRuntimeProjectAttachmentRequest.ProtoReflect.Descriptor instead.
func (*DeleteRuntimeProjectAttachmentRequest) GetName
func (x *DeleteRuntimeProjectAttachmentRequest) GetName() stringfunc (*DeleteRuntimeProjectAttachmentRequest) ProtoMessage
func (*DeleteRuntimeProjectAttachmentRequest) ProtoMessage()func (*DeleteRuntimeProjectAttachmentRequest) ProtoReflect
func (x *DeleteRuntimeProjectAttachmentRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteRuntimeProjectAttachmentRequest) Reset
func (x *DeleteRuntimeProjectAttachmentRequest) Reset()func (*DeleteRuntimeProjectAttachmentRequest) String
func (x *DeleteRuntimeProjectAttachmentRequest) String() stringDeleteSpecRequest
type DeleteSpecRequest struct {
// Required. The name of the spec to delete.
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [DeleteSpec][google.cloud.apihub.v1.ApiHub.DeleteSpec] method's request.
func (*DeleteSpecRequest) Descriptor
func (*DeleteSpecRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteSpecRequest.ProtoReflect.Descriptor instead.
func (*DeleteSpecRequest) GetName
func (x *DeleteSpecRequest) GetName() stringfunc (*DeleteSpecRequest) ProtoMessage
func (*DeleteSpecRequest) ProtoMessage()func (*DeleteSpecRequest) ProtoReflect
func (x *DeleteSpecRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteSpecRequest) Reset
func (x *DeleteSpecRequest) Reset()func (*DeleteSpecRequest) String
func (x *DeleteSpecRequest) String() stringDeleteVersionRequest
type DeleteVersionRequest struct {
// Required. The name of the version to delete.
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// 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.
Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
// contains filtered or unexported fields
}The [DeleteVersion][google.cloud.apihub.v1.ApiHub.DeleteVersion] method's request.
func (*DeleteVersionRequest) Descriptor
func (*DeleteVersionRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteVersionRequest.ProtoReflect.Descriptor instead.
func (*DeleteVersionRequest) GetForce
func (x *DeleteVersionRequest) GetForce() boolfunc (*DeleteVersionRequest) GetName
func (x *DeleteVersionRequest) GetName() stringfunc (*DeleteVersionRequest) ProtoMessage
func (*DeleteVersionRequest) ProtoMessage()func (*DeleteVersionRequest) ProtoReflect
func (x *DeleteVersionRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteVersionRequest) Reset
func (x *DeleteVersionRequest) Reset()func (*DeleteVersionRequest) String
func (x *DeleteVersionRequest) String() stringDependency
type Dependency struct {
// Identifier. The name of the dependency in the API Hub.
//
// Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Immutable. The entity acting as the consumer in the dependency.
Consumer *DependencyEntityReference `protobuf:"bytes,2,opt,name=consumer,proto3" json:"consumer,omitempty"`
// Required. Immutable. The entity acting as the supplier in the dependency.
Supplier *DependencyEntityReference `protobuf:"bytes,3,opt,name=supplier,proto3" json:"supplier,omitempty"`
// Output only. State of the dependency.
State Dependency_State `protobuf:"varint,4,opt,name=state,proto3,enum=google.cloud.apihub.v1.Dependency_State" json:"state,omitempty"`
// Optional. Human readable description corresponding of the dependency.
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Discovery mode of the dependency.
DiscoveryMode Dependency_DiscoveryMode `protobuf:"varint,6,opt,name=discovery_mode,json=discoveryMode,proto3,enum=google.cloud.apihub.v1.Dependency_DiscoveryMode" json:"discovery_mode,omitempty"`
// Output only. Error details of a dependency if the system has detected it
// internally.
ErrorDetail *DependencyErrorDetail `protobuf:"bytes,7,opt,name=error_detail,json=errorDetail,proto3" json:"error_detail,omitempty"`
// Output only. The time at which the dependency was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time at which the dependency was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. The list of user defined attributes associated with the
// dependency resource. The key is the attribute name. It will be of the
// format: `projects/{project}/locations/{location}/attributes/{attribute}`.
// The value is the attribute values associated with the resource.
Attributes map[string]*AttributeValues `protobuf:"bytes,10,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// contains filtered or unexported fields
}A dependency resource defined in the API hub describes a dependency directed from a consumer to a supplier entity. A dependency can be defined between two [Operations][google.cloud.apihub.v1.ApiOperation] or between an [Operation][google.cloud.apihub.v1.ApiOperation] and [External API][google.cloud.apihub.v1.ExternalApi].
func (*Dependency) Descriptor
func (*Dependency) Descriptor() ([]byte, []int)Deprecated: Use Dependency.ProtoReflect.Descriptor instead.
func (*Dependency) GetAttributes
func (x *Dependency) GetAttributes() map[string]*AttributeValuesfunc (*Dependency) GetConsumer
func (x *Dependency) GetConsumer() *DependencyEntityReferencefunc (*Dependency) GetCreateTime
func (x *Dependency) GetCreateTime() *timestamppb.Timestampfunc (*Dependency) GetDescription
func (x *Dependency) GetDescription() stringfunc (*Dependency) GetDiscoveryMode
func (x *Dependency) GetDiscoveryMode() Dependency_DiscoveryModefunc (*Dependency) GetErrorDetail
func (x *Dependency) GetErrorDetail() *DependencyErrorDetailfunc (*Dependency) GetName
func (x *Dependency) GetName() stringfunc (*Dependency) GetState
func (x *Dependency) GetState() Dependency_Statefunc (*Dependency) GetSupplier
func (x *Dependency) GetSupplier() *DependencyEntityReferencefunc (*Dependency) GetUpdateTime
func (x *Dependency) GetUpdateTime() *timestamppb.Timestampfunc (*Dependency) ProtoMessage
func (*Dependency) ProtoMessage()func (*Dependency) ProtoReflect
func (x *Dependency) ProtoReflect() protoreflect.Messagefunc (*Dependency) Reset
func (x *Dependency) Reset()func (*Dependency) String
func (x *Dependency) String() stringDependencyEntityReference
type DependencyEntityReference struct {
// Required. Unique identifier for the participating entity.
//
// Types that are assignable to Identifier:
//
// *DependencyEntityReference_OperationResourceName
// *DependencyEntityReference_ExternalApiResourceName
Identifier isDependencyEntityReference_Identifier `protobuf_oneof:"identifier"`
// Output only. Display name of the entity.
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// contains filtered or unexported fields
}Reference to an entity participating in a dependency.
func (*DependencyEntityReference) Descriptor
func (*DependencyEntityReference) Descriptor() ([]byte, []int)Deprecated: Use DependencyEntityReference.ProtoReflect.Descriptor instead.
func (*DependencyEntityReference) GetDisplayName
func (x *DependencyEntityReference) GetDisplayName() stringfunc (*DependencyEntityReference) GetExternalApiResourceName
func (x *DependencyEntityReference) GetExternalApiResourceName() stringfunc (*DependencyEntityReference) GetIdentifier
func (m *DependencyEntityReference) GetIdentifier() isDependencyEntityReference_Identifierfunc (*DependencyEntityReference) GetOperationResourceName
func (x *DependencyEntityReference) GetOperationResourceName() stringfunc (*DependencyEntityReference) ProtoMessage
func (*DependencyEntityReference) ProtoMessage()func (*DependencyEntityReference) ProtoReflect
func (x *DependencyEntityReference) ProtoReflect() protoreflect.Messagefunc (*DependencyEntityReference) Reset
func (x *DependencyEntityReference) Reset()func (*DependencyEntityReference) String
func (x *DependencyEntityReference) String() stringDependencyEntityReference_ExternalApiResourceName
type DependencyEntityReference_ExternalApiResourceName struct {
// The resource name of an external API in the API Hub.
//
// Format:
// `projects/{project}/locations/{location}/externalApis/{external_api}`
ExternalApiResourceName string `protobuf:"bytes,3,opt,name=external_api_resource_name,json=externalApiResourceName,proto3,oneof"`
}DependencyEntityReference_OperationResourceName
type DependencyEntityReference_OperationResourceName struct {
// The resource name of an operation in the API Hub.
//
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
OperationResourceName string `protobuf:"bytes,2,opt,name=operation_resource_name,json=operationResourceName,proto3,oneof"`
}DependencyErrorDetail
type DependencyErrorDetail struct {
// Optional. Error in the dependency.
Error DependencyErrorDetail_Error `protobuf:"varint,1,opt,name=error,proto3,enum=google.cloud.apihub.v1.DependencyErrorDetail_Error" json:"error,omitempty"`
// Optional. Timestamp at which the error was found.
ErrorTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=error_time,json=errorTime,proto3" json:"error_time,omitempty"`
// contains filtered or unexported fields
}Details describing error condition of a dependency.
func (*DependencyErrorDetail) Descriptor
func (*DependencyErrorDetail) Descriptor() ([]byte, []int)Deprecated: Use DependencyErrorDetail.ProtoReflect.Descriptor instead.
func (*DependencyErrorDetail) GetError
func (x *DependencyErrorDetail) GetError() DependencyErrorDetail_Errorfunc (*DependencyErrorDetail) GetErrorTime
func (x *DependencyErrorDetail) GetErrorTime() *timestamppb.Timestampfunc (*DependencyErrorDetail) ProtoMessage
func (*DependencyErrorDetail) ProtoMessage()func (*DependencyErrorDetail) ProtoReflect
func (x *DependencyErrorDetail) ProtoReflect() protoreflect.Messagefunc (*DependencyErrorDetail) Reset
func (x *DependencyErrorDetail) Reset()func (*DependencyErrorDetail) String
func (x *DependencyErrorDetail) String() stringDependencyErrorDetail_Error
type DependencyErrorDetail_Error int32Possible values representing an error in the dependency.
DependencyErrorDetail_ERROR_UNSPECIFIED, DependencyErrorDetail_SUPPLIER_NOT_FOUND, DependencyErrorDetail_SUPPLIER_RECREATED
const (
// Default value used for no error in the dependency.
DependencyErrorDetail_ERROR_UNSPECIFIED DependencyErrorDetail_Error = 0
// Supplier entity has been deleted.
DependencyErrorDetail_SUPPLIER_NOT_FOUND DependencyErrorDetail_Error = 1
// Supplier entity has been recreated.
DependencyErrorDetail_SUPPLIER_RECREATED DependencyErrorDetail_Error = 2
)func (DependencyErrorDetail_Error) Descriptor
func (DependencyErrorDetail_Error) Descriptor() protoreflect.EnumDescriptorfunc (DependencyErrorDetail_Error) Enum
func (x DependencyErrorDetail_Error) Enum() *DependencyErrorDetail_Errorfunc (DependencyErrorDetail_Error) EnumDescriptor
func (DependencyErrorDetail_Error) EnumDescriptor() ([]byte, []int)Deprecated: Use DependencyErrorDetail_Error.Descriptor instead.
func (DependencyErrorDetail_Error) Number
func (x DependencyErrorDetail_Error) Number() protoreflect.EnumNumberfunc (DependencyErrorDetail_Error) String
func (x DependencyErrorDetail_Error) String() stringfunc (DependencyErrorDetail_Error) Type
func (DependencyErrorDetail_Error) Type() protoreflect.EnumTypeDependency_DiscoveryMode
type Dependency_DiscoveryMode int32Possible modes of discovering the dependency.
Dependency_DISCOVERY_MODE_UNSPECIFIED, Dependency_MANUAL
const (
// Default value. This value is unused.
Dependency_DISCOVERY_MODE_UNSPECIFIED Dependency_DiscoveryMode = 0
// Manual mode of discovery when the dependency is defined by the user.
Dependency_MANUAL Dependency_DiscoveryMode = 1
)func (Dependency_DiscoveryMode) Descriptor
func (Dependency_DiscoveryMode) Descriptor() protoreflect.EnumDescriptorfunc (Dependency_DiscoveryMode) Enum
func (x Dependency_DiscoveryMode) Enum() *Dependency_DiscoveryModefunc (Dependency_DiscoveryMode) EnumDescriptor
func (Dependency_DiscoveryMode) EnumDescriptor() ([]byte, []int)Deprecated: Use Dependency_DiscoveryMode.Descriptor instead.
func (Dependency_DiscoveryMode) Number
func (x Dependency_DiscoveryMode) Number() protoreflect.EnumNumberfunc (Dependency_DiscoveryMode) String
func (x Dependency_DiscoveryMode) String() stringfunc (Dependency_DiscoveryMode) Type
func (Dependency_DiscoveryMode) Type() protoreflect.EnumTypeDependency_State
type Dependency_State int32Possible states for a dependency.
Dependency_STATE_UNSPECIFIED, Dependency_PROPOSED, Dependency_VALIDATED
const (
// Default value. This value is unused.
Dependency_STATE_UNSPECIFIED Dependency_State = 0
// Dependency will be in a proposed state when it is newly identified by the
// API hub on its own.
Dependency_PROPOSED Dependency_State = 1
// Dependency will be in a validated state when it is validated by the
// admin or manually created in the API hub.
Dependency_VALIDATED Dependency_State = 2
)func (Dependency_State) Descriptor
func (Dependency_State) Descriptor() protoreflect.EnumDescriptorfunc (Dependency_State) Enum
func (x Dependency_State) Enum() *Dependency_Statefunc (Dependency_State) EnumDescriptor
func (Dependency_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Dependency_State.Descriptor instead.
func (Dependency_State) Number
func (x Dependency_State) Number() protoreflect.EnumNumberfunc (Dependency_State) String
func (x Dependency_State) String() stringfunc (Dependency_State) Type
func (Dependency_State) Type() protoreflect.EnumTypeDeployment
type Deployment struct {
// Identifier. The name of the deployment.
//
// Format:
// `projects/{project}/locations/{location}/deployments/{deployment}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The display name of the deployment.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. The description of the deployment.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Optional. The documentation of the deployment.
Documentation *Documentation `protobuf:"bytes,4,opt,name=documentation,proto3" json:"documentation,omitempty"`
// Required. The type of deployment.
// This maps to the following system defined attribute:
// `projects/{project}/locations/{location}/attributes/system-deployment-type`
// attribute.
// The number of 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.
DeploymentType *AttributeValues `protobuf:"bytes,5,opt,name=deployment_type,json=deploymentType,proto3" json:"deployment_type,omitempty"`
// Required. The resource URI identifies the deployment within its gateway.
// For Apigee gateways, its recommended to use the format:
// organizations/{org}/environments/{env}/apis/{api}.
// For ex: if a proxy with name `orders` is deployed in `staging`
// environment of `cymbal` organization, the resource URI would be:
// `organizations/cymbal/environments/staging/apis/orders`.
ResourceUri string `protobuf:"bytes,6,opt,name=resource_uri,json=resourceUri,proto3" json:"resource_uri,omitempty"`
// Required. The endpoints at which this deployment resource is listening for
// API requests. This could be a list of complete URIs, hostnames or an IP
// addresses.
Endpoints []string `protobuf:"bytes,7,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
// Output only. The API versions linked to this deployment.
// Note: A particular deployment could be linked to multiple different API
// versions (of same or different APIs).
ApiVersions []string `protobuf:"bytes,8,rep,name=api_versions,json=apiVersions,proto3" json:"api_versions,omitempty"`
// Output only. The time at which the deployment was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time at which the deployment was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. The SLO for this deployment.
// This maps to the following system defined attribute:
// `projects/{project}/locations/{location}/attributes/system-slo`
// attribute.
// The number of 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.
Slo *AttributeValues `protobuf:"bytes,11,opt,name=slo,proto3" json:"slo,omitempty"`
// Optional. The environment mapping to this deployment.
// This maps to the following system defined attribute:
// `projects/{project}/locations/{location}/attributes/system-environment`
// attribute.
// The number of 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.
Environment *AttributeValues `protobuf:"bytes,12,opt,name=environment,proto3" json:"environment,omitempty"`
// Optional. The list of user defined attributes associated with the
// deployment resource. The key is the attribute name. It will be of the
// format: `projects/{project}/locations/{location}/attributes/{attribute}`.
// The value is the attribute values associated with the resource.
Attributes map[string]*AttributeValues `protobuf:"bytes,13,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Output only. The list of sources and metadata from the sources of the
// deployment.
SourceMetadata []*SourceMetadata `protobuf:"bytes,14,rep,name=source_metadata,json=sourceMetadata,proto3" json:"source_metadata,omitempty"`
// Optional. The uri where users can navigate to for the management of the
// deployment. This maps to the following system defined attribute:
// `projects/{project}/locations/{location}/attributes/system-management-url`
// The number of values for this attribute will be based on the
// cardinality of the attribute. The same can be retrieved via GetAttribute
// API. The value of the attribute should be a valid URL.
ManagementUrl *AttributeValues `protobuf:"bytes,15,opt,name=management_url,json=managementUrl,proto3" json:"management_url,omitempty"`
// Optional. The uri where additional source specific information for this
// deployment can be found. This maps to the following system defined
// attribute:
// `projects/{project}/locations/{location}/attributes/system-source-uri`
// The number of values for this attribute will be based on the
// cardinality of the attribute. The same can be retrieved via GetAttribute
// API. The value of the attribute should be a valid URI, and in case
// of Cloud Storage URI, it should point to a Cloud Storage object,
// not a directory.
SourceUri *AttributeValues `protobuf:"bytes,16,opt,name=source_uri,json=sourceUri,proto3" json:"source_uri,omitempty"`
// Optional. The project to which the deployment belongs.
// For GCP gateways, this will refer to the project identifier.
// For others like Edge/OPDK, this will refer to the org identifier.
SourceProject string `protobuf:"bytes,17,opt,name=source_project,json=sourceProject,proto3" json:"source_project,omitempty"`
// Optional. The environment at source for the deployment.
// For example: prod, dev, staging, etc.
SourceEnvironment string `protobuf:"bytes,18,opt,name=source_environment,json=sourceEnvironment,proto3" json:"source_environment,omitempty"`
// contains filtered or unexported fields
}Details of the deployment where APIs are hosted. A deployment could represent an Apigee proxy, API gateway, other Google Cloud services or non-Google Cloud services as well. A deployment entity is a root level entity in the API hub and exists independent of any API.
func (*Deployment) Descriptor
func (*Deployment) Descriptor() ([]byte, []int)Deprecated: Use Deployment.ProtoReflect.Descriptor instead.
func (*Deployment) GetApiVersions
func (x *Deployment) GetApiVersions() []stringfunc (*Deployment) GetAttributes
func (x *Deployment) GetAttributes() map[string]*AttributeValuesfunc (*Deployment) GetCreateTime
func (x *Deployment) GetCreateTime() *timestamppb.Timestampfunc (*Deployment) GetDeploymentType
func (x *Deployment) GetDeploymentType() *AttributeValuesfunc (*Deployment) GetDescription
func (x *Deployment) GetDescription() stringfunc (*Deployment) GetDisplayName
func (x *Deployment) GetDisplayName() stringfunc (*Deployment) GetDocumentation
func (x *Deployment) GetDocumentation() *Documentationfunc (*Deployment) GetEndpoints
func (x *Deployment) GetEndpoints() []stringfunc (*Deployment) GetEnvironment
func (x *Deployment) GetEnvironment() *AttributeValuesfunc (*Deployment) GetManagementUrl
func (x *Deployment) GetManagementUrl() *AttributeValuesfunc (*Deployment) GetName
func (x *Deployment) GetName() stringfunc (*Deployment) GetResourceUri
func (x *Deployment) GetResourceUri() stringfunc (*Deployment) GetSlo
func (x *Deployment) GetSlo() *AttributeValuesfunc (*Deployment) GetSourceEnvironment
func (x *Deployment) GetSourceEnvironment() stringfunc (*Deployment) GetSourceMetadata
func (x *Deployment) GetSourceMetadata() []*SourceMetadatafunc (*Deployment) GetSourceProject
func (x *Deployment) GetSourceProject() stringfunc (*Deployment) GetSourceUri
func (x *Deployment) GetSourceUri() *AttributeValuesfunc (*Deployment) GetUpdateTime
func (x *Deployment) GetUpdateTime() *timestamppb.Timestampfunc (*Deployment) ProtoMessage
func (*Deployment) ProtoMessage()func (*Deployment) ProtoReflect
func (x *Deployment) ProtoReflect() protoreflect.Messagefunc (*Deployment) Reset
func (x *Deployment) Reset()func (*Deployment) String
func (x *Deployment) String() stringDeploymentMetadata
type DeploymentMetadata struct {
// Required. The deployment resource to be pushed to Hub's collect layer. The
// ID of the deployment will be generated by Hub.
Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
// Optional. The unique identifier of the deployment in the system where it
// was originally created.
OriginalId string `protobuf:"bytes,2,opt,name=original_id,json=originalId,proto3" json:"original_id,omitempty"`
// Optional. Timestamp indicating when the deployment was created at the
// source.
OriginalCreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=original_create_time,json=originalCreateTime,proto3" json:"original_create_time,omitempty"`
// Required. Timestamp indicating when the deployment was last updated at the
// source.
OriginalUpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=original_update_time,json=originalUpdateTime,proto3" json:"original_update_time,omitempty"`
// contains filtered or unexported fields
}The metadata associated with a deployment.
func (*DeploymentMetadata) Descriptor
func (*DeploymentMetadata) Descriptor() ([]byte, []int)Deprecated: Use DeploymentMetadata.ProtoReflect.Descriptor instead.
func (*DeploymentMetadata) GetDeployment
func (x *DeploymentMetadata) GetDeployment() *Deploymentfunc (*DeploymentMetadata) GetOriginalCreateTime
func (x *DeploymentMetadata) GetOriginalCreateTime() *timestamppb.Timestampfunc (*DeploymentMetadata) GetOriginalId
func (x *DeploymentMetadata) GetOriginalId() stringfunc (*DeploymentMetadata) GetOriginalUpdateTime
func (x *DeploymentMetadata) GetOriginalUpdateTime() *timestamppb.Timestampfunc (*DeploymentMetadata) ProtoMessage
func (*DeploymentMetadata) ProtoMessage()func (*DeploymentMetadata) ProtoReflect
func (x *DeploymentMetadata) ProtoReflect() protoreflect.Messagefunc (*DeploymentMetadata) Reset
func (x *DeploymentMetadata) Reset()func (*DeploymentMetadata) String
func (x *DeploymentMetadata) String() stringDisablePluginInstanceActionRequest
type DisablePluginInstanceActionRequest struct {
// Required. The name of the plugin instance to disable.
// Format:
// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The action id to disable.
ActionId string `protobuf:"bytes,2,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
// contains filtered or unexported fields
}The [DisablePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.DisablePluginInstanceAction] method's request.
func (*DisablePluginInstanceActionRequest) Descriptor
func (*DisablePluginInstanceActionRequest) Descriptor() ([]byte, []int)Deprecated: Use DisablePluginInstanceActionRequest.ProtoReflect.Descriptor instead.
func (*DisablePluginInstanceActionRequest) GetActionId
func (x *DisablePluginInstanceActionRequest) GetActionId() stringfunc (*DisablePluginInstanceActionRequest) GetName
func (x *DisablePluginInstanceActionRequest) GetName() stringfunc (*DisablePluginInstanceActionRequest) ProtoMessage
func (*DisablePluginInstanceActionRequest) ProtoMessage()func (*DisablePluginInstanceActionRequest) ProtoReflect
func (x *DisablePluginInstanceActionRequest) ProtoReflect() protoreflect.Messagefunc (*DisablePluginInstanceActionRequest) Reset
func (x *DisablePluginInstanceActionRequest) Reset()func (*DisablePluginInstanceActionRequest) String
func (x *DisablePluginInstanceActionRequest) String() stringDisablePluginInstanceActionResponse
type DisablePluginInstanceActionResponse struct {
// contains filtered or unexported fields
}The [DisablePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.DisablePluginInstanceAction] method's response.
func (*DisablePluginInstanceActionResponse) Descriptor
func (*DisablePluginInstanceActionResponse) Descriptor() ([]byte, []int)Deprecated: Use DisablePluginInstanceActionResponse.ProtoReflect.Descriptor instead.
func (*DisablePluginInstanceActionResponse) ProtoMessage
func (*DisablePluginInstanceActionResponse) ProtoMessage()func (*DisablePluginInstanceActionResponse) ProtoReflect
func (x *DisablePluginInstanceActionResponse) ProtoReflect() protoreflect.Messagefunc (*DisablePluginInstanceActionResponse) Reset
func (x *DisablePluginInstanceActionResponse) Reset()func (*DisablePluginInstanceActionResponse) String
func (x *DisablePluginInstanceActionResponse) String() stringDisablePluginRequest
type DisablePluginRequest struct {
// Required. The name of the plugin to disable.
// Format: `projects/{project}/locations/{location}/plugins/{plugin}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [DisablePlugin][google.cloud.apihub.v1.ApiHubPlugin.DisablePlugin] method's request.
func (*DisablePluginRequest) Descriptor
func (*DisablePluginRequest) Descriptor() ([]byte, []int)Deprecated: Use DisablePluginRequest.ProtoReflect.Descriptor instead.
func (*DisablePluginRequest) GetName
func (x *DisablePluginRequest) GetName() stringfunc (*DisablePluginRequest) ProtoMessage
func (*DisablePluginRequest) ProtoMessage()func (*DisablePluginRequest) ProtoReflect
func (x *DisablePluginRequest) ProtoReflect() protoreflect.Messagefunc (*DisablePluginRequest) Reset
func (x *DisablePluginRequest) Reset()func (*DisablePluginRequest) String
func (x *DisablePluginRequest) String() stringDiscoveredApiObservation
type DiscoveredApiObservation struct {
// Identifier. The name of the discovered API Observation.
//
// Format:
// `projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Style of ApiObservation
Style DiscoveredApiObservation_Style `protobuf:"varint,2,opt,name=style,proto3,enum=google.cloud.apihub.v1.DiscoveredApiObservation_Style" json:"style,omitempty"`
// Optional. The IP address (IPv4 or IPv6) of the origin server that the
// request was sent to. This field can include port information. Examples:
// `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
ServerIps []string `protobuf:"bytes,3,rep,name=server_ips,json=serverIps,proto3" json:"server_ips,omitempty"`
// Optional. The hostname of requests processed for this Observation.
Hostname string `protobuf:"bytes,4,opt,name=hostname,proto3" json:"hostname,omitempty"`
// Optional. Last event detected time stamp
LastEventDetectedTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_event_detected_time,json=lastEventDetectedTime,proto3" json:"last_event_detected_time,omitempty"`
// Optional. The location of the observation source.
SourceLocations []string `protobuf:"bytes,6,rep,name=source_locations,json=sourceLocations,proto3" json:"source_locations,omitempty"`
// Optional. The number of observed API Operations.
ApiOperationCount int64 `protobuf:"varint,7,opt,name=api_operation_count,json=apiOperationCount,proto3" json:"api_operation_count,omitempty"`
// Optional. For an observation pushed from a gcp resource, this would be the
// gcp project id.
Origin string `protobuf:"bytes,8,opt,name=origin,proto3" json:"origin,omitempty"`
// Optional. The type of the source from which the observation was collected.
SourceTypes []DiscoveredApiObservation_SourceType `protobuf:"varint,9,rep,packed,name=source_types,json=sourceTypes,proto3,enum=google.cloud.apihub.v1.DiscoveredApiObservation_SourceType" json:"source_types,omitempty"`
// Output only. The number of known API Operations.
KnownOperationsCount int64 `protobuf:"varint,10,opt,name=known_operations_count,json=knownOperationsCount,proto3" json:"known_operations_count,omitempty"`
// Output only. The number of unknown API Operations.
UnknownOperationsCount int64 `protobuf:"varint,11,opt,name=unknown_operations_count,json=unknownOperationsCount,proto3" json:"unknown_operations_count,omitempty"`
// Output only. Create time stamp of the observation in API Hub.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Update time stamp of the observation in API Hub.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Output only. The metadata of the source from which the observation was
// collected.
SourceMetadata *SourceMetadata `protobuf:"bytes,14,opt,name=source_metadata,json=sourceMetadata,proto3" json:"source_metadata,omitempty"`
// contains filtered or unexported fields
}Respresents an API Observation observed in one of the sources.
func (*DiscoveredApiObservation) Descriptor
func (*DiscoveredApiObservation) Descriptor() ([]byte, []int)Deprecated: Use DiscoveredApiObservation.ProtoReflect.Descriptor instead.
func (*DiscoveredApiObservation) GetApiOperationCount
func (x *DiscoveredApiObservation) GetApiOperationCount() int64func (*DiscoveredApiObservation) GetCreateTime
func (x *DiscoveredApiObservation) GetCreateTime() *timestamppb.Timestampfunc (*DiscoveredApiObservation) GetHostname
func (x *DiscoveredApiObservation) GetHostname() stringfunc (*DiscoveredApiObservation) GetKnownOperationsCount
func (x *DiscoveredApiObservation) GetKnownOperationsCount() int64func (*DiscoveredApiObservation) GetLastEventDetectedTime
func (x *DiscoveredApiObservation) GetLastEventDetectedTime() *timestamppb.Timestampfunc (*DiscoveredApiObservation) GetName
func (x *DiscoveredApiObservation) GetName() stringfunc (*DiscoveredApiObservation) GetOrigin
func (x *DiscoveredApiObservation) GetOrigin() stringfunc (*DiscoveredApiObservation) GetServerIps
func (x *DiscoveredApiObservation) GetServerIps() []stringfunc (*DiscoveredApiObservation) GetSourceLocations
func (x *DiscoveredApiObservation) GetSourceLocations() []stringfunc (*DiscoveredApiObservation) GetSourceMetadata
func (x *DiscoveredApiObservation) GetSourceMetadata() *SourceMetadatafunc (*DiscoveredApiObservation) GetSourceTypes
func (x *DiscoveredApiObservation) GetSourceTypes() []DiscoveredApiObservation_SourceTypefunc (*DiscoveredApiObservation) GetStyle
func (x *DiscoveredApiObservation) GetStyle() DiscoveredApiObservation_Stylefunc (*DiscoveredApiObservation) GetUnknownOperationsCount
func (x *DiscoveredApiObservation) GetUnknownOperationsCount() int64func (*DiscoveredApiObservation) GetUpdateTime
func (x *DiscoveredApiObservation) GetUpdateTime() *timestamppb.Timestampfunc (*DiscoveredApiObservation) ProtoMessage
func (*DiscoveredApiObservation) ProtoMessage()func (*DiscoveredApiObservation) ProtoReflect
func (x *DiscoveredApiObservation) ProtoReflect() protoreflect.Messagefunc (*DiscoveredApiObservation) Reset
func (x *DiscoveredApiObservation) Reset()func (*DiscoveredApiObservation) String
func (x *DiscoveredApiObservation) String() stringDiscoveredApiObservation_SourceType
type DiscoveredApiObservation_SourceType int32The possible types of the source from which the observation was collected.
DiscoveredApiObservation_SOURCE_TYPE_UNSPECIFIED, DiscoveredApiObservation_GCP_XLB, DiscoveredApiObservation_GCP_ILB
const (
// Source type not specified.
DiscoveredApiObservation_SOURCE_TYPE_UNSPECIFIED DiscoveredApiObservation_SourceType = 0
// GCP external load balancer.
DiscoveredApiObservation_GCP_XLB DiscoveredApiObservation_SourceType = 1
// GCP internal load balancer.
DiscoveredApiObservation_GCP_ILB DiscoveredApiObservation_SourceType = 2
)func (DiscoveredApiObservation_SourceType) Descriptor
func (DiscoveredApiObservation_SourceType) Descriptor() protoreflect.EnumDescriptorfunc (DiscoveredApiObservation_SourceType) Enum
func (x DiscoveredApiObservation_SourceType) Enum() *DiscoveredApiObservation_SourceTypefunc (DiscoveredApiObservation_SourceType) EnumDescriptor
func (DiscoveredApiObservation_SourceType) EnumDescriptor() ([]byte, []int)Deprecated: Use DiscoveredApiObservation_SourceType.Descriptor instead.
func (DiscoveredApiObservation_SourceType) Number
func (x DiscoveredApiObservation_SourceType) Number() protoreflect.EnumNumberfunc (DiscoveredApiObservation_SourceType) String
func (x DiscoveredApiObservation_SourceType) String() stringfunc (DiscoveredApiObservation_SourceType) Type
func (DiscoveredApiObservation_SourceType) Type() protoreflect.EnumTypeDiscoveredApiObservation_Style
type DiscoveredApiObservation_Style int32DiscoveredApiObservation protocol style
DiscoveredApiObservation_STYLE_UNSPECIFIED, DiscoveredApiObservation_REST, DiscoveredApiObservation_GRPC, DiscoveredApiObservation_GRAPHQL
const (
// Unknown style
DiscoveredApiObservation_STYLE_UNSPECIFIED DiscoveredApiObservation_Style = 0
// Style is Rest API
DiscoveredApiObservation_REST DiscoveredApiObservation_Style = 1
// Style is Grpc API
DiscoveredApiObservation_GRPC DiscoveredApiObservation_Style = 2
// Style is GraphQL API
DiscoveredApiObservation_GRAPHQL DiscoveredApiObservation_Style = 3
)func (DiscoveredApiObservation_Style) Descriptor
func (DiscoveredApiObservation_Style) Descriptor() protoreflect.EnumDescriptorfunc (DiscoveredApiObservation_Style) Enum
func (x DiscoveredApiObservation_Style) Enum() *DiscoveredApiObservation_Stylefunc (DiscoveredApiObservation_Style) EnumDescriptor
func (DiscoveredApiObservation_Style) EnumDescriptor() ([]byte, []int)Deprecated: Use DiscoveredApiObservation_Style.Descriptor instead.
func (DiscoveredApiObservation_Style) Number
func (x DiscoveredApiObservation_Style) Number() protoreflect.EnumNumberfunc (DiscoveredApiObservation_Style) String
func (x DiscoveredApiObservation_Style) String() stringfunc (DiscoveredApiObservation_Style) Type
func (DiscoveredApiObservation_Style) Type() protoreflect.EnumTypeDiscoveredApiOperation
type DiscoveredApiOperation struct {
// ApiOperation protocol style
//
// Types that are assignable to Operation:
//
// *DiscoveredApiOperation_HttpOperation
Operation isDiscoveredApiOperation_Operation `protobuf_oneof:"operation"`
// Identifier. The name of the discovered API Operation.
//
// Format:
// `projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. First seen time stamp
FirstSeenTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=first_seen_time,json=firstSeenTime,proto3" json:"first_seen_time,omitempty"`
// Optional. Last seen time stamp
LastSeenTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_seen_time,json=lastSeenTime,proto3" json:"last_seen_time,omitempty"`
// Optional. The number of occurrences of this API Operation.
Count int64 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
// Output only. The classification of the discovered API operation.
Classification DiscoveredApiOperation_Classification `protobuf:"varint,6,opt,name=classification,proto3,enum=google.cloud.apihub.v1.DiscoveredApiOperation_Classification" json:"classification,omitempty"`
// Output only. The list of matched results for the discovered API operation.
// This will be populated only if the classification is known. The current
// usecase is for a single match. Keeping it repeated to support multiple
// matches in future.
MatchResults []*DiscoveredApiOperation_MatchResult `protobuf:"bytes,7,rep,name=match_results,json=matchResults,proto3" json:"match_results,omitempty"`
// Output only. The metadata of the source from which the api operation was
// collected.
SourceMetadata *SourceMetadata `protobuf:"bytes,8,opt,name=source_metadata,json=sourceMetadata,proto3" json:"source_metadata,omitempty"`
// Output only. Create time stamp of the discovered API operation in API Hub.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Update time stamp of the discovered API operation in API Hub.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// contains filtered or unexported fields
}DiscoveredApiOperation represents an API Operation observed in one of the sources.
func (*DiscoveredApiOperation) Descriptor
func (*DiscoveredApiOperation) Descriptor() ([]byte, []int)Deprecated: Use DiscoveredApiOperation.ProtoReflect.Descriptor instead.
func (*DiscoveredApiOperation) GetClassification
func (x *DiscoveredApiOperation) GetClassification() DiscoveredApiOperation_Classificationfunc (*DiscoveredApiOperation) GetCount
func (x *DiscoveredApiOperation) GetCount() int64func (*DiscoveredApiOperation) GetCreateTime
func (x *DiscoveredApiOperation) GetCreateTime() *timestamppb.Timestampfunc (*DiscoveredApiOperation) GetFirstSeenTime
func (x *DiscoveredApiOperation) GetFirstSeenTime() *timestamppb.Timestampfunc (*DiscoveredApiOperation) GetHttpOperation
func (x *DiscoveredApiOperation) GetHttpOperation() *HttpOperationDetailsfunc (*DiscoveredApiOperation) GetLastSeenTime
func (x *DiscoveredApiOperation) GetLastSeenTime() *timestamppb.Timestampfunc (*DiscoveredApiOperation) GetMatchResults
func (x *DiscoveredApiOperation) GetMatchResults() []*DiscoveredApiOperation_MatchResultfunc (*DiscoveredApiOperation) GetName
func (x *DiscoveredApiOperation) GetName() stringfunc (*DiscoveredApiOperation) GetOperation
func (m *DiscoveredApiOperation) GetOperation() isDiscoveredApiOperation_Operationfunc (*DiscoveredApiOperation) GetSourceMetadata
func (x *DiscoveredApiOperation) GetSourceMetadata() *SourceMetadatafunc (*DiscoveredApiOperation) GetUpdateTime
func (x *DiscoveredApiOperation) GetUpdateTime() *timestamppb.Timestampfunc (*DiscoveredApiOperation) ProtoMessage
func (*DiscoveredApiOperation) ProtoMessage()func (*DiscoveredApiOperation) ProtoReflect
func (x *DiscoveredApiOperation) ProtoReflect() protoreflect.Messagefunc (*DiscoveredApiOperation) Reset
func (x *DiscoveredApiOperation) Reset()func (*DiscoveredApiOperation) String
func (x *DiscoveredApiOperation) String() stringDiscoveredApiOperation_Classification
type DiscoveredApiOperation_Classification int32The classification of the discovered API operation.
DiscoveredApiOperation_CLASSIFICATION_UNSPECIFIED, DiscoveredApiOperation_KNOWN, DiscoveredApiOperation_UNKNOWN
const (
// Operation is not classified as known or unknown.
DiscoveredApiOperation_CLASSIFICATION_UNSPECIFIED DiscoveredApiOperation_Classification = 0
// Operation has a matched catalog operation.
DiscoveredApiOperation_KNOWN DiscoveredApiOperation_Classification = 1
// Operation does not have a matched catalog operation.
DiscoveredApiOperation_UNKNOWN DiscoveredApiOperation_Classification = 2
)func (DiscoveredApiOperation_Classification) Descriptor
func (DiscoveredApiOperation_Classification) Descriptor() protoreflect.EnumDescriptorfunc (DiscoveredApiOperation_Classification) Enum
func (DiscoveredApiOperation_Classification) EnumDescriptor
func (DiscoveredApiOperation_Classification) EnumDescriptor() ([]byte, []int)Deprecated: Use DiscoveredApiOperation_Classification.Descriptor instead.
func (DiscoveredApiOperation_Classification) Number
func (x DiscoveredApiOperation_Classification) Number() protoreflect.EnumNumberfunc (DiscoveredApiOperation_Classification) String
func (x DiscoveredApiOperation_Classification) String() stringfunc (DiscoveredApiOperation_Classification) Type
func (DiscoveredApiOperation_Classification) Type() protoreflect.EnumTypeDiscoveredApiOperation_HttpOperation
type DiscoveredApiOperation_HttpOperation struct {
// Optional. An HTTP Operation.
HttpOperation *HttpOperationDetails `protobuf:"bytes,2,opt,name=http_operation,json=httpOperation,proto3,oneof"`
}DiscoveredApiOperation_MatchResult
type DiscoveredApiOperation_MatchResult struct {
// Output only. The name of the matched API Operation.
//
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}MatchResult represents the result of matching a discovered API operation with a catalog API operation.
func (*DiscoveredApiOperation_MatchResult) Descriptor
func (*DiscoveredApiOperation_MatchResult) Descriptor() ([]byte, []int)Deprecated: Use DiscoveredApiOperation_MatchResult.ProtoReflect.Descriptor instead.
func (*DiscoveredApiOperation_MatchResult) GetName
func (x *DiscoveredApiOperation_MatchResult) GetName() stringfunc (*DiscoveredApiOperation_MatchResult) ProtoMessage
func (*DiscoveredApiOperation_MatchResult) ProtoMessage()func (*DiscoveredApiOperation_MatchResult) ProtoReflect
func (x *DiscoveredApiOperation_MatchResult) ProtoReflect() protoreflect.Messagefunc (*DiscoveredApiOperation_MatchResult) Reset
func (x *DiscoveredApiOperation_MatchResult) Reset()func (*DiscoveredApiOperation_MatchResult) String
func (x *DiscoveredApiOperation_MatchResult) String() stringDocumentation
type Documentation struct {
// Optional. The uri of the externally hosted documentation.
ExternalUri string `protobuf:"bytes,1,opt,name=external_uri,json=externalUri,proto3" json:"external_uri,omitempty"`
// contains filtered or unexported fields
}Documentation details.
func (*Documentation) Descriptor
func (*Documentation) Descriptor() ([]byte, []int)Deprecated: Use Documentation.ProtoReflect.Descriptor instead.
func (*Documentation) GetExternalUri
func (x *Documentation) GetExternalUri() stringfunc (*Documentation) ProtoMessage
func (*Documentation) ProtoMessage()func (*Documentation) ProtoReflect
func (x *Documentation) ProtoReflect() protoreflect.Messagefunc (*Documentation) Reset
func (x *Documentation) Reset()func (*Documentation) String
func (x *Documentation) String() stringEnablePluginInstanceActionRequest
type EnablePluginInstanceActionRequest struct {
// Required. The name of the plugin instance to enable.
// Format:
// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The action id to enable.
ActionId string `protobuf:"bytes,2,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
// contains filtered or unexported fields
}The [EnablePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.EnablePluginInstanceAction] method's request.
func (*EnablePluginInstanceActionRequest) Descriptor
func (*EnablePluginInstanceActionRequest) Descriptor() ([]byte, []int)Deprecated: Use EnablePluginInstanceActionRequest.ProtoReflect.Descriptor instead.
func (*EnablePluginInstanceActionRequest) GetActionId
func (x *EnablePluginInstanceActionRequest) GetActionId() stringfunc (*EnablePluginInstanceActionRequest) GetName
func (x *EnablePluginInstanceActionRequest) GetName() stringfunc (*EnablePluginInstanceActionRequest) ProtoMessage
func (*EnablePluginInstanceActionRequest) ProtoMessage()func (*EnablePluginInstanceActionRequest) ProtoReflect
func (x *EnablePluginInstanceActionRequest) ProtoReflect() protoreflect.Messagefunc (*EnablePluginInstanceActionRequest) Reset
func (x *EnablePluginInstanceActionRequest) Reset()func (*EnablePluginInstanceActionRequest) String
func (x *EnablePluginInstanceActionRequest) String() stringEnablePluginInstanceActionResponse
type EnablePluginInstanceActionResponse struct {
// contains filtered or unexported fields
}The [EnablePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.EnablePluginInstanceAction] method's response.
func (*EnablePluginInstanceActionResponse) Descriptor
func (*EnablePluginInstanceActionResponse) Descriptor() ([]byte, []int)Deprecated: Use EnablePluginInstanceActionResponse.ProtoReflect.Descriptor instead.
func (*EnablePluginInstanceActionResponse) ProtoMessage
func (*EnablePluginInstanceActionResponse) ProtoMessage()func (*EnablePluginInstanceActionResponse) ProtoReflect
func (x *EnablePluginInstanceActionResponse) ProtoReflect() protoreflect.Messagefunc (*EnablePluginInstanceActionResponse) Reset
func (x *EnablePluginInstanceActionResponse) Reset()func (*EnablePluginInstanceActionResponse) String
func (x *EnablePluginInstanceActionResponse) String() stringEnablePluginRequest
type EnablePluginRequest struct {
// Required. The name of the plugin to enable.
// Format: `projects/{project}/locations/{location}/plugins/{plugin}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [EnablePlugin][google.cloud.apihub.v1.ApiHubPlugin.EnablePlugin] method's request.
func (*EnablePluginRequest) Descriptor
func (*EnablePluginRequest) Descriptor() ([]byte, []int)Deprecated: Use EnablePluginRequest.ProtoReflect.Descriptor instead.
func (*EnablePluginRequest) GetName
func (x *EnablePluginRequest) GetName() stringfunc (*EnablePluginRequest) ProtoMessage
func (*EnablePluginRequest) ProtoMessage()func (*EnablePluginRequest) ProtoReflect
func (x *EnablePluginRequest) ProtoReflect() protoreflect.Messagefunc (*EnablePluginRequest) Reset
func (x *EnablePluginRequest) Reset()func (*EnablePluginRequest) String
func (x *EnablePluginRequest) String() stringEndpoint
type Endpoint struct {
// The details of the endpoint to be triggered for curation.
//
// Types that are assignable to EndpointDetails:
//
// *Endpoint_ApplicationIntegrationEndpointDetails
EndpointDetails isEndpoint_EndpointDetails `protobuf_oneof:"endpoint_details"`
// contains filtered or unexported fields
}The endpoint to be triggered for curation. The endpoint will be invoked with a request payload containing [ApiMetadata][google.cloud.apihub.v1.ApiHub.ApiMetadata]. Response should contain curated data in the form of [ApiMetadata][google.cloud.apihub.v1.ApiHub.ApiMetadata].
func (*Endpoint) Descriptor
Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.
func (*Endpoint) GetApplicationIntegrationEndpointDetails
func (x *Endpoint) GetApplicationIntegrationEndpointDetails() *ApplicationIntegrationEndpointDetailsfunc (*Endpoint) GetEndpointDetails
func (m *Endpoint) GetEndpointDetails() isEndpoint_EndpointDetailsfunc (*Endpoint) ProtoMessage
func (*Endpoint) ProtoMessage()func (*Endpoint) ProtoReflect
func (x *Endpoint) ProtoReflect() protoreflect.Messagefunc (*Endpoint) Reset
func (x *Endpoint) Reset()func (*Endpoint) String
Endpoint_ApplicationIntegrationEndpointDetails
type Endpoint_ApplicationIntegrationEndpointDetails struct {
// Required. The details of the Application Integration endpoint to be
// triggered for curation.
ApplicationIntegrationEndpointDetails *ApplicationIntegrationEndpointDetails `protobuf:"bytes,1,opt,name=application_integration_endpoint_details,json=applicationIntegrationEndpointDetails,proto3,oneof"`
}ExecutePluginInstanceActionRequest
type ExecutePluginInstanceActionRequest struct {
// Required. The name of the plugin instance to execute.
// Format:
// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The execution details for the action to execute.
ActionExecutionDetail *ActionExecutionDetail `protobuf:"bytes,2,opt,name=action_execution_detail,json=actionExecutionDetail,proto3" json:"action_execution_detail,omitempty"`
// contains filtered or unexported fields
}The [ExecutePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.ExecutePluginInstanceAction] method's request.
func (*ExecutePluginInstanceActionRequest) Descriptor
func (*ExecutePluginInstanceActionRequest) Descriptor() ([]byte, []int)Deprecated: Use ExecutePluginInstanceActionRequest.ProtoReflect.Descriptor instead.
func (*ExecutePluginInstanceActionRequest) GetActionExecutionDetail
func (x *ExecutePluginInstanceActionRequest) GetActionExecutionDetail() *ActionExecutionDetailfunc (*ExecutePluginInstanceActionRequest) GetName
func (x *ExecutePluginInstanceActionRequest) GetName() stringfunc (*ExecutePluginInstanceActionRequest) ProtoMessage
func (*ExecutePluginInstanceActionRequest) ProtoMessage()func (*ExecutePluginInstanceActionRequest) ProtoReflect
func (x *ExecutePluginInstanceActionRequest) ProtoReflect() protoreflect.Messagefunc (*ExecutePluginInstanceActionRequest) Reset
func (x *ExecutePluginInstanceActionRequest) Reset()func (*ExecutePluginInstanceActionRequest) String
func (x *ExecutePluginInstanceActionRequest) String() stringExecutePluginInstanceActionResponse
type ExecutePluginInstanceActionResponse struct {
// contains filtered or unexported fields
}The [ExecutePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.ExecutePluginInstanceAction] method's response.
func (*ExecutePluginInstanceActionResponse) Descriptor
func (*ExecutePluginInstanceActionResponse) Descriptor() ([]byte, []int)Deprecated: Use ExecutePluginInstanceActionResponse.ProtoReflect.Descriptor instead.
func (*ExecutePluginInstanceActionResponse) ProtoMessage
func (*ExecutePluginInstanceActionResponse) ProtoMessage()func (*ExecutePluginInstanceActionResponse) ProtoReflect
func (x *ExecutePluginInstanceActionResponse) ProtoReflect() protoreflect.Messagefunc (*ExecutePluginInstanceActionResponse) Reset
func (x *ExecutePluginInstanceActionResponse) Reset()func (*ExecutePluginInstanceActionResponse) String
func (x *ExecutePluginInstanceActionResponse) String() stringExecutionStatus
type ExecutionStatus struct {
// Output only. The current state of the execution.
CurrentExecutionState ExecutionStatus_CurrentExecutionState `protobuf:"varint,1,opt,name=current_execution_state,json=currentExecutionState,proto3,enum=google.cloud.apihub.v1.ExecutionStatus_CurrentExecutionState" json:"current_execution_state,omitempty"`
// Output only. The last execution of the plugin instance.
LastExecution *ExecutionStatus_LastExecution `protobuf:"bytes,2,opt,name=last_execution,json=lastExecution,proto3" json:"last_execution,omitempty"`
// contains filtered or unexported fields
}The execution status for the plugin instance.
func (*ExecutionStatus) Descriptor
func (*ExecutionStatus) Descriptor() ([]byte, []int)Deprecated: Use ExecutionStatus.ProtoReflect.Descriptor instead.
func (*ExecutionStatus) GetCurrentExecutionState
func (x *ExecutionStatus) GetCurrentExecutionState() ExecutionStatus_CurrentExecutionStatefunc (*ExecutionStatus) GetLastExecution
func (x *ExecutionStatus) GetLastExecution() *ExecutionStatus_LastExecutionfunc (*ExecutionStatus) ProtoMessage
func (*ExecutionStatus) ProtoMessage()func (*ExecutionStatus) ProtoReflect
func (x *ExecutionStatus) ProtoReflect() protoreflect.Messagefunc (*ExecutionStatus) Reset
func (x *ExecutionStatus) Reset()func (*ExecutionStatus) String
func (x *ExecutionStatus) String() stringExecutionStatus_CurrentExecutionState
type ExecutionStatus_CurrentExecutionState int32Enum for the current state of the execution.
ExecutionStatus_CURRENT_EXECUTION_STATE_UNSPECIFIED, ExecutionStatus_RUNNING, ExecutionStatus_NOT_RUNNING
const (
// Default unspecified execution state.
ExecutionStatus_CURRENT_EXECUTION_STATE_UNSPECIFIED ExecutionStatus_CurrentExecutionState = 0
// The plugin instance is executing.
ExecutionStatus_RUNNING ExecutionStatus_CurrentExecutionState = 1
// The plugin instance is not running an execution.
ExecutionStatus_NOT_RUNNING ExecutionStatus_CurrentExecutionState = 2
)func (ExecutionStatus_CurrentExecutionState) Descriptor
func (ExecutionStatus_CurrentExecutionState) Descriptor() protoreflect.EnumDescriptorfunc (ExecutionStatus_CurrentExecutionState) Enum
func (ExecutionStatus_CurrentExecutionState) EnumDescriptor
func (ExecutionStatus_CurrentExecutionState) EnumDescriptor() ([]byte, []int)Deprecated: Use ExecutionStatus_CurrentExecutionState.Descriptor instead.
func (ExecutionStatus_CurrentExecutionState) Number
func (x ExecutionStatus_CurrentExecutionState) Number() protoreflect.EnumNumberfunc (ExecutionStatus_CurrentExecutionState) String
func (x ExecutionStatus_CurrentExecutionState) String() stringfunc (ExecutionStatus_CurrentExecutionState) Type
func (ExecutionStatus_CurrentExecutionState) Type() protoreflect.EnumTypeExecutionStatus_LastExecution
type ExecutionStatus_LastExecution struct {
// Output only. The result of the last execution of the plugin instance.
Result ExecutionStatus_LastExecution_Result `protobuf:"varint,1,opt,name=result,proto3,enum=google.cloud.apihub.v1.ExecutionStatus_LastExecution_Result" json:"result,omitempty"`
// Output only. Error message describing the failure, if any, during the
// last execution.
ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
// Output only. The last execution start time of the plugin instance.
StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Output only. The last execution end time of the plugin instance.
EndTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// contains filtered or unexported fields
}The result of the last execution of the plugin instance.
func (*ExecutionStatus_LastExecution) Descriptor
func (*ExecutionStatus_LastExecution) Descriptor() ([]byte, []int)Deprecated: Use ExecutionStatus_LastExecution.ProtoReflect.Descriptor instead.
func (*ExecutionStatus_LastExecution) GetEndTime
func (x *ExecutionStatus_LastExecution) GetEndTime() *timestamppb.Timestampfunc (*ExecutionStatus_LastExecution) GetErrorMessage
func (x *ExecutionStatus_LastExecution) GetErrorMessage() stringfunc (*ExecutionStatus_LastExecution) GetResult
func (x *ExecutionStatus_LastExecution) GetResult() ExecutionStatus_LastExecution_Resultfunc (*ExecutionStatus_LastExecution) GetStartTime
func (x *ExecutionStatus_LastExecution) GetStartTime() *timestamppb.Timestampfunc (*ExecutionStatus_LastExecution) ProtoMessage
func (*ExecutionStatus_LastExecution) ProtoMessage()func (*ExecutionStatus_LastExecution) ProtoReflect
func (x *ExecutionStatus_LastExecution) ProtoReflect() protoreflect.Messagefunc (*ExecutionStatus_LastExecution) Reset
func (x *ExecutionStatus_LastExecution) Reset()func (*ExecutionStatus_LastExecution) String
func (x *ExecutionStatus_LastExecution) String() stringExecutionStatus_LastExecution_Result
type ExecutionStatus_LastExecution_Result int32Enum for the result of the last execution of the plugin instance.
ExecutionStatus_LastExecution_RESULT_UNSPECIFIED, ExecutionStatus_LastExecution_SUCCEEDED, ExecutionStatus_LastExecution_FAILED
const (
// Default unspecified execution result.
ExecutionStatus_LastExecution_RESULT_UNSPECIFIED ExecutionStatus_LastExecution_Result = 0
// The plugin instance executed successfully.
ExecutionStatus_LastExecution_SUCCEEDED ExecutionStatus_LastExecution_Result = 1
// The plugin instance execution failed.
ExecutionStatus_LastExecution_FAILED ExecutionStatus_LastExecution_Result = 2
)func (ExecutionStatus_LastExecution_Result) Descriptor
func (ExecutionStatus_LastExecution_Result) Descriptor() protoreflect.EnumDescriptorfunc (ExecutionStatus_LastExecution_Result) Enum
func (x ExecutionStatus_LastExecution_Result) Enum() *ExecutionStatus_LastExecution_Resultfunc (ExecutionStatus_LastExecution_Result) EnumDescriptor
func (ExecutionStatus_LastExecution_Result) EnumDescriptor() ([]byte, []int)Deprecated: Use ExecutionStatus_LastExecution_Result.Descriptor instead.
func (ExecutionStatus_LastExecution_Result) Number
func (x ExecutionStatus_LastExecution_Result) Number() protoreflect.EnumNumberfunc (ExecutionStatus_LastExecution_Result) String
func (x ExecutionStatus_LastExecution_Result) String() stringfunc (ExecutionStatus_LastExecution_Result) Type
func (ExecutionStatus_LastExecution_Result) Type() protoreflect.EnumTypeExternalApi
type ExternalApi struct {
// Identifier. Format:
// `projects/{project}/locations/{location}/externalApi/{externalApi}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Display name of the external API. Max length is 63 characters
// (Unicode Code Points).
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. Description of the external API. Max length is 2000 characters
// (Unicode Code Points).
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Optional. List of endpoints on which this API is accessible.
Endpoints []string `protobuf:"bytes,4,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
// Optional. List of paths served by this API.
Paths []string `protobuf:"bytes,5,rep,name=paths,proto3" json:"paths,omitempty"`
// Optional. Documentation of the external API.
Documentation *Documentation `protobuf:"bytes,6,opt,name=documentation,proto3" json:"documentation,omitempty"`
// Optional. The list of user defined attributes associated with the Version
// resource. The key is the attribute name. It will be of the format:
// `projects/{project}/locations/{location}/attributes/{attribute}`.
// The value is the attribute values associated with the resource.
Attributes map[string]*AttributeValues `protobuf:"bytes,7,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Output only. Creation timestamp.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Last update timestamp.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// contains filtered or unexported fields
}An external API represents an API being provided by external sources. This can be used to model third-party APIs and can be used to define dependencies.
func (*ExternalApi) Descriptor
func (*ExternalApi) Descriptor() ([]byte, []int)Deprecated: Use ExternalApi.ProtoReflect.Descriptor instead.
func (*ExternalApi) GetAttributes
func (x *ExternalApi) GetAttributes() map[string]*AttributeValuesfunc (*ExternalApi) GetCreateTime
func (x *ExternalApi) GetCreateTime() *timestamppb.Timestampfunc (*ExternalApi) GetDescription
func (x *ExternalApi) GetDescription() stringfunc (*ExternalApi) GetDisplayName
func (x *ExternalApi) GetDisplayName() stringfunc (*ExternalApi) GetDocumentation
func (x *ExternalApi) GetDocumentation() *Documentationfunc (*ExternalApi) GetEndpoints
func (x *ExternalApi) GetEndpoints() []stringfunc (*ExternalApi) GetName
func (x *ExternalApi) GetName() stringfunc (*ExternalApi) GetPaths
func (x *ExternalApi) GetPaths() []stringfunc (*ExternalApi) GetUpdateTime
func (x *ExternalApi) GetUpdateTime() *timestamppb.Timestampfunc (*ExternalApi) ProtoMessage
func (*ExternalApi) ProtoMessage()func (*ExternalApi) ProtoReflect
func (x *ExternalApi) ProtoReflect() protoreflect.Messagefunc (*ExternalApi) Reset
func (x *ExternalApi) Reset()func (*ExternalApi) String
func (x *ExternalApi) String() stringGatewayType
type GatewayType int32Enum for the gateway type.
GatewayType_GATEWAY_TYPE_UNSPECIFIED, GatewayType_APIGEE_X_AND_HYBRID, GatewayType_APIGEE_EDGE_PUBLIC_CLOUD, GatewayType_APIGEE_EDGE_PRIVATE_CLOUD, GatewayType_CLOUD_API_GATEWAY, GatewayType_CLOUD_ENDPOINTS, GatewayType_API_DISCOVERY, GatewayType_OTHERS
const (
// The gateway type is not specified.
GatewayType_GATEWAY_TYPE_UNSPECIFIED GatewayType = 0
// The gateway type is Apigee X and Hybrid.
GatewayType_APIGEE_X_AND_HYBRID GatewayType = 1
// The gateway type is Apigee Edge Public Cloud.
GatewayType_APIGEE_EDGE_PUBLIC_CLOUD GatewayType = 2
// The gateway type is Apigee Edge Private Cloud.
GatewayType_APIGEE_EDGE_PRIVATE_CLOUD GatewayType = 3
// The gateway type is Cloud API Gateway.
GatewayType_CLOUD_API_GATEWAY GatewayType = 4
// The gateway type is Cloud Endpoints.
GatewayType_CLOUD_ENDPOINTS GatewayType = 5
// The gateway type is API Discovery.
GatewayType_API_DISCOVERY GatewayType = 6
// The gateway type for any other types of gateways.
GatewayType_OTHERS GatewayType = 7
)func (GatewayType) Descriptor
func (GatewayType) Descriptor() protoreflect.EnumDescriptorfunc (GatewayType) Enum
func (x GatewayType) Enum() *GatewayTypefunc (GatewayType) EnumDescriptor
func (GatewayType) EnumDescriptor() ([]byte, []int)Deprecated: Use GatewayType.Descriptor instead.
func (GatewayType) Number
func (x GatewayType) Number() protoreflect.EnumNumberfunc (GatewayType) String
func (x GatewayType) String() stringfunc (GatewayType) Type
func (GatewayType) Type() protoreflect.EnumTypeGetApiHubInstanceRequest
type GetApiHubInstanceRequest struct {
// Required. The name of the Api Hub instance to retrieve.
// Format:
// `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetApiHubInstance][google.cloud.apihub.v1.Provisioning.GetApiHubInstance] method's request.
func (*GetApiHubInstanceRequest) Descriptor
func (*GetApiHubInstanceRequest) Descriptor() ([]byte, []int)Deprecated: Use GetApiHubInstanceRequest.ProtoReflect.Descriptor instead.
func (*GetApiHubInstanceRequest) GetName
func (x *GetApiHubInstanceRequest) GetName() stringfunc (*GetApiHubInstanceRequest) ProtoMessage
func (*GetApiHubInstanceRequest) ProtoMessage()func (*GetApiHubInstanceRequest) ProtoReflect
func (x *GetApiHubInstanceRequest) ProtoReflect() protoreflect.Messagefunc (*GetApiHubInstanceRequest) Reset
func (x *GetApiHubInstanceRequest) Reset()func (*GetApiHubInstanceRequest) String
func (x *GetApiHubInstanceRequest) String() stringGetApiOperationRequest
type GetApiOperationRequest struct {
// Required. The name of the operation to retrieve.
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetApiOperation][google.cloud.apihub.v1.ApiHub.GetApiOperation] method's request.
func (*GetApiOperationRequest) Descriptor
func (*GetApiOperationRequest) Descriptor() ([]byte, []int)Deprecated: Use GetApiOperationRequest.ProtoReflect.Descriptor instead.
func (*GetApiOperationRequest) GetName
func (x *GetApiOperationRequest) GetName() stringfunc (*GetApiOperationRequest) ProtoMessage
func (*GetApiOperationRequest) ProtoMessage()func (*GetApiOperationRequest) ProtoReflect
func (x *GetApiOperationRequest) ProtoReflect() protoreflect.Messagefunc (*GetApiOperationRequest) Reset
func (x *GetApiOperationRequest) Reset()func (*GetApiOperationRequest) String
func (x *GetApiOperationRequest) String() stringGetApiRequest
type GetApiRequest struct {
// Required. The name of the API resource to retrieve.
// Format: `projects/{project}/locations/{location}/apis/{api}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetApi][google.cloud.apihub.v1.ApiHub.GetApi] method's request.
func (*GetApiRequest) Descriptor
func (*GetApiRequest) Descriptor() ([]byte, []int)Deprecated: Use GetApiRequest.ProtoReflect.Descriptor instead.
func (*GetApiRequest) GetName
func (x *GetApiRequest) GetName() stringfunc (*GetApiRequest) ProtoMessage
func (*GetApiRequest) ProtoMessage()func (*GetApiRequest) ProtoReflect
func (x *GetApiRequest) ProtoReflect() protoreflect.Messagefunc (*GetApiRequest) Reset
func (x *GetApiRequest) Reset()func (*GetApiRequest) String
func (x *GetApiRequest) String() stringGetAttributeRequest
type GetAttributeRequest struct {
// Required. The name of the attribute to retrieve.
// Format:
// `projects/{project}/locations/{location}/attributes/{attribute}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetAttribute][google.cloud.apihub.v1.ApiHub.GetAttribute] method's request.
func (*GetAttributeRequest) Descriptor
func (*GetAttributeRequest) Descriptor() ([]byte, []int)Deprecated: Use GetAttributeRequest.ProtoReflect.Descriptor instead.
func (*GetAttributeRequest) GetName
func (x *GetAttributeRequest) GetName() stringfunc (*GetAttributeRequest) ProtoMessage
func (*GetAttributeRequest) ProtoMessage()func (*GetAttributeRequest) ProtoReflect
func (x *GetAttributeRequest) ProtoReflect() protoreflect.Messagefunc (*GetAttributeRequest) Reset
func (x *GetAttributeRequest) Reset()func (*GetAttributeRequest) String
func (x *GetAttributeRequest) String() stringGetCurationRequest
type GetCurationRequest struct {
// Required. The name of the curation resource to retrieve.
// Format: `projects/{project}/locations/{location}/curations/{curation}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetCuration][ApiHub.GetCuration] method's request.
func (*GetCurationRequest) Descriptor
func (*GetCurationRequest) Descriptor() ([]byte, []int)Deprecated: Use GetCurationRequest.ProtoReflect.Descriptor instead.
func (*GetCurationRequest) GetName
func (x *GetCurationRequest) GetName() stringfunc (*GetCurationRequest) ProtoMessage
func (*GetCurationRequest) ProtoMessage()func (*GetCurationRequest) ProtoReflect
func (x *GetCurationRequest) ProtoReflect() protoreflect.Messagefunc (*GetCurationRequest) Reset
func (x *GetCurationRequest) Reset()func (*GetCurationRequest) String
func (x *GetCurationRequest) String() stringGetDefinitionRequest
type GetDefinitionRequest struct {
// Required. The name of the definition to retrieve.
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetDefinition][google.cloud.apihub.v1.ApiHub.GetDefinition] method's request.
func (*GetDefinitionRequest) Descriptor
func (*GetDefinitionRequest) Descriptor() ([]byte, []int)Deprecated: Use GetDefinitionRequest.ProtoReflect.Descriptor instead.
func (*GetDefinitionRequest) GetName
func (x *GetDefinitionRequest) GetName() stringfunc (*GetDefinitionRequest) ProtoMessage
func (*GetDefinitionRequest) ProtoMessage()func (*GetDefinitionRequest) ProtoReflect
func (x *GetDefinitionRequest) ProtoReflect() protoreflect.Messagefunc (*GetDefinitionRequest) Reset
func (x *GetDefinitionRequest) Reset()func (*GetDefinitionRequest) String
func (x *GetDefinitionRequest) String() stringGetDependencyRequest
type GetDependencyRequest struct {
// Required. The name of the dependency resource to retrieve.
// Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetDependency][.ApiHubDependencies.GetDependency] method's request.
func (*GetDependencyRequest) Descriptor
func (*GetDependencyRequest) Descriptor() ([]byte, []int)Deprecated: Use GetDependencyRequest.ProtoReflect.Descriptor instead.
func (*GetDependencyRequest) GetName
func (x *GetDependencyRequest) GetName() stringfunc (*GetDependencyRequest) ProtoMessage
func (*GetDependencyRequest) ProtoMessage()func (*GetDependencyRequest) ProtoReflect
func (x *GetDependencyRequest) ProtoReflect() protoreflect.Messagefunc (*GetDependencyRequest) Reset
func (x *GetDependencyRequest) Reset()func (*GetDependencyRequest) String
func (x *GetDependencyRequest) String() stringGetDeploymentRequest
type GetDeploymentRequest struct {
// Required. The name of the deployment resource to retrieve.
// Format: `projects/{project}/locations/{location}/deployments/{deployment}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetDeployment][google.cloud.apihub.v1.ApiHub.GetDeployment] method's request.
func (*GetDeploymentRequest) Descriptor
func (*GetDeploymentRequest) Descriptor() ([]byte, []int)Deprecated: Use GetDeploymentRequest.ProtoReflect.Descriptor instead.
func (*GetDeploymentRequest) GetName
func (x *GetDeploymentRequest) GetName() stringfunc (*GetDeploymentRequest) ProtoMessage
func (*GetDeploymentRequest) ProtoMessage()func (*GetDeploymentRequest) ProtoReflect
func (x *GetDeploymentRequest) ProtoReflect() protoreflect.Messagefunc (*GetDeploymentRequest) Reset
func (x *GetDeploymentRequest) Reset()func (*GetDeploymentRequest) String
func (x *GetDeploymentRequest) String() stringGetDiscoveredApiObservationRequest
type GetDiscoveredApiObservationRequest struct {
// Required. The name of the DiscoveredApiObservation to retrieve.
// Format:
// projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Message for requesting a DiscoveredApiObservation
func (*GetDiscoveredApiObservationRequest) Descriptor
func (*GetDiscoveredApiObservationRequest) Descriptor() ([]byte, []int)Deprecated: Use GetDiscoveredApiObservationRequest.ProtoReflect.Descriptor instead.
func (*GetDiscoveredApiObservationRequest) GetName
func (x *GetDiscoveredApiObservationRequest) GetName() stringfunc (*GetDiscoveredApiObservationRequest) ProtoMessage
func (*GetDiscoveredApiObservationRequest) ProtoMessage()func (*GetDiscoveredApiObservationRequest) ProtoReflect
func (x *GetDiscoveredApiObservationRequest) ProtoReflect() protoreflect.Messagefunc (*GetDiscoveredApiObservationRequest) Reset
func (x *GetDiscoveredApiObservationRequest) Reset()func (*GetDiscoveredApiObservationRequest) String
func (x *GetDiscoveredApiObservationRequest) String() stringGetDiscoveredApiOperationRequest
type GetDiscoveredApiOperationRequest struct {
// Required. The name of the DiscoveredApiOperation to retrieve.
// Format:
// projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Message for requesting a DiscoveredApiOperation
func (*GetDiscoveredApiOperationRequest) Descriptor
func (*GetDiscoveredApiOperationRequest) Descriptor() ([]byte, []int)Deprecated: Use GetDiscoveredApiOperationRequest.ProtoReflect.Descriptor instead.
func (*GetDiscoveredApiOperationRequest) GetName
func (x *GetDiscoveredApiOperationRequest) GetName() stringfunc (*GetDiscoveredApiOperationRequest) ProtoMessage
func (*GetDiscoveredApiOperationRequest) ProtoMessage()func (*GetDiscoveredApiOperationRequest) ProtoReflect
func (x *GetDiscoveredApiOperationRequest) ProtoReflect() protoreflect.Messagefunc (*GetDiscoveredApiOperationRequest) Reset
func (x *GetDiscoveredApiOperationRequest) Reset()func (*GetDiscoveredApiOperationRequest) String
func (x *GetDiscoveredApiOperationRequest) String() stringGetExternalApiRequest
type GetExternalApiRequest struct {
// Required. The name of the External API resource to retrieve.
// Format:
// `projects/{project}/locations/{location}/externalApis/{externalApi}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetExternalApi][google.cloud.apihub.v1.ApiHub.GetExternalApi] method's request.
func (*GetExternalApiRequest) Descriptor
func (*GetExternalApiRequest) Descriptor() ([]byte, []int)Deprecated: Use GetExternalApiRequest.ProtoReflect.Descriptor instead.
func (*GetExternalApiRequest) GetName
func (x *GetExternalApiRequest) GetName() stringfunc (*GetExternalApiRequest) ProtoMessage
func (*GetExternalApiRequest) ProtoMessage()func (*GetExternalApiRequest) ProtoReflect
func (x *GetExternalApiRequest) ProtoReflect() protoreflect.Messagefunc (*GetExternalApiRequest) Reset
func (x *GetExternalApiRequest) Reset()func (*GetExternalApiRequest) String
func (x *GetExternalApiRequest) String() stringGetHostProjectRegistrationRequest
type GetHostProjectRegistrationRequest struct {
// Required. Host project registration resource name.
// projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetHostProjectRegistration][google.cloud.apihub.v1.HostProjectRegistrationService.GetHostProjectRegistration] method's request.
func (*GetHostProjectRegistrationRequest) Descriptor
func (*GetHostProjectRegistrationRequest) Descriptor() ([]byte, []int)Deprecated: Use GetHostProjectRegistrationRequest.ProtoReflect.Descriptor instead.
func (*GetHostProjectRegistrationRequest) GetName
func (x *GetHostProjectRegistrationRequest) GetName() stringfunc (*GetHostProjectRegistrationRequest) ProtoMessage
func (*GetHostProjectRegistrationRequest) ProtoMessage()func (*GetHostProjectRegistrationRequest) ProtoReflect
func (x *GetHostProjectRegistrationRequest) ProtoReflect() protoreflect.Messagefunc (*GetHostProjectRegistrationRequest) Reset
func (x *GetHostProjectRegistrationRequest) Reset()func (*GetHostProjectRegistrationRequest) String
func (x *GetHostProjectRegistrationRequest) String() stringGetPluginInstanceRequest
type GetPluginInstanceRequest struct {
// Required. The name of the plugin instance to retrieve.
// Format:
// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetPluginInstance][google.cloud.apihub.v1.ApiHubPlugin.GetPluginInstance] method's request.
func (*GetPluginInstanceRequest) Descriptor
func (*GetPluginInstanceRequest) Descriptor() ([]byte, []int)Deprecated: Use GetPluginInstanceRequest.ProtoReflect.Descriptor instead.
func (*GetPluginInstanceRequest) GetName
func (x *GetPluginInstanceRequest) GetName() stringfunc (*GetPluginInstanceRequest) ProtoMessage
func (*GetPluginInstanceRequest) ProtoMessage()func (*GetPluginInstanceRequest) ProtoReflect
func (x *GetPluginInstanceRequest) ProtoReflect() protoreflect.Messagefunc (*GetPluginInstanceRequest) Reset
func (x *GetPluginInstanceRequest) Reset()func (*GetPluginInstanceRequest) String
func (x *GetPluginInstanceRequest) String() stringGetPluginRequest
type GetPluginRequest struct {
// Required. The name of the plugin to retrieve.
// Format: `projects/{project}/locations/{location}/plugins/{plugin}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetPlugin][google.cloud.apihub.v1.ApiHubPlugin.GetPlugin] method's request.
func (*GetPluginRequest) Descriptor
func (*GetPluginRequest) Descriptor() ([]byte, []int)Deprecated: Use GetPluginRequest.ProtoReflect.Descriptor instead.
func (*GetPluginRequest) GetName
func (x *GetPluginRequest) GetName() stringfunc (*GetPluginRequest) ProtoMessage
func (*GetPluginRequest) ProtoMessage()func (*GetPluginRequest) ProtoReflect
func (x *GetPluginRequest) ProtoReflect() protoreflect.Messagefunc (*GetPluginRequest) Reset
func (x *GetPluginRequest) Reset()func (*GetPluginRequest) String
func (x *GetPluginRequest) String() stringGetRuntimeProjectAttachmentRequest
type GetRuntimeProjectAttachmentRequest struct {
// Required. The name of the API resource to retrieve.
// Format:
// `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetRuntimeProjectAttachment][google.cloud.apihub.v1.RuntimeProjectAttachmentService.GetRuntimeProjectAttachment] method's request.
func (*GetRuntimeProjectAttachmentRequest) Descriptor
func (*GetRuntimeProjectAttachmentRequest) Descriptor() ([]byte, []int)Deprecated: Use GetRuntimeProjectAttachmentRequest.ProtoReflect.Descriptor instead.
func (*GetRuntimeProjectAttachmentRequest) GetName
func (x *GetRuntimeProjectAttachmentRequest) GetName() stringfunc (*GetRuntimeProjectAttachmentRequest) ProtoMessage
func (*GetRuntimeProjectAttachmentRequest) ProtoMessage()func (*GetRuntimeProjectAttachmentRequest) ProtoReflect
func (x *GetRuntimeProjectAttachmentRequest) ProtoReflect() protoreflect.Messagefunc (*GetRuntimeProjectAttachmentRequest) Reset
func (x *GetRuntimeProjectAttachmentRequest) Reset()func (*GetRuntimeProjectAttachmentRequest) String
func (x *GetRuntimeProjectAttachmentRequest) String() stringGetSpecContentsRequest
type GetSpecContentsRequest struct {
// Required. The name of the spec whose contents need to be retrieved.
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetSpecContents][google.cloud.apihub.v1.ApiHub.GetSpecContents] method's request.
func (*GetSpecContentsRequest) Descriptor
func (*GetSpecContentsRequest) Descriptor() ([]byte, []int)Deprecated: Use GetSpecContentsRequest.ProtoReflect.Descriptor instead.
func (*GetSpecContentsRequest) GetName
func (x *GetSpecContentsRequest) GetName() stringfunc (*GetSpecContentsRequest) ProtoMessage
func (*GetSpecContentsRequest) ProtoMessage()func (*GetSpecContentsRequest) ProtoReflect
func (x *GetSpecContentsRequest) ProtoReflect() protoreflect.Messagefunc (*GetSpecContentsRequest) Reset
func (x *GetSpecContentsRequest) Reset()func (*GetSpecContentsRequest) String
func (x *GetSpecContentsRequest) String() stringGetSpecRequest
type GetSpecRequest struct {
// Required. The name of the spec to retrieve.
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetSpec][google.cloud.apihub.v1.ApiHub.GetSpec] method's request.
func (*GetSpecRequest) Descriptor
func (*GetSpecRequest) Descriptor() ([]byte, []int)Deprecated: Use GetSpecRequest.ProtoReflect.Descriptor instead.
func (*GetSpecRequest) GetName
func (x *GetSpecRequest) GetName() stringfunc (*GetSpecRequest) ProtoMessage
func (*GetSpecRequest) ProtoMessage()func (*GetSpecRequest) ProtoReflect
func (x *GetSpecRequest) ProtoReflect() protoreflect.Messagefunc (*GetSpecRequest) Reset
func (x *GetSpecRequest) Reset()func (*GetSpecRequest) String
func (x *GetSpecRequest) String() stringGetStyleGuideContentsRequest
type GetStyleGuideContentsRequest struct {
// Required. The name of the StyleGuide whose contents need to be retrieved.
// There is exactly one style guide resource per project per location.
// The expected format is
// `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetStyleGuideContents][google.cloud.apihub.v1.LintingService.GetStyleGuideContents] method's request.
func (*GetStyleGuideContentsRequest) Descriptor
func (*GetStyleGuideContentsRequest) Descriptor() ([]byte, []int)Deprecated: Use GetStyleGuideContentsRequest.ProtoReflect.Descriptor instead.
func (*GetStyleGuideContentsRequest) GetName
func (x *GetStyleGuideContentsRequest) GetName() stringfunc (*GetStyleGuideContentsRequest) ProtoMessage
func (*GetStyleGuideContentsRequest) ProtoMessage()func (*GetStyleGuideContentsRequest) ProtoReflect
func (x *GetStyleGuideContentsRequest) ProtoReflect() protoreflect.Messagefunc (*GetStyleGuideContentsRequest) Reset
func (x *GetStyleGuideContentsRequest) Reset()func (*GetStyleGuideContentsRequest) String
func (x *GetStyleGuideContentsRequest) String() stringGetStyleGuideRequest
type GetStyleGuideRequest struct {
// Required. The name of the spec to retrieve.
// Format:
// `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetStyleGuide][google.cloud.apihub.v1.LintingService.GetStyleGuide] method's request.
func (*GetStyleGuideRequest) Descriptor
func (*GetStyleGuideRequest) Descriptor() ([]byte, []int)Deprecated: Use GetStyleGuideRequest.ProtoReflect.Descriptor instead.
func (*GetStyleGuideRequest) GetName
func (x *GetStyleGuideRequest) GetName() stringfunc (*GetStyleGuideRequest) ProtoMessage
func (*GetStyleGuideRequest) ProtoMessage()func (*GetStyleGuideRequest) ProtoReflect
func (x *GetStyleGuideRequest) ProtoReflect() protoreflect.Messagefunc (*GetStyleGuideRequest) Reset
func (x *GetStyleGuideRequest) Reset()func (*GetStyleGuideRequest) String
func (x *GetStyleGuideRequest) String() stringGetVersionRequest
type GetVersionRequest struct {
// Required. The name of the API version to retrieve.
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [GetVersion][google.cloud.apihub.v1.ApiHub.GetVersion] method's request.
func (*GetVersionRequest) Descriptor
func (*GetVersionRequest) Descriptor() ([]byte, []int)Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead.
func (*GetVersionRequest) GetName
func (x *GetVersionRequest) GetName() stringfunc (*GetVersionRequest) ProtoMessage
func (*GetVersionRequest) ProtoMessage()func (*GetVersionRequest) ProtoReflect
func (x *GetVersionRequest) ProtoReflect() protoreflect.Messagefunc (*GetVersionRequest) Reset
func (x *GetVersionRequest) Reset()func (*GetVersionRequest) String
func (x *GetVersionRequest) String() stringGoogleServiceAccountConfig
type GoogleServiceAccountConfig struct {
// Required. The service account to be used for authenticating request.
//
// The `iam.serviceAccounts.getAccessToken` permission should be granted on
// this service account to the impersonator service account.
ServiceAccount string `protobuf:"bytes,1,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
// contains filtered or unexported fields
}Config for Google service account authentication.
func (*GoogleServiceAccountConfig) Descriptor
func (*GoogleServiceAccountConfig) Descriptor() ([]byte, []int)Deprecated: Use GoogleServiceAccountConfig.ProtoReflect.Descriptor instead.
func (*GoogleServiceAccountConfig) GetServiceAccount
func (x *GoogleServiceAccountConfig) GetServiceAccount() stringfunc (*GoogleServiceAccountConfig) ProtoMessage
func (*GoogleServiceAccountConfig) ProtoMessage()func (*GoogleServiceAccountConfig) ProtoReflect
func (x *GoogleServiceAccountConfig) ProtoReflect() protoreflect.Messagefunc (*GoogleServiceAccountConfig) Reset
func (x *GoogleServiceAccountConfig) Reset()func (*GoogleServiceAccountConfig) String
func (x *GoogleServiceAccountConfig) String() stringHostProjectRegistration
type HostProjectRegistration struct {
// Identifier. The name of the host project registration.
// Format:
// "projects/{project}/locations/{location}/hostProjectRegistrations/{host_project_registration}".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Immutable. Google cloud project name in the format:
// "projects/abc" or "projects/123". As input, project name with either
// project id or number are accepted. As output, this field will contain
// project number.
GcpProject string `protobuf:"bytes,2,opt,name=gcp_project,json=gcpProject,proto3" json:"gcp_project,omitempty"`
// Output only. The time at which the host project registration was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// contains filtered or unexported fields
}Host project registration refers to the registration of a Google cloud project with Api Hub as a host project. This is the project where Api Hub is provisioned. It acts as the consumer project for the Api Hub instance provisioned. Multiple runtime projects can be attached to the host project and these attachments define the scope of Api Hub.
func (*HostProjectRegistration) Descriptor
func (*HostProjectRegistration) Descriptor() ([]byte, []int)Deprecated: Use HostProjectRegistration.ProtoReflect.Descriptor instead.
func (*HostProjectRegistration) GetCreateTime
func (x *HostProjectRegistration) GetCreateTime() *timestamppb.Timestampfunc (*HostProjectRegistration) GetGcpProject
func (x *HostProjectRegistration) GetGcpProject() stringfunc (*HostProjectRegistration) GetName
func (x *HostProjectRegistration) GetName() stringfunc (*HostProjectRegistration) ProtoMessage
func (*HostProjectRegistration) ProtoMessage()func (*HostProjectRegistration) ProtoReflect
func (x *HostProjectRegistration) ProtoReflect() protoreflect.Messagefunc (*HostProjectRegistration) Reset
func (x *HostProjectRegistration) Reset()func (*HostProjectRegistration) String
func (x *HostProjectRegistration) String() stringHostProjectRegistrationServiceClient
type HostProjectRegistrationServiceClient interface {
// Create a host project registration.
// A Google cloud project can be registered as a host project if it is not
// attached as a runtime project to another host project.
// A project can be registered as a host project only once. Subsequent
// register calls for the same project will fail.
CreateHostProjectRegistration(ctx context.Context, in *CreateHostProjectRegistrationRequest, opts ...grpc.CallOption) (*HostProjectRegistration, error)
// Get a host project registration.
GetHostProjectRegistration(ctx context.Context, in *GetHostProjectRegistrationRequest, opts ...grpc.CallOption) (*HostProjectRegistration, error)
// Lists host project registrations.
ListHostProjectRegistrations(ctx context.Context, in *ListHostProjectRegistrationsRequest, opts ...grpc.CallOption) (*ListHostProjectRegistrationsResponse, error)
}HostProjectRegistrationServiceClient is the client API for HostProjectRegistrationService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewHostProjectRegistrationServiceClient
func NewHostProjectRegistrationServiceClient(cc grpc.ClientConnInterface) HostProjectRegistrationServiceClientHostProjectRegistrationServiceServer
type HostProjectRegistrationServiceServer interface {
// Create a host project registration.
// A Google cloud project can be registered as a host project if it is not
// attached as a runtime project to another host project.
// A project can be registered as a host project only once. Subsequent
// register calls for the same project will fail.
CreateHostProjectRegistration(context.Context, *CreateHostProjectRegistrationRequest) (*HostProjectRegistration, error)
// Get a host project registration.
GetHostProjectRegistration(context.Context, *GetHostProjectRegistrationRequest) (*HostProjectRegistration, error)
// Lists host project registrations.
ListHostProjectRegistrations(context.Context, *ListHostProjectRegistrationsRequest) (*ListHostProjectRegistrationsResponse, error)
}HostProjectRegistrationServiceServer is the server API for HostProjectRegistrationService service. All implementations should embed UnimplementedHostProjectRegistrationServiceServer for forward compatibility
HttpOperation
type HttpOperation struct {
// Optional. The path details for the Operation.
// Note: Even though this field is optional, it is required for
// [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
// API and we will fail the request if not provided.
Path *Path `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// Optional. Operation method
// Note: Even though this field is optional, it is required for
// [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
// API and we will fail the request if not provided.
Method HttpOperation_Method `protobuf:"varint,2,opt,name=method,proto3,enum=google.cloud.apihub.v1.HttpOperation_Method" json:"method,omitempty"`
// contains filtered or unexported fields
}The HTTP Operation.
func (*HttpOperation) Descriptor
func (*HttpOperation) Descriptor() ([]byte, []int)Deprecated: Use HttpOperation.ProtoReflect.Descriptor instead.
func (*HttpOperation) GetMethod
func (x *HttpOperation) GetMethod() HttpOperation_Methodfunc (*HttpOperation) GetPath
func (x *HttpOperation) GetPath() *Pathfunc (*HttpOperation) ProtoMessage
func (*HttpOperation) ProtoMessage()func (*HttpOperation) ProtoReflect
func (x *HttpOperation) ProtoReflect() protoreflect.Messagefunc (*HttpOperation) Reset
func (x *HttpOperation) Reset()func (*HttpOperation) String
func (x *HttpOperation) String() stringHttpOperationDetails
type HttpOperationDetails struct {
// Required. An HTTP Operation.
HttpOperation *HttpOperation `protobuf:"bytes,1,opt,name=http_operation,json=httpOperation,proto3" json:"http_operation,omitempty"`
// Optional. Path params of HttpOperation
PathParams []*HttpOperationDetails_PathParam `protobuf:"bytes,2,rep,name=path_params,json=pathParams,proto3" json:"path_params,omitempty"`
// Optional. Query params of HttpOperation
QueryParams map[string]*HttpOperationDetails_QueryParam `protobuf:"bytes,3,rep,name=query_params,json=queryParams,proto3" json:"query_params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. Request metadata.
Request *HttpOperationDetails_HttpRequest `protobuf:"bytes,4,opt,name=request,proto3" json:"request,omitempty"`
// Optional. Response metadata.
Response *HttpOperationDetails_HttpResponse `protobuf:"bytes,5,opt,name=response,proto3" json:"response,omitempty"`
// contains filtered or unexported fields
}An HTTP-based API Operation, sometimes called a "REST" Operation.
func (*HttpOperationDetails) Descriptor
func (*HttpOperationDetails) Descriptor() ([]byte, []int)Deprecated: Use HttpOperationDetails.ProtoReflect.Descriptor instead.
func (*HttpOperationDetails) GetHttpOperation
func (x *HttpOperationDetails) GetHttpOperation() *HttpOperationfunc (*HttpOperationDetails) GetPathParams
func (x *HttpOperationDetails) GetPathParams() []*HttpOperationDetails_PathParamfunc (*HttpOperationDetails) GetQueryParams
func (x *HttpOperationDetails) GetQueryParams() map[string]*HttpOperationDetails_QueryParamfunc (*HttpOperationDetails) GetRequest
func (x *HttpOperationDetails) GetRequest() *HttpOperationDetails_HttpRequestfunc (*HttpOperationDetails) GetResponse
func (x *HttpOperationDetails) GetResponse() *HttpOperationDetails_HttpResponsefunc (*HttpOperationDetails) ProtoMessage
func (*HttpOperationDetails) ProtoMessage()func (*HttpOperationDetails) ProtoReflect
func (x *HttpOperationDetails) ProtoReflect() protoreflect.Messagefunc (*HttpOperationDetails) Reset
func (x *HttpOperationDetails) Reset()func (*HttpOperationDetails) String
func (x *HttpOperationDetails) String() stringHttpOperationDetails_DataType
type HttpOperationDetails_DataType int32Type of data
HttpOperationDetails_DATA_TYPE_UNSPECIFIED, HttpOperationDetails_BOOL, HttpOperationDetails_INTEGER, HttpOperationDetails_FLOAT, HttpOperationDetails_STRING, HttpOperationDetails_UUID
const (
// Unspecified data type
HttpOperationDetails_DATA_TYPE_UNSPECIFIED HttpOperationDetails_DataType = 0
// Boolean data type
HttpOperationDetails_BOOL HttpOperationDetails_DataType = 1
// Integer data type
HttpOperationDetails_INTEGER HttpOperationDetails_DataType = 2
// Float data type
HttpOperationDetails_FLOAT HttpOperationDetails_DataType = 3
// String data type
HttpOperationDetails_STRING HttpOperationDetails_DataType = 4
// UUID data type
HttpOperationDetails_UUID HttpOperationDetails_DataType = 5
)func (HttpOperationDetails_DataType) Descriptor
func (HttpOperationDetails_DataType) Descriptor() protoreflect.EnumDescriptorfunc (HttpOperationDetails_DataType) Enum
func (x HttpOperationDetails_DataType) Enum() *HttpOperationDetails_DataTypefunc (HttpOperationDetails_DataType) EnumDescriptor
func (HttpOperationDetails_DataType) EnumDescriptor() ([]byte, []int)Deprecated: Use HttpOperationDetails_DataType.Descriptor instead.
func (HttpOperationDetails_DataType) Number
func (x HttpOperationDetails_DataType) Number() protoreflect.EnumNumberfunc (HttpOperationDetails_DataType) String
func (x HttpOperationDetails_DataType) String() stringfunc (HttpOperationDetails_DataType) Type
func (HttpOperationDetails_DataType) Type() protoreflect.EnumTypeHttpOperationDetails_Header
type HttpOperationDetails_Header struct {
// Header name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The number of occurrences of this Header across transactions.
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// Data type of header
DataType HttpOperationDetails_DataType `protobuf:"varint,3,opt,name=data_type,json=dataType,proto3,enum=google.cloud.apihub.v1.HttpOperationDetails_DataType" json:"data_type,omitempty"`
// contains filtered or unexported fields
}An aggregation of HTTP header occurrences.
func (*HttpOperationDetails_Header) Descriptor
func (*HttpOperationDetails_Header) Descriptor() ([]byte, []int)Deprecated: Use HttpOperationDetails_Header.ProtoReflect.Descriptor instead.
func (*HttpOperationDetails_Header) GetCount
func (x *HttpOperationDetails_Header) GetCount() int64func (*HttpOperationDetails_Header) GetDataType
func (x *HttpOperationDetails_Header) GetDataType() HttpOperationDetails_DataTypefunc (*HttpOperationDetails_Header) GetName
func (x *HttpOperationDetails_Header) GetName() stringfunc (*HttpOperationDetails_Header) ProtoMessage
func (*HttpOperationDetails_Header) ProtoMessage()func (*HttpOperationDetails_Header) ProtoReflect
func (x *HttpOperationDetails_Header) ProtoReflect() protoreflect.Messagefunc (*HttpOperationDetails_Header) Reset
func (x *HttpOperationDetails_Header) Reset()func (*HttpOperationDetails_Header) String
func (x *HttpOperationDetails_Header) String() stringHttpOperationDetails_HttpRequest
type HttpOperationDetails_HttpRequest struct {
// Optional. Unordered map from header name to header metadata
Headers map[string]*HttpOperationDetails_Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// contains filtered or unexported fields
}An aggregation of HTTP requests.
func (*HttpOperationDetails_HttpRequest) Descriptor
func (*HttpOperationDetails_HttpRequest) Descriptor() ([]byte, []int)Deprecated: Use HttpOperationDetails_HttpRequest.ProtoReflect.Descriptor instead.
func (*HttpOperationDetails_HttpRequest) GetHeaders
func (x *HttpOperationDetails_HttpRequest) GetHeaders() map[string]*HttpOperationDetails_Headerfunc (*HttpOperationDetails_HttpRequest) ProtoMessage
func (*HttpOperationDetails_HttpRequest) ProtoMessage()func (*HttpOperationDetails_HttpRequest) ProtoReflect
func (x *HttpOperationDetails_HttpRequest) ProtoReflect() protoreflect.Messagefunc (*HttpOperationDetails_HttpRequest) Reset
func (x *HttpOperationDetails_HttpRequest) Reset()func (*HttpOperationDetails_HttpRequest) String
func (x *HttpOperationDetails_HttpRequest) String() stringHttpOperationDetails_HttpResponse
type HttpOperationDetails_HttpResponse struct {
// Optional. Unordered map from header name to header metadata
Headers map[string]*HttpOperationDetails_Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. Map of status code to observed count
ResponseCodes map[int32]int64 `protobuf:"bytes,2,rep,name=response_codes,json=responseCodes,proto3" json:"response_codes,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
// contains filtered or unexported fields
}An aggregation of HTTP responses.
func (*HttpOperationDetails_HttpResponse) Descriptor
func (*HttpOperationDetails_HttpResponse) Descriptor() ([]byte, []int)Deprecated: Use HttpOperationDetails_HttpResponse.ProtoReflect.Descriptor instead.
func (*HttpOperationDetails_HttpResponse) GetHeaders
func (x *HttpOperationDetails_HttpResponse) GetHeaders() map[string]*HttpOperationDetails_Headerfunc (*HttpOperationDetails_HttpResponse) GetResponseCodes
func (x *HttpOperationDetails_HttpResponse) GetResponseCodes() map[int32]int64func (*HttpOperationDetails_HttpResponse) ProtoMessage
func (*HttpOperationDetails_HttpResponse) ProtoMessage()func (*HttpOperationDetails_HttpResponse) ProtoReflect
func (x *HttpOperationDetails_HttpResponse) ProtoReflect() protoreflect.Messagefunc (*HttpOperationDetails_HttpResponse) Reset
func (x *HttpOperationDetails_HttpResponse) Reset()func (*HttpOperationDetails_HttpResponse) String
func (x *HttpOperationDetails_HttpResponse) String() stringHttpOperationDetails_PathParam
type HttpOperationDetails_PathParam struct {
// Optional. Segment location in the path, 1-indexed
Position int32 `protobuf:"varint,1,opt,name=position,proto3" json:"position,omitempty"`
// Optional. Data type of path param
DataType HttpOperationDetails_DataType `protobuf:"varint,2,opt,name=data_type,json=dataType,proto3,enum=google.cloud.apihub.v1.HttpOperationDetails_DataType" json:"data_type,omitempty"`
// contains filtered or unexported fields
}HTTP Path parameter.
func (*HttpOperationDetails_PathParam) Descriptor
func (*HttpOperationDetails_PathParam) Descriptor() ([]byte, []int)Deprecated: Use HttpOperationDetails_PathParam.ProtoReflect.Descriptor instead.
func (*HttpOperationDetails_PathParam) GetDataType
func (x *HttpOperationDetails_PathParam) GetDataType() HttpOperationDetails_DataTypefunc (*HttpOperationDetails_PathParam) GetPosition
func (x *HttpOperationDetails_PathParam) GetPosition() int32func (*HttpOperationDetails_PathParam) ProtoMessage
func (*HttpOperationDetails_PathParam) ProtoMessage()func (*HttpOperationDetails_PathParam) ProtoReflect
func (x *HttpOperationDetails_PathParam) ProtoReflect() protoreflect.Messagefunc (*HttpOperationDetails_PathParam) Reset
func (x *HttpOperationDetails_PathParam) Reset()func (*HttpOperationDetails_PathParam) String
func (x *HttpOperationDetails_PathParam) String() stringHttpOperationDetails_QueryParam
type HttpOperationDetails_QueryParam struct {
// Required. Name of query param
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The number of occurrences of this query parameter across
// transactions.
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// Optional. Data type of path param
DataType HttpOperationDetails_DataType `protobuf:"varint,3,opt,name=data_type,json=dataType,proto3,enum=google.cloud.apihub.v1.HttpOperationDetails_DataType" json:"data_type,omitempty"`
// contains filtered or unexported fields
}An aggregation of HTTP query parameter occurrences.
func (*HttpOperationDetails_QueryParam) Descriptor
func (*HttpOperationDetails_QueryParam) Descriptor() ([]byte, []int)Deprecated: Use HttpOperationDetails_QueryParam.ProtoReflect.Descriptor instead.
func (*HttpOperationDetails_QueryParam) GetCount
func (x *HttpOperationDetails_QueryParam) GetCount() int64func (*HttpOperationDetails_QueryParam) GetDataType
func (x *HttpOperationDetails_QueryParam) GetDataType() HttpOperationDetails_DataTypefunc (*HttpOperationDetails_QueryParam) GetName
func (x *HttpOperationDetails_QueryParam) GetName() stringfunc (*HttpOperationDetails_QueryParam) ProtoMessage
func (*HttpOperationDetails_QueryParam) ProtoMessage()func (*HttpOperationDetails_QueryParam) ProtoReflect
func (x *HttpOperationDetails_QueryParam) ProtoReflect() protoreflect.Messagefunc (*HttpOperationDetails_QueryParam) Reset
func (x *HttpOperationDetails_QueryParam) Reset()func (*HttpOperationDetails_QueryParam) String
func (x *HttpOperationDetails_QueryParam) String() stringHttpOperation_Method
type HttpOperation_Method int32Enumeration of Method types.
HttpOperation_METHOD_UNSPECIFIED, HttpOperation_GET, HttpOperation_PUT, HttpOperation_POST, HttpOperation_DELETE, HttpOperation_OPTIONS, HttpOperation_HEAD, HttpOperation_PATCH, HttpOperation_TRACE
const (
// Method unspecified.
HttpOperation_METHOD_UNSPECIFIED HttpOperation_Method = 0
// Get Operation type.
HttpOperation_GET HttpOperation_Method = 1
// Put Operation type.
HttpOperation_PUT HttpOperation_Method = 2
// Post Operation type.
HttpOperation_POST HttpOperation_Method = 3
// Delete Operation type.
HttpOperation_DELETE HttpOperation_Method = 4
// Options Operation type.
HttpOperation_OPTIONS HttpOperation_Method = 5
// Head Operation type.
HttpOperation_HEAD HttpOperation_Method = 6
// Patch Operation type.
HttpOperation_PATCH HttpOperation_Method = 7
// Trace Operation type.
HttpOperation_TRACE HttpOperation_Method = 8
)func (HttpOperation_Method) Descriptor
func (HttpOperation_Method) Descriptor() protoreflect.EnumDescriptorfunc (HttpOperation_Method) Enum
func (x HttpOperation_Method) Enum() *HttpOperation_Methodfunc (HttpOperation_Method) EnumDescriptor
func (HttpOperation_Method) EnumDescriptor() ([]byte, []int)Deprecated: Use HttpOperation_Method.Descriptor instead.
func (HttpOperation_Method) Number
func (x HttpOperation_Method) Number() protoreflect.EnumNumberfunc (HttpOperation_Method) String
func (x HttpOperation_Method) String() stringfunc (HttpOperation_Method) Type
func (HttpOperation_Method) Type() protoreflect.EnumTypeIssue
type Issue struct {
// Required. Rule code unique to each rule defined in linter.
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// Required. An array of strings indicating the location in the analyzed
// document where the rule was triggered.
Path []string `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"`
// Required. Human-readable message describing the issue found by the linter.
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
// Required. Severity level of the rule violation.
Severity Severity `protobuf:"varint,4,opt,name=severity,proto3,enum=google.cloud.apihub.v1.Severity" json:"severity,omitempty"`
// Required. Object describing where in the file the issue was found.
Range *Range `protobuf:"bytes,5,opt,name=range,proto3" json:"range,omitempty"`
// contains filtered or unexported fields
}Issue contains the details of a single issue found by the linter.
func (*Issue) Descriptor
Deprecated: Use Issue.ProtoReflect.Descriptor instead.
func (*Issue) GetCode
func (*Issue) GetMessage
func (*Issue) GetPath
func (*Issue) GetRange
func (*Issue) GetSeverity
func (*Issue) ProtoMessage
func (*Issue) ProtoMessage()func (*Issue) ProtoReflect
func (x *Issue) ProtoReflect() protoreflect.Messagefunc (*Issue) Reset
func (x *Issue) Reset()func (*Issue) String
LintResponse
type LintResponse struct {
// Optional. Array of issues found in the analyzed document.
Issues []*Issue `protobuf:"bytes,1,rep,name=issues,proto3" json:"issues,omitempty"`
// Optional. Summary of all issue types and counts for each severity level.
Summary []*LintResponse_SummaryEntry `protobuf:"bytes,2,rep,name=summary,proto3" json:"summary,omitempty"`
// Required. Lint state represents success or failure for linting.
State LintState `protobuf:"varint,3,opt,name=state,proto3,enum=google.cloud.apihub.v1.LintState" json:"state,omitempty"`
// Required. Name of the linting application.
Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
// Required. Name of the linter used.
Linter Linter `protobuf:"varint,5,opt,name=linter,proto3,enum=google.cloud.apihub.v1.Linter" json:"linter,omitempty"`
// Required. Timestamp when the linting response was generated.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// contains filtered or unexported fields
}LintResponse contains the response from the linter.
func (*LintResponse) Descriptor
func (*LintResponse) Descriptor() ([]byte, []int)Deprecated: Use LintResponse.ProtoReflect.Descriptor instead.
func (*LintResponse) GetCreateTime
func (x *LintResponse) GetCreateTime() *timestamppb.Timestampfunc (*LintResponse) GetIssues
func (x *LintResponse) GetIssues() []*Issuefunc (*LintResponse) GetLinter
func (x *LintResponse) GetLinter() Linterfunc (*LintResponse) GetSource
func (x *LintResponse) GetSource() stringfunc (*LintResponse) GetState
func (x *LintResponse) GetState() LintStatefunc (*LintResponse) GetSummary
func (x *LintResponse) GetSummary() []*LintResponse_SummaryEntryfunc (*LintResponse) ProtoMessage
func (*LintResponse) ProtoMessage()func (*LintResponse) ProtoReflect
func (x *LintResponse) ProtoReflect() protoreflect.Messagefunc (*LintResponse) Reset
func (x *LintResponse) Reset()func (*LintResponse) String
func (x *LintResponse) String() stringLintResponse_SummaryEntry
type LintResponse_SummaryEntry struct {
// Required. Severity of the issue.
Severity Severity `protobuf:"varint,1,opt,name=severity,proto3,enum=google.cloud.apihub.v1.Severity" json:"severity,omitempty"`
// Required. Count of issues with the given severity.
Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}Count of issues with a given severity.
func (*LintResponse_SummaryEntry) Descriptor
func (*LintResponse_SummaryEntry) Descriptor() ([]byte, []int)Deprecated: Use LintResponse_SummaryEntry.ProtoReflect.Descriptor instead.
func (*LintResponse_SummaryEntry) GetCount
func (x *LintResponse_SummaryEntry) GetCount() int32func (*LintResponse_SummaryEntry) GetSeverity
func (x *LintResponse_SummaryEntry) GetSeverity() Severityfunc (*LintResponse_SummaryEntry) ProtoMessage
func (*LintResponse_SummaryEntry) ProtoMessage()func (*LintResponse_SummaryEntry) ProtoReflect
func (x *LintResponse_SummaryEntry) ProtoReflect() protoreflect.Messagefunc (*LintResponse_SummaryEntry) Reset
func (x *LintResponse_SummaryEntry) Reset()func (*LintResponse_SummaryEntry) String
func (x *LintResponse_SummaryEntry) String() stringLintSpecRequest
type LintSpecRequest struct {
// Required. The name of the spec to be linted.
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [LintSpec][google.cloud.apihub.v1.LintingService.LintSpec] method's request.
func (*LintSpecRequest) Descriptor
func (*LintSpecRequest) Descriptor() ([]byte, []int)Deprecated: Use LintSpecRequest.ProtoReflect.Descriptor instead.
func (*LintSpecRequest) GetName
func (x *LintSpecRequest) GetName() stringfunc (*LintSpecRequest) ProtoMessage
func (*LintSpecRequest) ProtoMessage()func (*LintSpecRequest) ProtoReflect
func (x *LintSpecRequest) ProtoReflect() protoreflect.Messagefunc (*LintSpecRequest) Reset
func (x *LintSpecRequest) Reset()func (*LintSpecRequest) String
func (x *LintSpecRequest) String() stringLintState
type LintState int32Lint state represents success or failure for linting.
LintState_LINT_STATE_UNSPECIFIED, LintState_LINT_STATE_SUCCESS, LintState_LINT_STATE_ERROR
const (
// Lint state unspecified.
LintState_LINT_STATE_UNSPECIFIED LintState = 0
// Linting was completed successfully.
LintState_LINT_STATE_SUCCESS LintState = 1
// Linting encountered errors.
LintState_LINT_STATE_ERROR LintState = 2
)func (LintState) Descriptor
func (LintState) Descriptor() protoreflect.EnumDescriptorfunc (LintState) Enum
func (LintState) EnumDescriptor
Deprecated: Use LintState.Descriptor instead.
func (LintState) Number
func (x LintState) Number() protoreflect.EnumNumberfunc (LintState) String
func (LintState) Type
func (LintState) Type() protoreflect.EnumTypeLinter
type Linter int32Enumeration of linter types.
Linter_LINTER_UNSPECIFIED, Linter_SPECTRAL, Linter_OTHER
const (
// Linter type unspecified.
Linter_LINTER_UNSPECIFIED Linter = 0
// Linter type spectral.
Linter_SPECTRAL Linter = 1
// Linter type other.
Linter_OTHER Linter = 2
)func (Linter) Descriptor
func (Linter) Descriptor() protoreflect.EnumDescriptorfunc (Linter) Enum
func (Linter) EnumDescriptor
Deprecated: Use Linter.Descriptor instead.
func (Linter) Number
func (x Linter) Number() protoreflect.EnumNumberfunc (Linter) String
func (Linter) Type
func (Linter) Type() protoreflect.EnumTypeLintingServiceClient
type LintingServiceClient interface {
// Get the style guide being used for linting.
GetStyleGuide(ctx context.Context, in *GetStyleGuideRequest, opts ...grpc.CallOption) (*StyleGuide, error)
// Update the styleGuide to be used for liniting in by API hub.
UpdateStyleGuide(ctx context.Context, in *UpdateStyleGuideRequest, opts ...grpc.CallOption) (*StyleGuide, error)
// Get the contents of the style guide.
GetStyleGuideContents(ctx context.Context, in *GetStyleGuideContentsRequest, opts ...grpc.CallOption) (*StyleGuideContents, error)
// Lints the requested spec and updates the corresponding API Spec with the
// lint response. This lint response will be available in all subsequent
// Get and List Spec calls to Core service.
LintSpec(ctx context.Context, in *LintSpecRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}LintingServiceClient is the client API for LintingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewLintingServiceClient
func NewLintingServiceClient(cc grpc.ClientConnInterface) LintingServiceClientLintingServiceServer
type LintingServiceServer interface {
// Get the style guide being used for linting.
GetStyleGuide(context.Context, *GetStyleGuideRequest) (*StyleGuide, error)
// Update the styleGuide to be used for liniting in by API hub.
UpdateStyleGuide(context.Context, *UpdateStyleGuideRequest) (*StyleGuide, error)
// Get the contents of the style guide.
GetStyleGuideContents(context.Context, *GetStyleGuideContentsRequest) (*StyleGuideContents, error)
// Lints the requested spec and updates the corresponding API Spec with the
// lint response. This lint response will be available in all subsequent
// Get and List Spec calls to Core service.
LintSpec(context.Context, *LintSpecRequest) (*emptypb.Empty, error)
}LintingServiceServer is the server API for LintingService service. All implementations should embed UnimplementedLintingServiceServer for forward compatibility
ListApiOperationsRequest
type ListApiOperationsRequest struct {
// Required. The parent which owns this collection of operations i.e., the API
// version. Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// 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_.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// 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.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// 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.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The [ListApiOperations][google.cloud.apihub.v1.ApiHub.ListApiOperations] method's request.
func (*ListApiOperationsRequest) Descriptor
func (*ListApiOperationsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListApiOperationsRequest.ProtoReflect.Descriptor instead.
func (*ListApiOperationsRequest) GetFilter
func (x *ListApiOperationsRequest) GetFilter() stringfunc (*ListApiOperationsRequest) GetPageSize
func (x *ListApiOperationsRequest) GetPageSize() int32func (*ListApiOperationsRequest) GetPageToken
func (x *ListApiOperationsRequest) GetPageToken() stringfunc (*ListApiOperationsRequest) GetParent
func (x *ListApiOperationsRequest) GetParent() stringfunc (*ListApiOperationsRequest) ProtoMessage
func (*ListApiOperationsRequest) ProtoMessage()func (*ListApiOperationsRequest) ProtoReflect
func (x *ListApiOperationsRequest) ProtoReflect() protoreflect.Messagefunc (*ListApiOperationsRequest) Reset
func (x *ListApiOperationsRequest) Reset()func (*ListApiOperationsRequest) String
func (x *ListApiOperationsRequest) String() stringListApiOperationsResponse
type ListApiOperationsResponse struct {
// The operations corresponding to an API version.
ApiOperations []*ApiOperation `protobuf:"bytes,1,rep,name=api_operations,json=apiOperations,proto3" json:"api_operations,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The [ListApiOperations][google.cloud.apihub.v1.ApiHub.ListApiOperations] method's response.
func (*ListApiOperationsResponse) Descriptor
func (*ListApiOperationsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListApiOperationsResponse.ProtoReflect.Descriptor instead.
func (*ListApiOperationsResponse) GetApiOperations
func (x *ListApiOperationsResponse) GetApiOperations() []*ApiOperationfunc (*ListApiOperationsResponse) GetNextPageToken
func (x *ListApiOperationsResponse) GetNextPageToken() stringfunc (*ListApiOperationsResponse) ProtoMessage
func (*ListApiOperationsResponse) ProtoMessage()func (*ListApiOperationsResponse) ProtoReflect
func (x *ListApiOperationsResponse) ProtoReflect() protoreflect.Messagefunc (*ListApiOperationsResponse) Reset
func (x *ListApiOperationsResponse) Reset()func (*ListApiOperationsResponse) String
func (x *ListApiOperationsResponse) String() stringListApisRequest
type ListApisRequest struct {
// Required. The parent, which owns this collection of API resources.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// 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_..
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// 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.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// 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.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The [ListApis][google.cloud.apihub.v1.ApiHub.ListApis] method's request.
func (*ListApisRequest) Descriptor
func (*ListApisRequest) Descriptor() ([]byte, []int)Deprecated: Use ListApisRequest.ProtoReflect.Descriptor instead.
func (*ListApisRequest) GetFilter
func (x *ListApisRequest) GetFilter() stringfunc (*ListApisRequest) GetPageSize
func (x *ListApisRequest) GetPageSize() int32func (*ListApisRequest) GetPageToken
func (x *ListApisRequest) GetPageToken() stringfunc (*ListApisRequest) GetParent
func (x *ListApisRequest) GetParent() stringfunc (*ListApisRequest) ProtoMessage
func (*ListApisRequest) ProtoMessage()func (*ListApisRequest) ProtoReflect
func (x *ListApisRequest) ProtoReflect() protoreflect.Messagefunc (*ListApisRequest) Reset
func (x *ListApisRequest) Reset()func (*ListApisRequest) String
func (x *ListApisRequest) String() stringListApisResponse
type ListApisResponse struct {
// The API resources present in the API hub.
Apis []*Api `protobuf:"bytes,1,rep,name=apis,proto3" json:"apis,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The [ListApis][google.cloud.apihub.v1.ApiHub.ListApis] method's response.
func (*ListApisResponse) Descriptor
func (*ListApisResponse) Descriptor() ([]byte, []int)Deprecated: Use ListApisResponse.ProtoReflect.Descriptor instead.
func (*ListApisResponse) GetApis
func (x *ListApisResponse) GetApis() []*Apifunc (*ListApisResponse) GetNextPageToken
func (x *ListApisResponse) GetNextPageToken() stringfunc (*ListApisResponse) ProtoMessage
func (*ListApisResponse) ProtoMessage()func (*ListApisResponse) ProtoReflect
func (x *ListApisResponse) ProtoReflect() protoreflect.Messagefunc (*ListApisResponse) Reset
func (x *ListApisResponse) Reset()func (*ListApisResponse) String
func (x *ListApisResponse) String() stringListAttributesRequest
type ListAttributesRequest struct {
// Required. The parent resource for Attribute.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// 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_.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// 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.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// 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.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The [ListAttributes][google.cloud.apihub.v1.ApiHub.ListAttributes] method's request.
func (*ListAttributesRequest) Descriptor
func (*ListAttributesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListAttributesRequest.ProtoReflect.Descriptor instead.
func (*ListAttributesRequest) GetFilter
func (x *ListAttributesRequest) GetFilter() stringfunc (*ListAttributesRequest) GetPageSize
func (x *ListAttributesRequest) GetPageSize() int32func (*ListAttributesRequest) GetPageToken
func (x *ListAttributesRequest) GetPageToken() stringfunc (*ListAttributesRequest) GetParent
func (x *ListAttributesRequest) GetParent() stringfunc (*ListAttributesRequest) ProtoMessage
func (*ListAttributesRequest) ProtoMessage()func (*ListAttributesRequest) ProtoReflect
func (x *ListAttributesRequest) ProtoReflect() protoreflect.Messagefunc (*ListAttributesRequest) Reset
func (x *ListAttributesRequest) Reset()func (*ListAttributesRequest) String
func (x *ListAttributesRequest) String() stringListAttributesResponse
type ListAttributesResponse struct {
// The list of all attributes.
Attributes []*Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The [ListAttributes][google.cloud.apihub.v1.ApiHub.ListAttributes] method's response.
func (*ListAttributesResponse) Descriptor
func (*ListAttributesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListAttributesResponse.ProtoReflect.Descriptor instead.
func (*ListAttributesResponse) GetAttributes
func (x *ListAttributesResponse) GetAttributes() []*Attributefunc (*ListAttributesResponse) GetNextPageToken
func (x *ListAttributesResponse) GetNextPageToken() stringfunc (*ListAttributesResponse) ProtoMessage
func (*ListAttributesResponse) ProtoMessage()func (*ListAttributesResponse) ProtoReflect
func (x *ListAttributesResponse) ProtoReflect() protoreflect.Messagefunc (*ListAttributesResponse) Reset
func (x *ListAttributesResponse) Reset()func (*ListAttributesResponse) String
func (x *ListAttributesResponse) String() stringListCurationsRequest
type ListCurationsRequest struct {
// Required. The parent, which owns this collection of curation resources.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. An expression that filters the list of curation resources.
//
// A filter expression consists of a field name, a comparison
// operator, and a value for filtering. The value must be a string. The
// comparison operator must be one of: `<`, `="">`, `:` or `=`. Filters are case
// insensitive.
//
// The following fields in the `curation resource` are eligible for filtering:
//
// - `create_time` - The time at which the curation was created.
// The value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339]
// format. Allowed comparison operators: `>` and `<`. -="" `display_name`="" -="" the="" display="" name="" of="" the="" curation.="" allowed="" comparison="" operators:="" `="`." -="" `state`="" -="" the="" state="" of="" the="" curation.="" allowed="" comparison="" operators:="" `="`." expressions="" are="" combined="" with="" either="" `and`="" logic="" operator="" or="" `or`="" logical="" operator="" but="" not="" both="" of="" them="" together="" i.e.="" only="" one="" of="" the="" `and`="" or="" `or`="" operator="" can="" be="" used="" throughout="" the="" filter="" string="" and="" both="" the="" operators="" cannot="" be="" used="" together.="" no="" other="" logical="" operators="" are="" supported.="" at="" most="" three="" filter="" fields="" are="" allowed="" in="" the="" filter="" string="" and="" if="" provided="" more="" than="" that="" then="" `invalid_argument`="" error="" is="" returned="" by="" the="" api.="" here="" are="" a="" few="" examples:="" -="" `create_time="">< \"2021-08-15t14:50:00z\"="" and="" create_time="">
// \"2021-08-10T12:00:00Z\"` -
// The curation resource was created before _2021-08-15 14:50:00 UTC_ and
// after _2021-08-10 12:00:00 UTC_.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. The maximum number of curation resources to return. The service
// may return fewer than this value. If unspecified, at most 50 curations will
// be returned. The maximum value is 1000; values above 1000 will be coerced
// to 1000.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListCurations` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters (except page_size) provided to
// `ListCurations` must match the call that provided the page token.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The [ListCurations][ApiHub.ListCurations] method's request.
func (*ListCurationsRequest) Descriptor
func (*ListCurationsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListCurationsRequest.ProtoReflect.Descriptor instead.
func (*ListCurationsRequest) GetFilter
func (x *ListCurationsRequest) GetFilter() stringfunc (*ListCurationsRequest) GetPageSize
func (x *ListCurationsRequest) GetPageSize() int32func (*ListCurationsRequest) GetPageToken
func (x *ListCurationsRequest) GetPageToken() stringfunc (*ListCurationsRequest) GetParent
func (x *ListCurationsRequest) GetParent() stringfunc (*ListCurationsRequest) ProtoMessage
func (*ListCurationsRequest) ProtoMessage()func (*ListCurationsRequest) ProtoReflect
func (x *ListCurationsRequest) ProtoReflect() protoreflect.Messagefunc (*ListCurationsRequest) Reset
func (x *ListCurationsRequest) Reset()func (*ListCurationsRequest) String
func (x *ListCurationsRequest) String() stringListCurationsResponse
type ListCurationsResponse struct {
// The curation resources present in the API hub.
Curations []*Curation `protobuf:"bytes,1,rep,name=curations,proto3" json:"curations,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The [ListCurations][ApiHub.ListCurations] method's response.
func (*ListCurationsResponse) Descriptor
func (*ListCurationsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListCurationsResponse.ProtoReflect.Descriptor instead.
func (*ListCurationsResponse) GetCurations
func (x *ListCurationsResponse) GetCurations() []*Curationfunc (*ListCurationsResponse) GetNextPageToken
func (x *ListCurationsResponse) GetNextPageToken() stringfunc (*ListCurationsResponse) ProtoMessage
func (*ListCurationsResponse) ProtoMessage()func (*ListCurationsResponse) ProtoReflect
func (x *ListCurationsResponse) ProtoReflect() protoreflect.Messagefunc (*ListCurationsResponse) Reset
func (x *ListCurationsResponse) Reset()func (*ListCurationsResponse) String
func (x *ListCurationsResponse) String() stringListDependenciesRequest
type ListDependenciesRequest struct {
// Required. The parent which owns this collection of dependency resources.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// 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_.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// 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.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// 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.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The [ListDependencies][google.cloud.apihub.v1.ApiHubDependencies.ListDependencies] method's request.
func (*ListDependenciesRequest) Descriptor
func (*ListDependenciesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListDependenciesRequest.ProtoReflect.Descriptor instead.
func (*ListDependenciesRequest) GetFilter
func (x *ListDependenciesRequest) GetFilter() stringfunc (*ListDependenciesRequest) GetPageSize
func (x *ListDependenciesRequest) GetPageSize() int32func (*ListDependenciesRequest) GetPageToken
func (x *ListDependenciesRequest) GetPageToken() stringfunc (*ListDependenciesRequest) GetParent
func (x *ListDependenciesRequest) GetParent() stringfunc (*ListDependenciesRequest) ProtoMessage
func (*ListDependenciesRequest) ProtoMessage()func (*ListDependenciesRequest) ProtoReflect
func (x *ListDependenciesRequest) ProtoReflect() protoreflect.Messagefunc (*ListDependenciesRequest) Reset
func (x *ListDependenciesRequest) Reset()func (*ListDependenciesRequest) String
func (x *ListDependenciesRequest) String() stringListDependenciesResponse
type ListDependenciesResponse struct {
// The dependency resources present in the API hub.
Dependencies []*Dependency `protobuf:"bytes,1,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The [ListDependencies][google.cloud.apihub.v1.ApiHubDependencies.ListDependencies] method's response.
func (*ListDependenciesResponse) Descriptor
func (*ListDependenciesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListDependenciesResponse.ProtoReflect.Descriptor instead.
func (*ListDependenciesResponse) GetDependencies
func (x *ListDependenciesResponse) GetDependencies() []*Dependencyfunc (*ListDependenciesResponse) GetNextPageToken
func (x *ListDependenciesResponse) GetNextPageToken() stringfunc (*ListDependenciesResponse) ProtoMessage
func (*ListDependenciesResponse) ProtoMessage()func (*ListDependenciesResponse) ProtoReflect
func (x *ListDependenciesResponse) ProtoReflect() protoreflect.Messagefunc (*ListDependenciesResponse) Reset
func (x *ListDependenciesResponse) Reset()func (*ListDependenciesResponse) String
func (x *ListDependenciesResponse) String() stringListDeploymentsRequest
type ListDeploymentsRequest struct {
// Required. The parent, which owns this collection of deployment resources.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// 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_.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// 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.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// 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.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The [ListDeployments][google.cloud.apihub.v1.ApiHub.ListDeployments] method's request.
func (*ListDeploymentsRequest) Descriptor
func (*ListDeploymentsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListDeploymentsRequest.ProtoReflect.Descriptor instead.
func (*ListDeploymentsRequest) GetFilter
func (x *ListDeploymentsRequest) GetFilter() stringfunc (*ListDeploymentsRequest) GetPageSize
func (x *ListDeploymentsRequest) GetPageSize() int32func (*ListDeploymentsRequest) GetPageToken
func (x *ListDeploymentsRequest) GetPageToken() stringfunc (*ListDeploymentsRequest) GetParent
func (x *ListDeploymentsRequest) GetParent() stringfunc (*ListDeploymentsRequest) ProtoMessage
func (*ListDeploymentsRequest) ProtoMessage()func (*ListDeploymentsRequest) ProtoReflect
func (x *ListDeploymentsRequest) ProtoReflect() protoreflect.Messagefunc (*ListDeploymentsRequest) Reset
func (x *ListDeploymentsRequest) Reset()func (*ListDeploymentsRequest) String
func (x *ListDeploymentsRequest) String() stringListDeploymentsResponse
type ListDeploymentsResponse struct {
// The deployment resources present in the API hub.
Deployments []*Deployment `protobuf:"bytes,1,rep,name=deployments,proto3" json:"deployments,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The [ListDeployments][google.cloud.apihub.v1.ApiHub.ListDeployments] method's response.
func (*ListDeploymentsResponse) Descriptor
func (*ListDeploymentsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListDeploymentsResponse.ProtoReflect.Descriptor instead.
func (*ListDeploymentsResponse) GetDeployments
func (x *ListDeploymentsResponse) GetDeployments() []*Deploymentfunc (*ListDeploymentsResponse) GetNextPageToken
func (x *ListDeploymentsResponse) GetNextPageToken() stringfunc (*ListDeploymentsResponse) ProtoMessage
func (*ListDeploymentsResponse) ProtoMessage()func (*ListDeploymentsResponse) ProtoReflect
func (x *ListDeploymentsResponse) ProtoReflect() protoreflect.Messagefunc (*ListDeploymentsResponse) Reset
func (x *ListDeploymentsResponse) Reset()func (*ListDeploymentsResponse) String
func (x *ListDeploymentsResponse) String() stringListDiscoveredApiObservationsRequest
type ListDiscoveredApiObservationsRequest struct {
// Required. The parent, which owns this collection of ApiObservations.
// Format:
// projects/{project}/locations/{location}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of ApiObservations to return. The service may
// return fewer than this value. If unspecified, at most 10
// ApiObservations will be returned. The maximum value is 1000; values
// above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListApiObservations`
// call. Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to
// `ListApiObservations` must match the call that provided the page
// token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Message for requesting list of DiscoveredApiObservations
func (*ListDiscoveredApiObservationsRequest) Descriptor
func (*ListDiscoveredApiObservationsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListDiscoveredApiObservationsRequest.ProtoReflect.Descriptor instead.
func (*ListDiscoveredApiObservationsRequest) GetPageSize
func (x *ListDiscoveredApiObservationsRequest) GetPageSize() int32func (*ListDiscoveredApiObservationsRequest) GetPageToken
func (x *ListDiscoveredApiObservationsRequest) GetPageToken() stringfunc (*ListDiscoveredApiObservationsRequest) GetParent
func (x *ListDiscoveredApiObservationsRequest) GetParent() stringfunc (*ListDiscoveredApiObservationsRequest) ProtoMessage
func (*ListDiscoveredApiObservationsRequest) ProtoMessage()func (*ListDiscoveredApiObservationsRequest) ProtoReflect
func (x *ListDiscoveredApiObservationsRequest) ProtoReflect() protoreflect.Messagefunc (*ListDiscoveredApiObservationsRequest) Reset
func (x *ListDiscoveredApiObservationsRequest) Reset()func (*ListDiscoveredApiObservationsRequest) String
func (x *ListDiscoveredApiObservationsRequest) String() stringListDiscoveredApiObservationsResponse
type ListDiscoveredApiObservationsResponse struct {
// The DiscoveredApiObservation from the specified project and location.
DiscoveredApiObservations []*DiscoveredApiObservation `protobuf:"bytes,1,rep,name=discovered_api_observations,json=discoveredApiObservations,proto3" json:"discovered_api_observations,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Message for response to listing DiscoveredApiObservations
func (*ListDiscoveredApiObservationsResponse) Descriptor
func (*ListDiscoveredApiObservationsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListDiscoveredApiObservationsResponse.ProtoReflect.Descriptor instead.
func (*ListDiscoveredApiObservationsResponse) GetDiscoveredApiObservations
func (x *ListDiscoveredApiObservationsResponse) GetDiscoveredApiObservations() []*DiscoveredApiObservationfunc (*ListDiscoveredApiObservationsResponse) GetNextPageToken
func (x *ListDiscoveredApiObservationsResponse) GetNextPageToken() stringfunc (*ListDiscoveredApiObservationsResponse) ProtoMessage
func (*ListDiscoveredApiObservationsResponse) ProtoMessage()func (*ListDiscoveredApiObservationsResponse) ProtoReflect
func (x *ListDiscoveredApiObservationsResponse) ProtoReflect() protoreflect.Messagefunc (*ListDiscoveredApiObservationsResponse) Reset
func (x *ListDiscoveredApiObservationsResponse) Reset()func (*ListDiscoveredApiObservationsResponse) String
func (x *ListDiscoveredApiObservationsResponse) String() stringListDiscoveredApiOperationsRequest
type ListDiscoveredApiOperationsRequest struct {
// Required. The parent, which owns this collection of
// DiscoveredApiOperations. Format:
// projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. DiscoveredApiOperations will be returned. The maximum value is
// 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous
// `ListDiscoveredApiApiOperations` call. Provide this to retrieve the
// subsequent page.
//
// When paginating, all other parameters provided to
// `ListDiscoveredApiApiOperations` must match the call that provided the page
// token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Message for requesting list of DiscoveredApiOperations
func (*ListDiscoveredApiOperationsRequest) Descriptor
func (*ListDiscoveredApiOperationsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListDiscoveredApiOperationsRequest.ProtoReflect.Descriptor instead.
func (*ListDiscoveredApiOperationsRequest) GetPageSize
func (x *ListDiscoveredApiOperationsRequest) GetPageSize() int32func (*ListDiscoveredApiOperationsRequest) GetPageToken
func (x *ListDiscoveredApiOperationsRequest) GetPageToken() stringfunc (*ListDiscoveredApiOperationsRequest) GetParent
func (x *ListDiscoveredApiOperationsRequest) GetParent() stringfunc (*ListDiscoveredApiOperationsRequest) ProtoMessage
func (*ListDiscoveredApiOperationsRequest) ProtoMessage()func (*ListDiscoveredApiOperationsRequest) ProtoReflect
func (x *ListDiscoveredApiOperationsRequest) ProtoReflect() protoreflect.Messagefunc (*ListDiscoveredApiOperationsRequest) Reset
func (x *ListDiscoveredApiOperationsRequest) Reset()func (*ListDiscoveredApiOperationsRequest) String
func (x *ListDiscoveredApiOperationsRequest) String() stringListDiscoveredApiOperationsResponse
type ListDiscoveredApiOperationsResponse struct {
// The DiscoveredApiOperations from the specified project, location
// and DiscoveredApiObservation.
DiscoveredApiOperations []*DiscoveredApiOperation `protobuf:"bytes,1,rep,name=discovered_api_operations,json=discoveredApiOperations,proto3" json:"discovered_api_operations,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Message for response to listing DiscoveredApiOperations
func (*ListDiscoveredApiOperationsResponse) Descriptor
func (*ListDiscoveredApiOperationsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListDiscoveredApiOperationsResponse.ProtoReflect.Descriptor instead.
func (*ListDiscoveredApiOperationsResponse) GetDiscoveredApiOperations
func (x *ListDiscoveredApiOperationsResponse) GetDiscoveredApiOperations() []*DiscoveredApiOperationfunc (*ListDiscoveredApiOperationsResponse) GetNextPageToken
func (x *ListDiscoveredApiOperationsResponse) GetNextPageToken() stringfunc (*ListDiscoveredApiOperationsResponse) ProtoMessage
func (*ListDiscoveredApiOperationsResponse) ProtoMessage()func (*ListDiscoveredApiOperationsResponse) ProtoReflect
func (x *ListDiscoveredApiOperationsResponse) ProtoReflect() protoreflect.Messagefunc (*ListDiscoveredApiOperationsResponse) Reset
func (x *ListDiscoveredApiOperationsResponse) Reset()func (*ListDiscoveredApiOperationsResponse) String
func (x *ListDiscoveredApiOperationsResponse) String() stringListExternalApisRequest
type ListExternalApisRequest struct {
// Required. The parent, which owns this collection of External API resources.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// 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.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// 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.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The [ListExternalApis][google.cloud.apihub.v1.ApiHub.ListExternalApis] method's request.
func (*ListExternalApisRequest) Descriptor
func (*ListExternalApisRequest) Descriptor() ([]byte, []int)Deprecated: Use ListExternalApisRequest.ProtoReflect.Descriptor instead.
func (*ListExternalApisRequest) GetPageSize
func (x *ListExternalApisRequest) GetPageSize() int32func (*ListExternalApisRequest) GetPageToken
func (x *ListExternalApisRequest) GetPageToken() stringfunc (*ListExternalApisRequest) GetParent
func (x *ListExternalApisRequest) GetParent() stringfunc (*ListExternalApisRequest) ProtoMessage
func (*ListExternalApisRequest) ProtoMessage()func (*ListExternalApisRequest) ProtoReflect
func (x *ListExternalApisRequest) ProtoReflect() protoreflect.Messagefunc (*ListExternalApisRequest) Reset
func (x *ListExternalApisRequest) Reset()func (*ListExternalApisRequest) String
func (x *ListExternalApisRequest) String() stringListExternalApisResponse
type ListExternalApisResponse struct {
// The External API resources present in the API hub.
ExternalApis []*ExternalApi `protobuf:"bytes,1,rep,name=external_apis,json=externalApis,proto3" json:"external_apis,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The [ListExternalApis][google.cloud.apihub.v1.ApiHub.ListExternalApis] method's response.
func (*ListExternalApisResponse) Descriptor
func (*ListExternalApisResponse) Descriptor() ([]byte, []int)Deprecated: Use ListExternalApisResponse.ProtoReflect.Descriptor instead.
func (*ListExternalApisResponse) GetExternalApis
func (x *ListExternalApisResponse) GetExternalApis() []*ExternalApifunc (*ListExternalApisResponse) GetNextPageToken
func (x *ListExternalApisResponse) GetNextPageToken() stringfunc (*ListExternalApisResponse) ProtoMessage
func (*ListExternalApisResponse) ProtoMessage()func (*ListExternalApisResponse) ProtoReflect
func (x *ListExternalApisResponse) ProtoReflect() protoreflect.Messagefunc (*ListExternalApisResponse) Reset
func (x *ListExternalApisResponse) Reset()func (*ListExternalApisResponse) String
func (x *ListExternalApisResponse) String() stringListHostProjectRegistrationsRequest
type ListHostProjectRegistrationsRequest struct {
// Required. The parent, which owns this collection of host projects.
// Format: `projects/*/locations/*`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of host project registrations to return. The
// service may return fewer than this value. If unspecified, at most 50 host
// project registrations will be returned. The maximum value is 1000; values
// above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous
// `ListHostProjectRegistrations` call. Provide this to retrieve the
// subsequent page.
//
// When paginating, all other parameters (except page_size) provided to
// `ListHostProjectRegistrations` must match the call that provided the page
// token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. An expression that filters the list of HostProjectRegistrations.
//
// A filter expression consists of a field name, a comparison
// operator, and a value for filtering. The value must be a string. All
// standard operators as documented at https://google.aip.dev/160 are
// supported.
//
// The following fields in the `HostProjectRegistration` are eligible for
// filtering:
//
// - `name` - The name of the HostProjectRegistration.
// - `create_time` - The time at which the HostProjectRegistration was
// created. The value should be in the
// (RFC3339)[https://tools.ietf.org/html/rfc3339] format.
// - `gcp_project` - The Google cloud project associated with the
// HostProjectRegistration.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Hint for how to order the results.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}The [ListHostProjectRegistrations][google.cloud.apihub.v1.HostProjectRegistrationService.ListHostProjectRegistrations] method's request.
func (*ListHostProjectRegistrationsRequest) Descriptor
func (*ListHostProjectRegistrationsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListHostProjectRegistrationsRequest.ProtoReflect.Descriptor instead.
func (*ListHostProjectRegistrationsRequest) GetFilter
func (x *ListHostProjectRegistrationsRequest) GetFilter() stringfunc (*ListHostProjectRegistrationsRequest) GetOrderBy
func (x *ListHostProjectRegistrationsRequest) GetOrderBy() stringfunc (*ListHostProjectRegistrationsRequest) GetPageSize
func (x *ListHostProjectRegistrationsRequest) GetPageSize() int32func (*ListHostProjectRegistrationsRequest) GetPageToken
func (x *ListHostProjectRegistrationsRequest) GetPageToken() stringfunc (*ListHostProjectRegistrationsRequest) GetParent
func (x *ListHostProjectRegistrationsRequest) GetParent() stringfunc (*ListHostProjectRegistrationsRequest) ProtoMessage
func (*ListHostProjectRegistrationsRequest) ProtoMessage()func (*ListHostProjectRegistrationsRequest) ProtoReflect
func (x *ListHostProjectRegistrationsRequest) ProtoReflect() protoreflect.Messagefunc (*ListHostProjectRegistrationsRequest) Reset
func (x *ListHostProjectRegistrationsRequest) Reset()func (*ListHostProjectRegistrationsRequest) String
func (x *ListHostProjectRegistrationsRequest) String() stringListHostProjectRegistrationsResponse
type ListHostProjectRegistrationsResponse struct {
// The list of host project registrations.
HostProjectRegistrations []*HostProjectRegistration `protobuf:"bytes,1,rep,name=host_project_registrations,json=hostProjectRegistrations,proto3" json:"host_project_registrations,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The [ListHostProjectRegistrations][google.cloud.apihub.v1.HostProjectRegistrationService.ListHostProjectRegistrations] method's response.
func (*ListHostProjectRegistrationsResponse) Descriptor
func (*ListHostProjectRegistrationsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListHostProjectRegistrationsResponse.ProtoReflect.Descriptor instead.
func (*ListHostProjectRegistrationsResponse) GetHostProjectRegistrations
func (x *ListHostProjectRegistrationsResponse) GetHostProjectRegistrations() []*HostProjectRegistrationfunc (*ListHostProjectRegistrationsResponse) GetNextPageToken
func (x *ListHostProjectRegistrationsResponse) GetNextPageToken() stringfunc (*ListHostProjectRegistrationsResponse) ProtoMessage
func (*ListHostProjectRegistrationsResponse) ProtoMessage()func (*ListHostProjectRegistrationsResponse) ProtoReflect
func (x *ListHostProjectRegistrationsResponse) ProtoReflect() protoreflect.Messagefunc (*ListHostProjectRegistrationsResponse) Reset
func (x *ListHostProjectRegistrationsResponse) Reset()func (*ListHostProjectRegistrationsResponse) String
func (x *ListHostProjectRegistrationsResponse) String() stringListPluginInstancesRequest
type ListPluginInstancesRequest struct {
// Required. The parent resource where this plugin will be created.
// Format: `projects/{project}/locations/{location}/plugins/{plugin}`.
// To list plugin instances for multiple plugins,
// use the - character instead of the plugin ID.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. An expression that filters the list of plugin instances.
//
// 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 `PluginInstances` are eligible for filtering:
//
// - `state` - The state of the Plugin Instance. Allowed
// comparison operators: `=`.
//
// 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) = \"plugin-instance-1\"` is
// equivalent to `name =
// \"projects/test-project-id/locations/test-location-id/plugins/plugin-1/instances/plugin-instance-1\"`
// provided the parent is
// `projects/test-project-id/locations/test-location-id/plugins/plugin-1`.
//
// 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:
//
// - `state = ENABLED` - The plugin instance is in enabled state.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. The maximum number of hub plugins to return. The service may
// return fewer than this value. If unspecified, at most 50 hub plugins will
// be returned. The maximum value is 1000; values above 1000 will be coerced
// to 1000.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListPluginInstances`
// call. Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListPluginInstances`
// must match the call that provided the page token.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The [ListPluginInstances][google.cloud.apihub.v1.ApiHubPlugin.ListPluginInstances] method's request.
func (*ListPluginInstancesRequest) Descriptor
func (*ListPluginInstancesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListPluginInstancesRequest.ProtoReflect.Descriptor instead.
func (*ListPluginInstancesRequest) GetFilter
func (x *ListPluginInstancesRequest) GetFilter() stringfunc (*ListPluginInstancesRequest) GetPageSize
func (x *ListPluginInstancesRequest) GetPageSize() int32func (*ListPluginInstancesRequest) GetPageToken
func (x *ListPluginInstancesRequest) GetPageToken() stringfunc (*ListPluginInstancesRequest) GetParent
func (x *ListPluginInstancesRequest) GetParent() stringfunc (*ListPluginInstancesRequest) ProtoMessage
func (*ListPluginInstancesRequest) ProtoMessage()func (*ListPluginInstancesRequest) ProtoReflect
func (x *ListPluginInstancesRequest) ProtoReflect() protoreflect.Messagefunc (*ListPluginInstancesRequest) Reset
func (x *ListPluginInstancesRequest) Reset()func (*ListPluginInstancesRequest) String
func (x *ListPluginInstancesRequest) String() stringListPluginInstancesResponse
type ListPluginInstancesResponse struct {
// The plugin instances from the specified parent resource.
PluginInstances []*PluginInstance `protobuf:"bytes,1,rep,name=plugin_instances,json=pluginInstances,proto3" json:"plugin_instances,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The [ListPluginInstances][google.cloud.apihub.v1.ApiHubPlugin.ListPluginInstances] method's response.
func (*ListPluginInstancesResponse) Descriptor
func (*ListPluginInstancesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListPluginInstancesResponse.ProtoReflect.Descriptor instead.
func (*ListPluginInstancesResponse) GetNextPageToken
func (x *ListPluginInstancesResponse) GetNextPageToken() stringfunc (*ListPluginInstancesResponse) GetPluginInstances
func (x *ListPluginInstancesResponse) GetPluginInstances() []*PluginInstancefunc (*ListPluginInstancesResponse) ProtoMessage
func (*ListPluginInstancesResponse) ProtoMessage()func (*ListPluginInstancesResponse) ProtoReflect
func (x *ListPluginInstancesResponse) ProtoReflect() protoreflect.Messagefunc (*ListPluginInstancesResponse) Reset
func (x *ListPluginInstancesResponse) Reset()func (*ListPluginInstancesResponse) String
func (x *ListPluginInstancesResponse) String() stringListPluginsRequest
type ListPluginsRequest struct {
// Required. The parent resource where this plugin will be created.
// Format: `projects/{project}/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. An expression that filters the list of plugins.
//
// 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 `Plugins` are eligible for filtering:
//
// - `plugin_category` - The category of the Plugin. Allowed
// comparison operators: `=`.
//
// Expressions are combined with either `AND` logic operator or `OR` logical
// operator but not both of them together i.e. only one of the `AND` or `OR`
// operator can be used throughout the filter string and both the operators
// cannot be used together. No other logical operators are
// supported. At most three filter fields are allowed in the filter
// string and if provided more than that then `INVALID_ARGUMENT` error is
// returned by the API.
// Here are a few examples:
//
// - `plugin_category = ON_RAMP` - The plugin is of category
// on ramp.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. The maximum number of hub plugins to return. The service may
// return fewer than this value. If unspecified, at most 50 hub plugins will
// be returned. The maximum value is 1000; values above 1000 will be coerced
// to 1000.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListPlugins` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters (except page_size) provided to
// `ListPlugins` must match the call that provided the page token.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The [ListPlugins][google.cloud.apihub.v1.ApiHubPlugin.ListPlugins] method's request.
func (*ListPluginsRequest) Descriptor
func (*ListPluginsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListPluginsRequest.ProtoReflect.Descriptor instead.
func (*ListPluginsRequest) GetFilter
func (x *ListPluginsRequest) GetFilter() stringfunc (*ListPluginsRequest) GetPageSize
func (x *ListPluginsRequest) GetPageSize() int32func (*ListPluginsRequest) GetPageToken
func (x *ListPluginsRequest) GetPageToken() stringfunc (*ListPluginsRequest) GetParent
func (x *ListPluginsRequest) GetParent() stringfunc (*ListPluginsRequest) ProtoMessage
func (*ListPluginsRequest) ProtoMessage()func (*ListPluginsRequest) ProtoReflect
func (x *ListPluginsRequest) ProtoReflect() protoreflect.Messagefunc (*ListPluginsRequest) Reset
func (x *ListPluginsRequest) Reset()func (*ListPluginsRequest) String
func (x *ListPluginsRequest) String() stringListPluginsResponse
type ListPluginsResponse struct {
// The plugins from the specified parent resource.
Plugins []*Plugin `protobuf:"bytes,1,rep,name=plugins,proto3" json:"plugins,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The [ListPlugins][google.cloud.apihub.v1.ApiHubPlugin.ListPlugins] method's response.
func (*ListPluginsResponse) Descriptor
func (*ListPluginsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListPluginsResponse.ProtoReflect.Descriptor instead.
func (*ListPluginsResponse) GetNextPageToken
func (x *ListPluginsResponse) GetNextPageToken() stringfunc (*ListPluginsResponse) GetPlugins
func (x *ListPluginsResponse) GetPlugins() []*Pluginfunc (*ListPluginsResponse) ProtoMessage
func (*ListPluginsResponse) ProtoMessage()func (*ListPluginsResponse) ProtoReflect
func (x *ListPluginsResponse) ProtoReflect() protoreflect.Messagefunc (*ListPluginsResponse) Reset
func (x *ListPluginsResponse) Reset()func (*ListPluginsResponse) String
func (x *ListPluginsResponse) String() stringListRuntimeProjectAttachmentsRequest
type ListRuntimeProjectAttachmentsRequest struct {
// Required. The parent, which owns this collection of runtime project
// attachments. Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of runtime project attachments to return. The
// service may return fewer than this value. If unspecified, at most 50
// runtime project attachments will be returned. The maximum value is 1000;
// values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous
// `ListRuntimeProjectAttachments` call. Provide this to retrieve the
// subsequent page.
//
// When paginating, all other parameters (except page_size) provided to
// `ListRuntimeProjectAttachments` must match the call that provided the page
// token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Optional. An expression that filters the list of RuntimeProjectAttachments.
//
// A filter expression consists of a field name, a comparison
// operator, and a value for filtering. The value must be a string. All
// standard operators as documented at https://google.aip.dev/160 are
// supported.
//
// The following fields in the `RuntimeProjectAttachment` are eligible for
// filtering:
//
// - `name` - The name of the RuntimeProjectAttachment.
// - `create_time` - The time at which the RuntimeProjectAttachment was
// created. The value should be in the
// (RFC3339)[https://tools.ietf.org/html/rfc3339] format.
// - `runtime_project` - The Google cloud project associated with the
// RuntimeProjectAttachment.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. Hint for how to order the results.
OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
// contains filtered or unexported fields
}The [ListRuntimeProjectAttachments][google.cloud.apihub.v1.RuntimeProjectAttachmentService.ListRuntimeProjectAttachments] method's request.
func (*ListRuntimeProjectAttachmentsRequest) Descriptor
func (*ListRuntimeProjectAttachmentsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListRuntimeProjectAttachmentsRequest.ProtoReflect.Descriptor instead.
func (*ListRuntimeProjectAttachmentsRequest) GetFilter
func (x *ListRuntimeProjectAttachmentsRequest) GetFilter() stringfunc (*ListRuntimeProjectAttachmentsRequest) GetOrderBy
func (x *ListRuntimeProjectAttachmentsRequest) GetOrderBy() stringfunc (*ListRuntimeProjectAttachmentsRequest) GetPageSize
func (x *ListRuntimeProjectAttachmentsRequest) GetPageSize() int32func (*ListRuntimeProjectAttachmentsRequest) GetPageToken
func (x *ListRuntimeProjectAttachmentsRequest) GetPageToken() stringfunc (*ListRuntimeProjectAttachmentsRequest) GetParent
func (x *ListRuntimeProjectAttachmentsRequest) GetParent() stringfunc (*ListRuntimeProjectAttachmentsRequest) ProtoMessage
func (*ListRuntimeProjectAttachmentsRequest) ProtoMessage()func (*ListRuntimeProjectAttachmentsRequest) ProtoReflect
func (x *ListRuntimeProjectAttachmentsRequest) ProtoReflect() protoreflect.Messagefunc (*ListRuntimeProjectAttachmentsRequest) Reset
func (x *ListRuntimeProjectAttachmentsRequest) Reset()func (*ListRuntimeProjectAttachmentsRequest) String
func (x *ListRuntimeProjectAttachmentsRequest) String() stringListRuntimeProjectAttachmentsResponse
type ListRuntimeProjectAttachmentsResponse struct {
// List of runtime project attachments.
RuntimeProjectAttachments []*RuntimeProjectAttachment `protobuf:"bytes,1,rep,name=runtime_project_attachments,json=runtimeProjectAttachments,proto3" json:"runtime_project_attachments,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The [ListRuntimeProjectAttachments][google.cloud.apihub.v1.RuntimeProjectAttachmentService.ListRuntimeProjectAttachments] method's response.
func (*ListRuntimeProjectAttachmentsResponse) Descriptor
func (*ListRuntimeProjectAttachmentsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListRuntimeProjectAttachmentsResponse.ProtoReflect.Descriptor instead.
func (*ListRuntimeProjectAttachmentsResponse) GetNextPageToken
func (x *ListRuntimeProjectAttachmentsResponse) GetNextPageToken() stringfunc (*ListRuntimeProjectAttachmentsResponse) GetRuntimeProjectAttachments
func (x *ListRuntimeProjectAttachmentsResponse) GetRuntimeProjectAttachments() []*RuntimeProjectAttachmentfunc (*ListRuntimeProjectAttachmentsResponse) ProtoMessage
func (*ListRuntimeProjectAttachmentsResponse) ProtoMessage()func (*ListRuntimeProjectAttachmentsResponse) ProtoReflect
func (x *ListRuntimeProjectAttachmentsResponse) ProtoReflect() protoreflect.Messagefunc (*ListRuntimeProjectAttachmentsResponse) Reset
func (x *ListRuntimeProjectAttachmentsResponse) Reset()func (*ListRuntimeProjectAttachmentsResponse) String
func (x *ListRuntimeProjectAttachmentsResponse) String() stringListSpecsRequest
type ListSpecsRequest struct {
// Required. The parent, which owns this collection of specs.
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// 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_.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// 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.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// 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.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The [ListSpecs][ListSpecs] method's request.
func (*ListSpecsRequest) Descriptor
func (*ListSpecsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListSpecsRequest.ProtoReflect.Descriptor instead.
func (*ListSpecsRequest) GetFilter
func (x *ListSpecsRequest) GetFilter() stringfunc (*ListSpecsRequest) GetPageSize
func (x *ListSpecsRequest) GetPageSize() int32func (*ListSpecsRequest) GetPageToken
func (x *ListSpecsRequest) GetPageToken() stringfunc (*ListSpecsRequest) GetParent
func (x *ListSpecsRequest) GetParent() stringfunc (*ListSpecsRequest) ProtoMessage
func (*ListSpecsRequest) ProtoMessage()func (*ListSpecsRequest) ProtoReflect
func (x *ListSpecsRequest) ProtoReflect() protoreflect.Messagefunc (*ListSpecsRequest) Reset
func (x *ListSpecsRequest) Reset()func (*ListSpecsRequest) String
func (x *ListSpecsRequest) String() stringListSpecsResponse
type ListSpecsResponse struct {
// The specs corresponding to an API Version.
Specs []*Spec `protobuf:"bytes,1,rep,name=specs,proto3" json:"specs,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The [ListSpecs][google.cloud.apihub.v1.ApiHub.ListSpecs] method's response.
func (*ListSpecsResponse) Descriptor
func (*ListSpecsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListSpecsResponse.ProtoReflect.Descriptor instead.
func (*ListSpecsResponse) GetNextPageToken
func (x *ListSpecsResponse) GetNextPageToken() stringfunc (*ListSpecsResponse) GetSpecs
func (x *ListSpecsResponse) GetSpecs() []*Specfunc (*ListSpecsResponse) ProtoMessage
func (*ListSpecsResponse) ProtoMessage()func (*ListSpecsResponse) ProtoReflect
func (x *ListSpecsResponse) ProtoReflect() protoreflect.Messagefunc (*ListSpecsResponse) Reset
func (x *ListSpecsResponse) Reset()func (*ListSpecsResponse) String
func (x *ListSpecsResponse) String() stringListVersionsRequest
type ListVersionsRequest struct {
// Required. The parent which owns this collection of API versions i.e., the
// API resource Format: `projects/{project}/locations/{location}/apis/{api}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// 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_.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// 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.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// 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.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The [ListVersions][google.cloud.apihub.v1.ApiHub.ListVersions] method's request.
func (*ListVersionsRequest) Descriptor
func (*ListVersionsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListVersionsRequest.ProtoReflect.Descriptor instead.
func (*ListVersionsRequest) GetFilter
func (x *ListVersionsRequest) GetFilter() stringfunc (*ListVersionsRequest) GetPageSize
func (x *ListVersionsRequest) GetPageSize() int32func (*ListVersionsRequest) GetPageToken
func (x *ListVersionsRequest) GetPageToken() stringfunc (*ListVersionsRequest) GetParent
func (x *ListVersionsRequest) GetParent() stringfunc (*ListVersionsRequest) ProtoMessage
func (*ListVersionsRequest) ProtoMessage()func (*ListVersionsRequest) ProtoReflect
func (x *ListVersionsRequest) ProtoReflect() protoreflect.Messagefunc (*ListVersionsRequest) Reset
func (x *ListVersionsRequest) Reset()func (*ListVersionsRequest) String
func (x *ListVersionsRequest) String() stringListVersionsResponse
type ListVersionsResponse struct {
// The versions corresponding to an API.
Versions []*Version `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}The [ListVersions][google.cloud.apihub.v1.ApiHub.ListVersions] method's response.
func (*ListVersionsResponse) Descriptor
func (*ListVersionsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListVersionsResponse.ProtoReflect.Descriptor instead.
func (*ListVersionsResponse) GetNextPageToken
func (x *ListVersionsResponse) GetNextPageToken() stringfunc (*ListVersionsResponse) GetVersions
func (x *ListVersionsResponse) GetVersions() []*Versionfunc (*ListVersionsResponse) ProtoMessage
func (*ListVersionsResponse) ProtoMessage()func (*ListVersionsResponse) ProtoReflect
func (x *ListVersionsResponse) ProtoReflect() protoreflect.Messagefunc (*ListVersionsResponse) Reset
func (x *ListVersionsResponse) Reset()func (*ListVersionsResponse) String
func (x *ListVersionsResponse) String() stringLookupApiHubInstanceRequest
type LookupApiHubInstanceRequest struct {
// Required. There will always be only one Api Hub instance for a GCP project
// across all locations.
// The parent resource for the Api Hub instance resource.
// Format: `projects/{project}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// contains filtered or unexported fields
}The [LookupApiHubInstance][google.cloud.apihub.v1.Provisioning.LookupApiHubInstance] method's request.
func (*LookupApiHubInstanceRequest) Descriptor
func (*LookupApiHubInstanceRequest) Descriptor() ([]byte, []int)Deprecated: Use LookupApiHubInstanceRequest.ProtoReflect.Descriptor instead.
func (*LookupApiHubInstanceRequest) GetParent
func (x *LookupApiHubInstanceRequest) GetParent() stringfunc (*LookupApiHubInstanceRequest) ProtoMessage
func (*LookupApiHubInstanceRequest) ProtoMessage()func (*LookupApiHubInstanceRequest) ProtoReflect
func (x *LookupApiHubInstanceRequest) ProtoReflect() protoreflect.Messagefunc (*LookupApiHubInstanceRequest) Reset
func (x *LookupApiHubInstanceRequest) Reset()func (*LookupApiHubInstanceRequest) String
func (x *LookupApiHubInstanceRequest) String() stringLookupApiHubInstanceResponse
type LookupApiHubInstanceResponse struct {
// API Hub instance for a project if it exists, empty otherwise.
ApiHubInstance *ApiHubInstance `protobuf:"bytes,1,opt,name=api_hub_instance,json=apiHubInstance,proto3" json:"api_hub_instance,omitempty"`
// contains filtered or unexported fields
}The [LookupApiHubInstance][google.cloud.apihub.v1.Provisioning.LookupApiHubInstance] method's response.`
func (*LookupApiHubInstanceResponse) Descriptor
func (*LookupApiHubInstanceResponse) Descriptor() ([]byte, []int)Deprecated: Use LookupApiHubInstanceResponse.ProtoReflect.Descriptor instead.
func (*LookupApiHubInstanceResponse) GetApiHubInstance
func (x *LookupApiHubInstanceResponse) GetApiHubInstance() *ApiHubInstancefunc (*LookupApiHubInstanceResponse) ProtoMessage
func (*LookupApiHubInstanceResponse) ProtoMessage()func (*LookupApiHubInstanceResponse) ProtoReflect
func (x *LookupApiHubInstanceResponse) ProtoReflect() protoreflect.Messagefunc (*LookupApiHubInstanceResponse) Reset
func (x *LookupApiHubInstanceResponse) Reset()func (*LookupApiHubInstanceResponse) String
func (x *LookupApiHubInstanceResponse) String() stringLookupRuntimeProjectAttachmentRequest
type LookupRuntimeProjectAttachmentRequest struct {
// Required. Runtime project ID to look up runtime project attachment for.
// Lookup happens across all regions. Expected format:
// `projects/{project}/locations/{location}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}The [LookupRuntimeProjectAttachment][google.cloud.apihub.v1.RuntimeProjectAttachmentService.LookupRuntimeProjectAttachment] method's request.
func (*LookupRuntimeProjectAttachmentRequest) Descriptor
func (*LookupRuntimeProjectAttachmentRequest) Descriptor() ([]byte, []int)Deprecated: Use LookupRuntimeProjectAttachmentRequest.ProtoReflect.Descriptor instead.
func (*LookupRuntimeProjectAttachmentRequest) GetName
func (x *LookupRuntimeProjectAttachmentRequest) GetName() stringfunc (*LookupRuntimeProjectAttachmentRequest) ProtoMessage
func (*LookupRuntimeProjectAttachmentRequest) ProtoMessage()func (*LookupRuntimeProjectAttachmentRequest) ProtoReflect
func (x *LookupRuntimeProjectAttachmentRequest) ProtoReflect() protoreflect.Messagefunc (*LookupRuntimeProjectAttachmentRequest) Reset
func (x *LookupRuntimeProjectAttachmentRequest) Reset()func (*LookupRuntimeProjectAttachmentRequest) String
func (x *LookupRuntimeProjectAttachmentRequest) String() stringLookupRuntimeProjectAttachmentResponse
type LookupRuntimeProjectAttachmentResponse struct {
// Runtime project attachment for a project if exists, empty otherwise.
RuntimeProjectAttachment *RuntimeProjectAttachment `protobuf:"bytes,1,opt,name=runtime_project_attachment,json=runtimeProjectAttachment,proto3" json:"runtime_project_attachment,omitempty"`
// contains filtered or unexported fields
}The [ListRuntimeProjectAttachments][google.cloud.apihub.v1.RuntimeProjectAttachmentService.ListRuntimeProjectAttachments] method's response.
func (*LookupRuntimeProjectAttachmentResponse) Descriptor
func (*LookupRuntimeProjectAttachmentResponse) Descriptor() ([]byte, []int)Deprecated: Use LookupRuntimeProjectAttachmentResponse.ProtoReflect.Descriptor instead.
func (*LookupRuntimeProjectAttachmentResponse) GetRuntimeProjectAttachment
func (x *LookupRuntimeProjectAttachmentResponse) GetRuntimeProjectAttachment() *RuntimeProjectAttachmentfunc (*LookupRuntimeProjectAttachmentResponse) ProtoMessage
func (*LookupRuntimeProjectAttachmentResponse) ProtoMessage()func (*LookupRuntimeProjectAttachmentResponse) ProtoReflect
func (x *LookupRuntimeProjectAttachmentResponse) ProtoReflect() protoreflect.Messagefunc (*LookupRuntimeProjectAttachmentResponse) Reset
func (x *LookupRuntimeProjectAttachmentResponse) Reset()func (*LookupRuntimeProjectAttachmentResponse) String
func (x *LookupRuntimeProjectAttachmentResponse) String() stringOpenApiSpecDetails
type OpenApiSpecDetails struct {
// Output only. The format of the spec.
Format OpenApiSpecDetails_Format `protobuf:"varint,1,opt,name=format,proto3,enum=google.cloud.apihub.v1.OpenApiSpecDetails_Format" json:"format,omitempty"`
// Output only. The version in the spec.
// This maps to `info.version` in OpenAPI spec.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// Output only. Owner details for the spec.
// This maps to `info.contact` in OpenAPI spec.
Owner *Owner `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
// contains filtered or unexported fields
}OpenApiSpecDetails contains the details parsed from an OpenAPI spec in addition to the fields mentioned in [SpecDetails][google.cloud.apihub.v1.SpecDetails].
func (*OpenApiSpecDetails) Descriptor
func (*OpenApiSpecDetails) Descriptor() ([]byte, []int)Deprecated: Use OpenApiSpecDetails.ProtoReflect.Descriptor instead.
func (*OpenApiSpecDetails) GetFormat
func (x *OpenApiSpecDetails) GetFormat() OpenApiSpecDetails_Formatfunc (*OpenApiSpecDetails) GetOwner
func (x *OpenApiSpecDetails) GetOwner() *Ownerfunc (*OpenApiSpecDetails) GetVersion
func (x *OpenApiSpecDetails) GetVersion() stringfunc (*OpenApiSpecDetails) ProtoMessage
func (*OpenApiSpecDetails) ProtoMessage()func (*OpenApiSpecDetails) ProtoReflect
func (x *OpenApiSpecDetails) ProtoReflect() protoreflect.Messagefunc (*OpenApiSpecDetails) Reset
func (x *OpenApiSpecDetails) Reset()func (*OpenApiSpecDetails) String
func (x *OpenApiSpecDetails) String() stringOpenApiSpecDetails_Format
type OpenApiSpecDetails_Format int32Enumeration of spec formats.
OpenApiSpecDetails_FORMAT_UNSPECIFIED, OpenApiSpecDetails_OPEN_API_SPEC_2_0, OpenApiSpecDetails_OPEN_API_SPEC_3_0, OpenApiSpecDetails_OPEN_API_SPEC_3_1
const (
// SpecFile type unspecified.
OpenApiSpecDetails_FORMAT_UNSPECIFIED OpenApiSpecDetails_Format = 0
// OpenAPI Spec v2.0.
OpenApiSpecDetails_OPEN_API_SPEC_2_0 OpenApiSpecDetails_Format = 1
// OpenAPI Spec v3.0.
OpenApiSpecDetails_OPEN_API_SPEC_3_0 OpenApiSpecDetails_Format = 2
// OpenAPI Spec v3.1.
OpenApiSpecDetails_OPEN_API_SPEC_3_1 OpenApiSpecDetails_Format = 3
)func (OpenApiSpecDetails_Format) Descriptor
func (OpenApiSpecDetails_Format) Descriptor() protoreflect.EnumDescriptorfunc (OpenApiSpecDetails_Format) Enum
func (x OpenApiSpecDetails_Format) Enum() *OpenApiSpecDetails_Formatfunc (OpenApiSpecDetails_Format) EnumDescriptor
func (OpenApiSpecDetails_Format) EnumDescriptor() ([]byte, []int)Deprecated: Use OpenApiSpecDetails_Format.Descriptor instead.
func (OpenApiSpecDetails_Format) Number
func (x OpenApiSpecDetails_Format) Number() protoreflect.EnumNumberfunc (OpenApiSpecDetails_Format) String
func (x OpenApiSpecDetails_Format) String() stringfunc (OpenApiSpecDetails_Format) Type
func (OpenApiSpecDetails_Format) Type() protoreflect.EnumTypeOperationDetails
type OperationDetails struct {
// Types that are assignable to Operation:
//
// *OperationDetails_HttpOperation
Operation isOperationDetails_Operation `protobuf_oneof:"operation"`
// Optional. Description of the operation behavior.
// For OpenAPI spec, this will map to `operation.description` in the
// spec, in case description is empty, `operation.summary` will be used.
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// Optional. Additional external documentation for this operation.
// For OpenAPI spec, this will map to `operation.documentation` in the spec.
Documentation *Documentation `protobuf:"bytes,2,opt,name=documentation,proto3" json:"documentation,omitempty"`
// Optional. For OpenAPI spec, this will be set if `operation.deprecated`is
// marked as `true` in the spec.
Deprecated bool `protobuf:"varint,3,opt,name=deprecated,proto3" json:"deprecated,omitempty"`
// contains filtered or unexported fields
}The operation details parsed from the spec.
func (*OperationDetails) Descriptor
func (*OperationDetails) Descriptor() ([]byte, []int)Deprecated: Use OperationDetails.ProtoReflect.Descriptor instead.
func (*OperationDetails) GetDeprecated
func (x *OperationDetails) GetDeprecated() boolfunc (*OperationDetails) GetDescription
func (x *OperationDetails) GetDescription() stringfunc (*OperationDetails) GetDocumentation
func (x *OperationDetails) GetDocumentation() *Documentationfunc (*OperationDetails) GetHttpOperation
func (x *OperationDetails) GetHttpOperation() *HttpOperationfunc (*OperationDetails) GetOperation
func (m *OperationDetails) GetOperation() isOperationDetails_Operationfunc (*OperationDetails) ProtoMessage
func (*OperationDetails) ProtoMessage()func (*OperationDetails) ProtoReflect
func (x *OperationDetails) ProtoReflect() protoreflect.Messagefunc (*OperationDetails) Reset
func (x *OperationDetails) Reset()func (*OperationDetails) String
func (x *OperationDetails) String() stringOperationDetails_HttpOperation
type OperationDetails_HttpOperation struct {
// The HTTP Operation.
HttpOperation *HttpOperation `protobuf:"bytes,4,opt,name=http_operation,json=httpOperation,proto3,oneof"`
}OperationMetadata
type OperationMetadata struct {
// Output only. The time the operation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the operation finished running.
EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Server-defined resource path for the target of the operation.
Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// Output only. Name of the verb executed by the operation.
Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
// Output only. Human-readable status of the operation, if any.
StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have been cancelled successfully
// have [Operation.error][google.longrunning.Operation.error] value with a
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
// `Code.CANCELLED`.
RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
// Output only. API version used to start the operation.
ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// contains filtered or unexported fields
}Represents the metadata of the long-running operation.
func (*OperationMetadata) Descriptor
func (*OperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (*OperationMetadata) GetApiVersion
func (x *OperationMetadata) GetApiVersion() stringfunc (*OperationMetadata) GetCreateTime
func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*OperationMetadata) GetEndTime
func (x *OperationMetadata) GetEndTime() *timestamppb.Timestampfunc (*OperationMetadata) GetRequestedCancellation
func (x *OperationMetadata) GetRequestedCancellation() boolfunc (*OperationMetadata) GetStatusMessage
func (x *OperationMetadata) GetStatusMessage() stringfunc (*OperationMetadata) GetTarget
func (x *OperationMetadata) GetTarget() stringfunc (*OperationMetadata) GetVerb
func (x *OperationMetadata) GetVerb() stringfunc (*OperationMetadata) ProtoMessage
func (*OperationMetadata) ProtoMessage()func (*OperationMetadata) ProtoReflect
func (x *OperationMetadata) ProtoReflect() protoreflect.Messagefunc (*OperationMetadata) Reset
func (x *OperationMetadata) Reset()func (*OperationMetadata) String
func (x *OperationMetadata) String() stringOwner
type Owner struct {
// Optional. The name of the owner.
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Required. The email of the owner.
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
// contains filtered or unexported fields
}Owner details.
func (*Owner) Descriptor
Deprecated: Use Owner.ProtoReflect.Descriptor instead.
func (*Owner) GetDisplayName
func (*Owner) GetEmail
func (*Owner) ProtoMessage
func (*Owner) ProtoMessage()func (*Owner) ProtoReflect
func (x *Owner) ProtoReflect() protoreflect.Messagefunc (*Owner) Reset
func (x *Owner) Reset()func (*Owner) String
Path
type Path struct {
// Optional. Complete path relative to server endpoint.
// Note: Even though this field is optional, it is required for
// [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
// API and we will fail the request if not provided.
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// Optional. A short description for the path applicable to all operations.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}The path details derived from the spec.
func (*Path) Descriptor
Deprecated: Use Path.ProtoReflect.Descriptor instead.
func (*Path) GetDescription
func (*Path) GetPath
func (*Path) ProtoMessage
func (*Path) ProtoMessage()func (*Path) ProtoReflect
func (x *Path) ProtoReflect() protoreflect.Messagefunc (*Path) Reset
func (x *Path) Reset()func (*Path) String
Plugin
type Plugin struct {
// Identifier. The name of the plugin.
// Format: `projects/{project}/locations/{location}/plugins/{plugin}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The display name of the plugin. Max length is 50 characters
// (Unicode code points).
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// 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 *AttributeValues `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
// Optional. The plugin description. Max length is 2000 characters (Unicode
// code points).
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// 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.
State Plugin_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.apihub.v1.Plugin_State" json:"state,omitempty"`
// Output only. The type of the plugin, indicating whether it is
// 'SYSTEM_OWNED' or 'USER_OWNED'.
OwnershipType Plugin_OwnershipType `protobuf:"varint,6,opt,name=ownership_type,json=ownershipType,proto3,enum=google.cloud.apihub.v1.Plugin_OwnershipType" json:"ownership_type,omitempty"`
// 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.
HostingService *Plugin_HostingService `protobuf:"bytes,7,opt,name=hosting_service,json=hostingService,proto3" json:"hosting_service,omitempty"`
// 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.
ActionsConfig []*PluginActionConfig `protobuf:"bytes,8,rep,name=actions_config,json=actionsConfig,proto3" json:"actions_config,omitempty"`
// Optional. The documentation of the plugin, that explains how to set up and
// use the plugin.
Documentation *Documentation `protobuf:"bytes,9,opt,name=documentation,proto3" json:"documentation,omitempty"`
// Optional. The category of the plugin, identifying its primary category or
// purpose. This field is required for all plugins.
PluginCategory PluginCategory `protobuf:"varint,11,opt,name=plugin_category,json=pluginCategory,proto3,enum=google.cloud.apihub.v1.PluginCategory" json:"plugin_category,omitempty"`
// Optional. The configuration template for the plugin.
ConfigTemplate *Plugin_ConfigTemplate `protobuf:"bytes,12,opt,name=config_template,json=configTemplate,proto3" json:"config_template,omitempty"`
// Output only. Timestamp indicating when the plugin was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Timestamp indicating when the plugin was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. The type of the gateway.
GatewayType GatewayType `protobuf:"varint,15,opt,name=gateway_type,json=gatewayType,proto3,enum=google.cloud.apihub.v1.GatewayType" json:"gateway_type,omitempty"`
// contains filtered or unexported fields
}A plugin resource in the API Hub.
func (*Plugin) Descriptor
Deprecated: Use Plugin.ProtoReflect.Descriptor instead.
func (*Plugin) GetActionsConfig
func (x *Plugin) GetActionsConfig() []*PluginActionConfigfunc (*Plugin) GetConfigTemplate
func (x *Plugin) GetConfigTemplate() *Plugin_ConfigTemplatefunc (*Plugin) GetCreateTime
func (x *Plugin) GetCreateTime() *timestamppb.Timestampfunc (*Plugin) GetDescription
func (*Plugin) GetDisplayName
func (*Plugin) GetDocumentation
func (x *Plugin) GetDocumentation() *Documentationfunc (*Plugin) GetGatewayType
func (x *Plugin) GetGatewayType() GatewayTypefunc (*Plugin) GetHostingService
func (x *Plugin) GetHostingService() *Plugin_HostingServicefunc (*Plugin) GetName
func (*Plugin) GetOwnershipType
func (x *Plugin) GetOwnershipType() Plugin_OwnershipTypefunc (*Plugin) GetPluginCategory
func (x *Plugin) GetPluginCategory() PluginCategoryfunc (*Plugin) GetState
func (x *Plugin) GetState() Plugin_Statefunc (*Plugin) GetType
func (x *Plugin) GetType() *AttributeValuesfunc (*Plugin) GetUpdateTime
func (x *Plugin) GetUpdateTime() *timestamppb.Timestampfunc (*Plugin) ProtoMessage
func (*Plugin) ProtoMessage()func (*Plugin) ProtoReflect
func (x *Plugin) ProtoReflect() protoreflect.Messagefunc (*Plugin) Reset
func (x *Plugin) Reset()func (*Plugin) String
PluginActionConfig
type PluginActionConfig struct {
// Required. The id of the action.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Required. The display name of the action.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Required. The description of the operation performed by the action.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Required. The trigger mode supported by the action.
TriggerMode PluginActionConfig_TriggerMode `protobuf:"varint,4,opt,name=trigger_mode,json=triggerMode,proto3,enum=google.cloud.apihub.v1.PluginActionConfig_TriggerMode" json:"trigger_mode,omitempty"`
// contains filtered or unexported fields
}PluginActionConfig represents the configuration of an action supported by a plugin.
func (*PluginActionConfig) Descriptor
func (*PluginActionConfig) Descriptor() ([]byte, []int)Deprecated: Use PluginActionConfig.ProtoReflect.Descriptor instead.
func (*PluginActionConfig) GetDescription
func (x *PluginActionConfig) GetDescription() stringfunc (*PluginActionConfig) GetDisplayName
func (x *PluginActionConfig) GetDisplayName() stringfunc (*PluginActionConfig) GetId
func (x *PluginActionConfig) GetId() stringfunc (*PluginActionConfig) GetTriggerMode
func (x *PluginActionConfig) GetTriggerMode() PluginActionConfig_TriggerModefunc (*PluginActionConfig) ProtoMessage
func (*PluginActionConfig) ProtoMessage()func (*PluginActionConfig) ProtoReflect
func (x *PluginActionConfig) ProtoReflect() protoreflect.Messagefunc (*PluginActionConfig) Reset
func (x *PluginActionConfig) Reset()func (*PluginActionConfig) String
func (x *PluginActionConfig) String() stringPluginActionConfig_TriggerMode
type PluginActionConfig_TriggerMode int32Execution mode of the action.
PluginActionConfig_TRIGGER_MODE_UNSPECIFIED, PluginActionConfig_API_HUB_ON_DEMAND_TRIGGER, PluginActionConfig_API_HUB_SCHEDULE_TRIGGER, PluginActionConfig_NON_API_HUB_MANAGED
const (
// Default unspecified mode.
PluginActionConfig_TRIGGER_MODE_UNSPECIFIED PluginActionConfig_TriggerMode = 0
// This action can be executed by invoking
// [ExecutePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.ExecutePluginInstanceAction]
// API with the given action id. To support this, the plugin hosting service
// should handle this action id as part of execute call.
PluginActionConfig_API_HUB_ON_DEMAND_TRIGGER PluginActionConfig_TriggerMode = 1
// This action will be executed on schedule by invoking
// [ExecutePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.ExecutePluginInstanceAction]
// API with the given action id. To set the schedule, the user can provide
// the cron expression in the
// [PluginAction][PluginAction.schedule_cron_expression] field for a given
// plugin instance. To support this, the plugin hosting service should
// handle this action id as part of execute call.
// Note, on demand execution will be supported by default in this trigger
// mode.
PluginActionConfig_API_HUB_SCHEDULE_TRIGGER PluginActionConfig_TriggerMode = 2
// The execution of this plugin is not handled by API hub. In this case,
// the plugin hosting service need not handle this action id as part of
// the execute call.
PluginActionConfig_NON_API_HUB_MANAGED PluginActionConfig_TriggerMode = 3
)func (PluginActionConfig_TriggerMode) Descriptor
func (PluginActionConfig_TriggerMode) Descriptor() protoreflect.EnumDescriptorfunc (PluginActionConfig_TriggerMode) Enum
func (x PluginActionConfig_TriggerMode) Enum() *PluginActionConfig_TriggerModefunc (PluginActionConfig_TriggerMode) EnumDescriptor
func (PluginActionConfig_TriggerMode) EnumDescriptor() ([]byte, []int)Deprecated: Use PluginActionConfig_TriggerMode.Descriptor instead.
func (PluginActionConfig_TriggerMode) Number
func (x PluginActionConfig_TriggerMode) Number() protoreflect.EnumNumberfunc (PluginActionConfig_TriggerMode) String
func (x PluginActionConfig_TriggerMode) String() stringfunc (PluginActionConfig_TriggerMode) Type
func (PluginActionConfig_TriggerMode) Type() protoreflect.EnumTypePluginCategory
type PluginCategory int32Enum for the plugin category.
PluginCategory_PLUGIN_CATEGORY_UNSPECIFIED, PluginCategory_API_GATEWAY, PluginCategory_API_PRODUCER
const (
// Default unspecified plugin type.
PluginCategory_PLUGIN_CATEGORY_UNSPECIFIED PluginCategory = 0
// API_GATEWAY plugins represent plugins built for API Gateways like Apigee.
PluginCategory_API_GATEWAY PluginCategory = 1
// API_PRODUCER plugins represent plugins built for API Producers like
// Cloud Run, Application Integration etc.
PluginCategory_API_PRODUCER PluginCategory = 2
)func (PluginCategory) Descriptor
func (PluginCategory) Descriptor() protoreflect.EnumDescriptorfunc (PluginCategory) Enum
func (x PluginCategory) Enum() *PluginCategoryfunc (PluginCategory) EnumDescriptor
func (PluginCategory) EnumDescriptor() ([]byte, []int)Deprecated: Use PluginCategory.Descriptor instead.
func (PluginCategory) Number
func (x PluginCategory) Number() protoreflect.EnumNumberfunc (PluginCategory) String
func (x PluginCategory) String() stringfunc (PluginCategory) Type
func (PluginCategory) Type() protoreflect.EnumTypePluginInstance
type PluginInstance struct {
// Identifier. The unique name of the plugin instance resource.
// Format:
// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The display name for this plugin instance. Max length is 255
// characters.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. The authentication information for this plugin instance.
AuthConfig *AuthConfig `protobuf:"bytes,3,opt,name=auth_config,json=authConfig,proto3" json:"auth_config,omitempty"`
// Optional. The additional information for this plugin instance corresponding
// to the additional config template of the plugin. This information will be
// sent to plugin hosting service on each call to plugin hosted service. The
// key will be the config_variable_template.display_name to uniquely identify
// the config variable.
AdditionalConfig map[string]*ConfigVariable `protobuf:"bytes,4,rep,name=additional_config,json=additionalConfig,proto3" json:"additional_config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Output only. The current state of the plugin instance (e.g., enabled,
// disabled, provisioning).
State PluginInstance_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.apihub.v1.PluginInstance_State" json:"state,omitempty"`
// Output only. Error message describing the failure, if any, during Create,
// Delete or ApplyConfig operation corresponding to the plugin instance.This
// field will only be populated if the plugin instance is in the ERROR or
// FAILED state.
ErrorMessage string `protobuf:"bytes,6,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
// Required. The action status for the plugin instance.
Actions []*PluginInstanceAction `protobuf:"bytes,7,rep,name=actions,proto3" json:"actions,omitempty"`
// Output only. Timestamp indicating when the plugin instance was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Timestamp indicating when the plugin instance was last
// updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. The source project id of the plugin instance. This will be the id
// of runtime project in case of gcp based plugins and org id in case of non
// gcp based plugins. This field will be a required field for Google provided
// on-ramp plugins.
SourceProjectId string `protobuf:"bytes,11,opt,name=source_project_id,json=sourceProjectId,proto3" json:"source_project_id,omitempty"`
// contains filtered or unexported fields
}Represents a plugin instance resource in the API Hub. A PluginInstance is a specific instance of a hub plugin with its own configuration, state, and execution details.
func (*PluginInstance) Descriptor
func (*PluginInstance) Descriptor() ([]byte, []int)Deprecated: Use PluginInstance.ProtoReflect.Descriptor instead.
func (*PluginInstance) GetActions
func (x *PluginInstance) GetActions() []*PluginInstanceActionfunc (*PluginInstance) GetAdditionalConfig
func (x *PluginInstance) GetAdditionalConfig() map[string]*ConfigVariablefunc (*PluginInstance) GetAuthConfig
func (x *PluginInstance) GetAuthConfig() *AuthConfigfunc (*PluginInstance) GetCreateTime
func (x *PluginInstance) GetCreateTime() *timestamppb.Timestampfunc (*PluginInstance) GetDisplayName
func (x *PluginInstance) GetDisplayName() stringfunc (*PluginInstance) GetErrorMessage
func (x *PluginInstance) GetErrorMessage() stringfunc (*PluginInstance) GetName
func (x *PluginInstance) GetName() stringfunc (*PluginInstance) GetSourceProjectId
func (x *PluginInstance) GetSourceProjectId() stringfunc (*PluginInstance) GetState
func (x *PluginInstance) GetState() PluginInstance_Statefunc (*PluginInstance) GetUpdateTime
func (x *PluginInstance) GetUpdateTime() *timestamppb.Timestampfunc (*PluginInstance) ProtoMessage
func (*PluginInstance) ProtoMessage()func (*PluginInstance) ProtoReflect
func (x *PluginInstance) ProtoReflect() protoreflect.Messagefunc (*PluginInstance) Reset
func (x *PluginInstance) Reset()func (*PluginInstance) String
func (x *PluginInstance) String() stringPluginInstanceAction
type PluginInstanceAction struct {
// The status of the plugin action.
//
// Types that are assignable to ActionStatus:
//
// *PluginInstanceAction_HubInstanceAction
ActionStatus isPluginInstanceAction_ActionStatus `protobuf_oneof:"action_status"`
// Required. This should map to one of the [action
// id][google.cloud.apihub.v1.PluginActionConfig.id] specified in
// [actions_config][google.cloud.apihub.v1.Plugin.actions_config] in the
// plugin.
ActionId string `protobuf:"bytes,1,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
// Output only. The current state of the plugin action in the plugin instance.
State PluginInstanceAction_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.apihub.v1.PluginInstanceAction_State" json:"state,omitempty"`
// Optional. The schedule for this plugin instance action. This can only be
// set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.
ScheduleCronExpression string `protobuf:"bytes,4,opt,name=schedule_cron_expression,json=scheduleCronExpression,proto3" json:"schedule_cron_expression,omitempty"`
// Optional. This configuration should be provided if the plugin action is
// publishing data to API hub curate layer.
CurationConfig *CurationConfig `protobuf:"bytes,5,opt,name=curation_config,json=curationConfig,proto3" json:"curation_config,omitempty"`
// Optional. The time zone for the schedule cron expression. If not provided,
// UTC will be used.
ScheduleTimeZone string `protobuf:"bytes,7,opt,name=schedule_time_zone,json=scheduleTimeZone,proto3" json:"schedule_time_zone,omitempty"`
// Optional. The service account used to publish data. Note, the service
// account will only be accepted for non GCP plugins like OPDK.
ServiceAccount string `protobuf:"bytes,8,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
// Output only. The configuration of resources created for a given plugin
// instance action. Note these will be returned only in case of Non-GCP
// plugins like OPDK.
ResourceConfig *PluginInstanceAction_ResourceConfig `protobuf:"bytes,9,opt,name=resource_config,json=resourceConfig,proto3" json:"resource_config,omitempty"`
// contains filtered or unexported fields
}PluginInstanceAction represents an action which can be executed in the plugin instance.
func (*PluginInstanceAction) Descriptor
func (*PluginInstanceAction) Descriptor() ([]byte, []int)Deprecated: Use PluginInstanceAction.ProtoReflect.Descriptor instead.
func (*PluginInstanceAction) GetActionId
func (x *PluginInstanceAction) GetActionId() stringfunc (*PluginInstanceAction) GetActionStatus
func (m *PluginInstanceAction) GetActionStatus() isPluginInstanceAction_ActionStatusfunc (*PluginInstanceAction) GetCurationConfig
func (x *PluginInstanceAction) GetCurationConfig() *CurationConfigfunc (*PluginInstanceAction) GetHubInstanceAction
func (x *PluginInstanceAction) GetHubInstanceAction() *ExecutionStatusfunc (*PluginInstanceAction) GetResourceConfig
func (x *PluginInstanceAction) GetResourceConfig() *PluginInstanceAction_ResourceConfigfunc (*PluginInstanceAction) GetScheduleCronExpression
func (x *PluginInstanceAction) GetScheduleCronExpression() stringfunc (*PluginInstanceAction) GetScheduleTimeZone
func (x *PluginInstanceAction) GetScheduleTimeZone() stringfunc (*PluginInstanceAction) GetServiceAccount
func (x *PluginInstanceAction) GetServiceAccount() stringfunc (*PluginInstanceAction) GetState
func (x *PluginInstanceAction) GetState() PluginInstanceAction_Statefunc (*PluginInstanceAction) ProtoMessage
func (*PluginInstanceAction) ProtoMessage()func (*PluginInstanceAction) ProtoReflect
func (x *PluginInstanceAction) ProtoReflect() protoreflect.Messagefunc (*PluginInstanceAction) Reset
func (x *PluginInstanceAction) Reset()func (*PluginInstanceAction) String
func (x *PluginInstanceAction) String() stringPluginInstanceAction_HubInstanceAction
type PluginInstanceAction_HubInstanceAction struct {
// Optional. The execution information for the plugin instance action done
// corresponding to an API hub instance.
HubInstanceAction *ExecutionStatus `protobuf:"bytes,6,opt,name=hub_instance_action,json=hubInstanceAction,proto3,oneof"`
}PluginInstanceAction_ResourceConfig
type PluginInstanceAction_ResourceConfig struct {
// Output only. The type of the action.
ActionType ActionType `protobuf:"varint,1,opt,name=action_type,json=actionType,proto3,enum=google.cloud.apihub.v1.ActionType" json:"action_type,omitempty"`
// Output only. The pubsub topic to publish the data to. Format is
// projects/{project}/topics/{topic}
PubsubTopic string `protobuf:"bytes,2,opt,name=pubsub_topic,json=pubsubTopic,proto3" json:"pubsub_topic,omitempty"`
// contains filtered or unexported fields
}The configuration of resources created for a given plugin instance action.
func (*PluginInstanceAction_ResourceConfig) Descriptor
func (*PluginInstanceAction_ResourceConfig) Descriptor() ([]byte, []int)Deprecated: Use PluginInstanceAction_ResourceConfig.ProtoReflect.Descriptor instead.
func (*PluginInstanceAction_ResourceConfig) GetActionType
func (x *PluginInstanceAction_ResourceConfig) GetActionType() ActionTypefunc (*PluginInstanceAction_ResourceConfig) GetPubsubTopic
func (x *PluginInstanceAction_ResourceConfig) GetPubsubTopic() stringfunc (*PluginInstanceAction_ResourceConfig) ProtoMessage
func (*PluginInstanceAction_ResourceConfig) ProtoMessage()func (*PluginInstanceAction_ResourceConfig) ProtoReflect
func (x *PluginInstanceAction_ResourceConfig) ProtoReflect() protoreflect.Messagefunc (*PluginInstanceAction_ResourceConfig) Reset
func (x *PluginInstanceAction_ResourceConfig) Reset()func (*PluginInstanceAction_ResourceConfig) String
func (x *PluginInstanceAction_ResourceConfig) String() stringPluginInstanceAction_State
type PluginInstanceAction_State int32State represents the state of the plugin instance action.
PluginInstanceAction_STATE_UNSPECIFIED, PluginInstanceAction_ENABLED, PluginInstanceAction_DISABLED, PluginInstanceAction_ENABLING, PluginInstanceAction_DISABLING, PluginInstanceAction_ERROR
const (
// Default unspecified state.
PluginInstanceAction_STATE_UNSPECIFIED PluginInstanceAction_State = 0
// The action is enabled in the plugin instance i.e., executions can
// be triggered for this action.
PluginInstanceAction_ENABLED PluginInstanceAction_State = 1
// The action is disabled in the plugin instance i.e., no executions
// can be triggered for this action. This state indicates that the user
// explicitly disabled the instance, and no further action is needed unless
// the user wants to re-enable it.
PluginInstanceAction_DISABLED PluginInstanceAction_State = 2
// The action in the plugin instance is being enabled.
PluginInstanceAction_ENABLING PluginInstanceAction_State = 3
// The action in the plugin instance is being disabled.
PluginInstanceAction_DISABLING PluginInstanceAction_State = 4
// The ERROR state can come while enabling/disabling plugin instance action.
// Users can retrigger enable, disable via
// [EnablePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.EnablePluginInstanceAction]
// and
// [DisablePluginInstanceAction][google.cloud.apihub.v1.ApiHubPlugin.DisablePluginInstanceAction]
// to restore the action back to enabled/disabled state. Note enable/disable
// on actions can only be triggered if plugin instance is in Active state.
PluginInstanceAction_ERROR PluginInstanceAction_State = 5
)func (PluginInstanceAction_State) Descriptor
func (PluginInstanceAction_State) Descriptor() protoreflect.EnumDescriptorfunc (PluginInstanceAction_State) Enum
func (x PluginInstanceAction_State) Enum() *PluginInstanceAction_Statefunc (PluginInstanceAction_State) EnumDescriptor
func (PluginInstanceAction_State) EnumDescriptor() ([]byte, []int)Deprecated: Use PluginInstanceAction_State.Descriptor instead.
func (PluginInstanceAction_State) Number
func (x PluginInstanceAction_State) Number() protoreflect.EnumNumberfunc (PluginInstanceAction_State) String
func (x PluginInstanceAction_State) String() stringfunc (PluginInstanceAction_State) Type
func (PluginInstanceAction_State) Type() protoreflect.EnumTypePluginInstance_State
type PluginInstance_State int32State represents the state of the plugin instance.
PluginInstance_STATE_UNSPECIFIED, PluginInstance_CREATING, PluginInstance_ACTIVE, PluginInstance_APPLYING_CONFIG, PluginInstance_ERROR, PluginInstance_FAILED, PluginInstance_DELETING
const (
// Default unspecified state.
PluginInstance_STATE_UNSPECIFIED PluginInstance_State = 0
// The plugin instance is being created.
PluginInstance_CREATING PluginInstance_State = 1
// The plugin instance is active and ready for executions. This is the only
// state where executions can run on the plugin instance.
PluginInstance_ACTIVE PluginInstance_State = 2
// The updated config that contains
// [additional_config][google.cloud.apihub.v1.PluginInstance.additional_config]
// and [auth_config][google.cloud.apihub.v1.PluginInstance.auth_config] is
// being applied.
PluginInstance_APPLYING_CONFIG PluginInstance_State = 3
// The ERROR state can come while applying config. Users
// can retrigger
// [ApplyPluginInstanceConfig][google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig]
// to restore the plugin instance back to active state. Note, In case the
// ERROR state happens while applying config (auth_config,
// additional_config), the plugin instance will reflect the config which was
// trying to be applied while error happened. In order to overwrite, trigger
// ApplyConfig with a new config.
PluginInstance_ERROR PluginInstance_State = 4
// The plugin instance is in a failed state. This indicates that an
// unrecoverable error occurred during a previous operation (Create,
// Delete).
PluginInstance_FAILED PluginInstance_State = 5
// The plugin instance is being deleted. Delete is only possible if there is
// no other operation running on the plugin instance and plugin instance
// action.
PluginInstance_DELETING PluginInstance_State = 6
)func (PluginInstance_State) Descriptor
func (PluginInstance_State) Descriptor() protoreflect.EnumDescriptorfunc (PluginInstance_State) Enum
func (x PluginInstance_State) Enum() *PluginInstance_Statefunc (PluginInstance_State) EnumDescriptor
func (PluginInstance_State) EnumDescriptor() ([]byte, []int)Deprecated: Use PluginInstance_State.Descriptor instead.
func (PluginInstance_State) Number
func (x PluginInstance_State) Number() protoreflect.EnumNumberfunc (PluginInstance_State) String
func (x PluginInstance_State) String() stringfunc (PluginInstance_State) Type
func (PluginInstance_State) Type() protoreflect.EnumTypePlugin_ConfigTemplate
type Plugin_ConfigTemplate struct {
// Optional. The authentication template for the plugin.
AuthConfigTemplate *Plugin_ConfigTemplate_AuthConfigTemplate `protobuf:"bytes,1,opt,name=auth_config_template,json=authConfigTemplate,proto3" json:"auth_config_template,omitempty"`
// Optional. The list of additional configuration variables for the plugin's
// configuration.
AdditionalConfigTemplate []*ConfigVariableTemplate `protobuf:"bytes,2,rep,name=additional_config_template,json=additionalConfigTemplate,proto3" json:"additional_config_template,omitempty"`
// contains filtered or unexported fields
}ConfigTemplate represents the configuration template for a plugin.
func (*Plugin_ConfigTemplate) Descriptor
func (*Plugin_ConfigTemplate) Descriptor() ([]byte, []int)Deprecated: Use Plugin_ConfigTemplate.ProtoReflect.Descriptor instead.
func (*Plugin_ConfigTemplate) GetAdditionalConfigTemplate
func (x *Plugin_ConfigTemplate) GetAdditionalConfigTemplate() []*ConfigVariableTemplatefunc (*Plugin_ConfigTemplate) GetAuthConfigTemplate
func (x *Plugin_ConfigTemplate) GetAuthConfigTemplate() *Plugin_ConfigTemplate_AuthConfigTemplatefunc (*Plugin_ConfigTemplate) ProtoMessage
func (*Plugin_ConfigTemplate) ProtoMessage()func (*Plugin_ConfigTemplate) ProtoReflect
func (x *Plugin_ConfigTemplate) ProtoReflect() protoreflect.Messagefunc (*Plugin_ConfigTemplate) Reset
func (x *Plugin_ConfigTemplate) Reset()func (*Plugin_ConfigTemplate) String
func (x *Plugin_ConfigTemplate) String() stringPlugin_ConfigTemplate_AuthConfigTemplate
type Plugin_ConfigTemplate_AuthConfigTemplate struct {
// Required. The list of authentication types supported by the plugin.
SupportedAuthTypes []AuthType `protobuf:"varint,1,rep,packed,name=supported_auth_types,json=supportedAuthTypes,proto3,enum=google.cloud.apihub.v1.AuthType" json:"supported_auth_types,omitempty"`
// Optional. The service account of the plugin hosting service.
// This service account should be granted the required permissions on the
// Auth Config parameters provided while creating the plugin instances
// corresponding to this plugin.
//
// For example, if the plugin instance auth config requires a secret
// manager secret, the service account should be granted the
// secretmanager.versions.access permission on the corresponding secret,
// if the plugin instance auth config contains a service account, the
// service account should be granted the
// iam.serviceAccounts.getAccessToken permission on the corresponding
// service account.
ServiceAccount *GoogleServiceAccountConfig `protobuf:"bytes,2,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
// contains filtered or unexported fields
}AuthConfigTemplate represents the authentication template for a plugin.
func (*Plugin_ConfigTemplate_AuthConfigTemplate) Descriptor
func (*Plugin_ConfigTemplate_AuthConfigTemplate) Descriptor() ([]byte, []int)Deprecated: Use Plugin_ConfigTemplate_AuthConfigTemplate.ProtoReflect.Descriptor instead.
func (*Plugin_ConfigTemplate_AuthConfigTemplate) GetServiceAccount
func (x *Plugin_ConfigTemplate_AuthConfigTemplate) GetServiceAccount() *GoogleServiceAccountConfigfunc (*Plugin_ConfigTemplate_AuthConfigTemplate) GetSupportedAuthTypes
func (x *Plugin_ConfigTemplate_AuthConfigTemplate) GetSupportedAuthTypes() []AuthTypefunc (*Plugin_ConfigTemplate_AuthConfigTemplate) ProtoMessage
func (*Plugin_ConfigTemplate_AuthConfigTemplate) ProtoMessage()func (*Plugin_ConfigTemplate_AuthConfigTemplate) ProtoReflect
func (x *Plugin_ConfigTemplate_AuthConfigTemplate) ProtoReflect() protoreflect.Messagefunc (*Plugin_ConfigTemplate_AuthConfigTemplate) Reset
func (x *Plugin_ConfigTemplate_AuthConfigTemplate) Reset()func (*Plugin_ConfigTemplate_AuthConfigTemplate) String
func (x *Plugin_ConfigTemplate_AuthConfigTemplate) String() stringPlugin_HostingService
type Plugin_HostingService struct {
// Optional. The URI of the service implemented by the plugin developer,
// used to invoke the plugin's functionality. This information is only
// required for user defined plugins.
ServiceUri string `protobuf:"bytes,1,opt,name=service_uri,json=serviceUri,proto3" json:"service_uri,omitempty"`
// contains filtered or unexported fields
}The information related to the service implemented by the plugin developer, used to invoke the plugin's functionality.
func (*Plugin_HostingService) Descriptor
func (*Plugin_HostingService) Descriptor() ([]byte, []int)Deprecated: Use Plugin_HostingService.ProtoReflect.Descriptor instead.
func (*Plugin_HostingService) GetServiceUri
func (x *Plugin_HostingService) GetServiceUri() stringfunc (*Plugin_HostingService) ProtoMessage
func (*Plugin_HostingService) ProtoMessage()func (*Plugin_HostingService) ProtoReflect
func (x *Plugin_HostingService) ProtoReflect() protoreflect.Messagefunc (*Plugin_HostingService) Reset
func (x *Plugin_HostingService) Reset()func (*Plugin_HostingService) String
func (x *Plugin_HostingService) String() stringPlugin_OwnershipType
type Plugin_OwnershipType int32Ownership type of the plugin.
Plugin_OWNERSHIP_TYPE_UNSPECIFIED, Plugin_SYSTEM_OWNED, Plugin_USER_OWNED
const (
// Default unspecified type.
Plugin_OWNERSHIP_TYPE_UNSPECIFIED Plugin_OwnershipType = 0
// System owned plugins are defined by API hub and are available out of the
// box in API hub.
Plugin_SYSTEM_OWNED Plugin_OwnershipType = 1
// User owned plugins are defined by the user and need to be explicitly
// added to API hub via
// [CreatePlugin][google.cloud.apihub.v1.ApiHubPlugin.CreatePlugin] method.
Plugin_USER_OWNED Plugin_OwnershipType = 2
)func (Plugin_OwnershipType) Descriptor
func (Plugin_OwnershipType) Descriptor() protoreflect.EnumDescriptorfunc (Plugin_OwnershipType) Enum
func (x Plugin_OwnershipType) Enum() *Plugin_OwnershipTypefunc (Plugin_OwnershipType) EnumDescriptor
func (Plugin_OwnershipType) EnumDescriptor() ([]byte, []int)Deprecated: Use Plugin_OwnershipType.Descriptor instead.
func (Plugin_OwnershipType) Number
func (x Plugin_OwnershipType) Number() protoreflect.EnumNumberfunc (Plugin_OwnershipType) String
func (x Plugin_OwnershipType) String() stringfunc (Plugin_OwnershipType) Type
func (Plugin_OwnershipType) Type() protoreflect.EnumTypePlugin_State
type Plugin_State int32Possible states a plugin can have. Note that this enum may receive new values in the future. Consumers are advised to always code against the enum values expecting new states can be added later on.
Plugin_STATE_UNSPECIFIED, Plugin_ENABLED, Plugin_DISABLED
const (
// The default value. This value is used if the state is omitted.
Plugin_STATE_UNSPECIFIED Plugin_State = 0
// The plugin is enabled.
Plugin_ENABLED Plugin_State = 1
// The plugin is disabled.
Plugin_DISABLED Plugin_State = 2
)func (Plugin_State) Descriptor
func (Plugin_State) Descriptor() protoreflect.EnumDescriptorfunc (Plugin_State) Enum
func (x Plugin_State) Enum() *Plugin_Statefunc (Plugin_State) EnumDescriptor
func (Plugin_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Plugin_State.Descriptor instead.
func (Plugin_State) Number
func (x Plugin_State) Number() protoreflect.EnumNumberfunc (Plugin_State) String
func (x Plugin_State) String() stringfunc (Plugin_State) Type
func (Plugin_State) Type() protoreflect.EnumTypePoint
type Point struct {
// Required. Line number (zero-indexed).
Line int32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"`
// Required. Character position within the line (zero-indexed).
Character int32 `protobuf:"varint,2,opt,name=character,proto3" json:"character,omitempty"`
// contains filtered or unexported fields
}Point within the file (line and character).
func (*Point) Descriptor
Deprecated: Use Point.ProtoReflect.Descriptor instead.
func (*Point) GetCharacter
func (*Point) GetLine
func (*Point) ProtoMessage
func (*Point) ProtoMessage()func (*Point) ProtoReflect
func (x *Point) ProtoReflect() protoreflect.Messagefunc (*Point) Reset
func (x *Point) Reset()func (*Point) String
ProvisioningClient
type ProvisioningClient interface {
// Provisions instance resources for the API Hub.
CreateApiHubInstance(ctx context.Context, in *CreateApiHubInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes the API hub instance.
DeleteApiHubInstance(ctx context.Context, in *DeleteApiHubInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Gets details of a single API Hub instance.
GetApiHubInstance(ctx context.Context, in *GetApiHubInstanceRequest, opts ...grpc.CallOption) (*ApiHubInstance, error)
// Looks up an Api Hub instance in a given GCP project. There will always be
// only one Api Hub instance for a GCP project across all locations.
LookupApiHubInstance(ctx context.Context, in *LookupApiHubInstanceRequest, opts ...grpc.CallOption) (*LookupApiHubInstanceResponse, error)
}ProvisioningClient is the client API for Provisioning service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewProvisioningClient
func NewProvisioningClient(cc grpc.ClientConnInterface) ProvisioningClientProvisioningServer
type ProvisioningServer interface {
// Provisions instance resources for the API Hub.
CreateApiHubInstance(context.Context, *CreateApiHubInstanceRequest) (*longrunningpb.Operation, error)
// Deletes the API hub instance.
DeleteApiHubInstance(context.Context, *DeleteApiHubInstanceRequest) (*longrunningpb.Operation, error)
// Gets details of a single API Hub instance.
GetApiHubInstance(context.Context, *GetApiHubInstanceRequest) (*ApiHubInstance, error)
// Looks up an Api Hub instance in a given GCP project. There will always be
// only one Api Hub instance for a GCP project across all locations.
LookupApiHubInstance(context.Context, *LookupApiHubInstanceRequest) (*LookupApiHubInstanceResponse, error)
}ProvisioningServer is the server API for Provisioning service. All implementations should embed UnimplementedProvisioningServer for forward compatibility
Range
type Range struct {
// Required. Start of the issue.
Start *Point `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
// Required. End of the issue.
End *Point `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
// contains filtered or unexported fields
}Object describing where in the file the issue was found.
func (*Range) Descriptor
Deprecated: Use Range.ProtoReflect.Descriptor instead.
func (*Range) GetEnd
func (*Range) GetStart
func (*Range) ProtoMessage
func (*Range) ProtoMessage()func (*Range) ProtoReflect
func (x *Range) ProtoReflect() protoreflect.Messagefunc (*Range) Reset
func (x *Range) Reset()func (*Range) String
RuntimeProjectAttachment
type RuntimeProjectAttachment struct {
// Identifier. The resource name of a runtime project attachment. Format:
// "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Immutable. Google cloud project name in the format:
// "projects/abc" or "projects/123". As input, project name with either
// project id or number are accepted. As output, this field will contain
// project number.
RuntimeProject string `protobuf:"bytes,2,opt,name=runtime_project,json=runtimeProject,proto3" json:"runtime_project,omitempty"`
// Output only. Create time.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// contains filtered or unexported fields
}Runtime project attachment represents an attachment from the runtime project to the host project. Api Hub looks for deployments in the attached runtime projects and creates corresponding resources in Api Hub for the discovered deployments.
func (*RuntimeProjectAttachment) Descriptor
func (*RuntimeProjectAttachment) Descriptor() ([]byte, []int)Deprecated: Use RuntimeProjectAttachment.ProtoReflect.Descriptor instead.
func (*RuntimeProjectAttachment) GetCreateTime
func (x *RuntimeProjectAttachment) GetCreateTime() *timestamppb.Timestampfunc (*RuntimeProjectAttachment) GetName
func (x *RuntimeProjectAttachment) GetName() stringfunc (*RuntimeProjectAttachment) GetRuntimeProject
func (x *RuntimeProjectAttachment) GetRuntimeProject() stringfunc (*RuntimeProjectAttachment) ProtoMessage
func (*RuntimeProjectAttachment) ProtoMessage()func (*RuntimeProjectAttachment) ProtoReflect
func (x *RuntimeProjectAttachment) ProtoReflect() protoreflect.Messagefunc (*RuntimeProjectAttachment) Reset
func (x *RuntimeProjectAttachment) Reset()func (*RuntimeProjectAttachment) String
func (x *RuntimeProjectAttachment) String() stringRuntimeProjectAttachmentServiceClient
type RuntimeProjectAttachmentServiceClient interface {
// Attaches a runtime project to the host project.
CreateRuntimeProjectAttachment(ctx context.Context, in *CreateRuntimeProjectAttachmentRequest, opts ...grpc.CallOption) (*RuntimeProjectAttachment, error)
// Gets a runtime project attachment.
GetRuntimeProjectAttachment(ctx context.Context, in *GetRuntimeProjectAttachmentRequest, opts ...grpc.CallOption) (*RuntimeProjectAttachment, error)
// List runtime projects attached to the host project.
ListRuntimeProjectAttachments(ctx context.Context, in *ListRuntimeProjectAttachmentsRequest, opts ...grpc.CallOption) (*ListRuntimeProjectAttachmentsResponse, error)
// Delete a runtime project attachment in the API Hub. This call will detach
// the runtime project from the host project.
DeleteRuntimeProjectAttachment(ctx context.Context, in *DeleteRuntimeProjectAttachmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Look up a runtime project attachment. This API can be called in the context
// of any project.
LookupRuntimeProjectAttachment(ctx context.Context, in *LookupRuntimeProjectAttachmentRequest, opts ...grpc.CallOption) (*LookupRuntimeProjectAttachmentResponse, error)
}RuntimeProjectAttachmentServiceClient is the client API for RuntimeProjectAttachmentService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRuntimeProjectAttachmentServiceClient
func NewRuntimeProjectAttachmentServiceClient(cc grpc.ClientConnInterface) RuntimeProjectAttachmentServiceClientRuntimeProjectAttachmentServiceServer
type RuntimeProjectAttachmentServiceServer interface {
// Attaches a runtime project to the host project.
CreateRuntimeProjectAttachment(context.Context, *CreateRuntimeProjectAttachmentRequest) (*RuntimeProjectAttachment, error)
// Gets a runtime project attachment.
GetRuntimeProjectAttachment(context.Context, *GetRuntimeProjectAttachmentRequest) (*RuntimeProjectAttachment, error)
// List runtime projects attached to the host project.
ListRuntimeProjectAttachments(context.Context, *ListRuntimeProjectAttachmentsRequest) (*ListRuntimeProjectAttachmentsResponse, error)
// Delete a runtime project attachment in the API Hub. This call will detach
// the runtime project from the host project.
DeleteRuntimeProjectAttachment(context.Context, *DeleteRuntimeProjectAttachmentRequest) (*emptypb.Empty, error)
// Look up a runtime project attachment. This API can be called in the context
// of any project.
LookupRuntimeProjectAttachment(context.Context, *LookupRuntimeProjectAttachmentRequest) (*LookupRuntimeProjectAttachmentResponse, error)
}RuntimeProjectAttachmentServiceServer is the server API for RuntimeProjectAttachmentService service. All implementations should embed UnimplementedRuntimeProjectAttachmentServiceServer for forward compatibility
Schema
type Schema struct {
// Output only. The display name of the schema.
// This will map to the name of the schema in the spec.
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Output only. The raw value of the schema definition corresponding to the
// schema name in the spec.
RawValue []byte `protobuf:"bytes,2,opt,name=raw_value,json=rawValue,proto3" json:"raw_value,omitempty"`
// contains filtered or unexported fields
}The schema details derived from the spec. Currently, this entity is supported
for OpenAPI spec only.
For OpenAPI spec, this maps to the schema defined in
the definitions section for OpenAPI 2.0 version and in
components.schemas section for OpenAPI 3.0 and 3.1 version.
func (*Schema) Descriptor
Deprecated: Use Schema.ProtoReflect.Descriptor instead.
func (*Schema) GetDisplayName
func (*Schema) GetRawValue
func (*Schema) ProtoMessage
func (*Schema) ProtoMessage()func (*Schema) ProtoReflect
func (x *Schema) ProtoReflect() protoreflect.Messagefunc (*Schema) Reset
func (x *Schema) Reset()func (*Schema) String
SearchResourcesRequest
type SearchResourcesRequest struct {
// 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.
Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
// 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.
Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
// 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_.
Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
// 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.
PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// 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.
PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}The [SearchResources][google.cloud.apihub.v1.ApiHub.SearchResources] method's request.
func (*SearchResourcesRequest) Descriptor
func (*SearchResourcesRequest) Descriptor() ([]byte, []int)Deprecated: Use SearchResourcesRequest.ProtoReflect.Descriptor instead.
func (*SearchResourcesRequest) GetFilter
func (x *SearchResourcesRequest) GetFilter() stringfunc (*SearchResourcesRequest) GetLocation
func (x *SearchResourcesRequest) GetLocation() stringfunc (*SearchResourcesRequest) GetPageSize
func (x *SearchResourcesRequest) GetPageSize() int32func (*SearchResourcesRequest) GetPageToken
func (x *SearchResourcesRequest) GetPageToken() stringfunc (*SearchResourcesRequest) GetQuery
func (x *SearchResourcesRequest) GetQuery() stringfunc (*SearchResourcesRequest) ProtoMessage
func (*SearchResourcesRequest) ProtoMessage()func (*SearchResourcesRequest) ProtoReflect
func (x *SearchResourcesRequest) ProtoReflect() protoreflect.Messagefunc (*SearchResourcesRequest) Reset
func (x *SearchResourcesRequest) Reset()func (*SearchResourcesRequest) String
func (x *SearchResourcesRequest) String() stringSearchResourcesResponse
type SearchResourcesResponse struct {
// List of search results according to the filter and search query specified.
// The order of search results represents the ranking.
SearchResults []*SearchResult `protobuf:"bytes,1,rep,name=search_results,json=searchResults,proto3" json:"search_results,omitempty"`
// 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.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response for the [SearchResources][google.cloud.apihub.v1.ApiHub.SearchResources] method.
func (*SearchResourcesResponse) Descriptor
func (*SearchResourcesResponse) Descriptor() ([]byte, []int)Deprecated: Use SearchResourcesResponse.ProtoReflect.Descriptor instead.
func (*SearchResourcesResponse) GetNextPageToken
func (x *SearchResourcesResponse) GetNextPageToken() stringfunc (*SearchResourcesResponse) GetSearchResults
func (x *SearchResourcesResponse) GetSearchResults() []*SearchResultfunc (*SearchResourcesResponse) ProtoMessage
func (*SearchResourcesResponse) ProtoMessage()func (*SearchResourcesResponse) ProtoReflect
func (x *SearchResourcesResponse) ProtoReflect() protoreflect.Messagefunc (*SearchResourcesResponse) Reset
func (x *SearchResourcesResponse) Reset()func (*SearchResourcesResponse) String
func (x *SearchResourcesResponse) String() stringSearchResult
type SearchResult struct {
// This represents the ApiHubResource.
// Note: Only selected fields of the resources are populated in response.
Resource *ApiHubResource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
// contains filtered or unexported fields
}Represents the search results.
func (*SearchResult) Descriptor
func (*SearchResult) Descriptor() ([]byte, []int)Deprecated: Use SearchResult.ProtoReflect.Descriptor instead.
func (*SearchResult) GetResource
func (x *SearchResult) GetResource() *ApiHubResourcefunc (*SearchResult) ProtoMessage
func (*SearchResult) ProtoMessage()func (*SearchResult) ProtoReflect
func (x *SearchResult) ProtoReflect() protoreflect.Messagefunc (*SearchResult) Reset
func (x *SearchResult) Reset()func (*SearchResult) String
func (x *SearchResult) String() stringSecret
type Secret struct {
// Required. The resource name of the secret version in the format,
// format as: `projects/*/secrets/*/versions/*`.
SecretVersion string `protobuf:"bytes,1,opt,name=secret_version,json=secretVersion,proto3" json:"secret_version,omitempty"`
// contains filtered or unexported fields
}Secret provides a reference to entries in Secret Manager.
func (*Secret) Descriptor
Deprecated: Use Secret.ProtoReflect.Descriptor instead.
func (*Secret) GetSecretVersion
func (*Secret) ProtoMessage
func (*Secret) ProtoMessage()func (*Secret) ProtoReflect
func (x *Secret) ProtoReflect() protoreflect.Messagefunc (*Secret) Reset
func (x *Secret) Reset()func (*Secret) String
Severity
type Severity int32Severity of the issue.
Severity_SEVERITY_UNSPECIFIED, Severity_SEVERITY_ERROR, Severity_SEVERITY_WARNING, Severity_SEVERITY_INFO, Severity_SEVERITY_HINT
const (
// Severity unspecified.
Severity_SEVERITY_UNSPECIFIED Severity = 0
// Severity error.
Severity_SEVERITY_ERROR Severity = 1
// Severity warning.
Severity_SEVERITY_WARNING Severity = 2
// Severity info.
Severity_SEVERITY_INFO Severity = 3
// Severity hint.
Severity_SEVERITY_HINT Severity = 4
)func (Severity) Descriptor
func (Severity) Descriptor() protoreflect.EnumDescriptorfunc (Severity) Enum
func (Severity) EnumDescriptor
Deprecated: Use Severity.Descriptor instead.
func (Severity) Number
func (x Severity) Number() protoreflect.EnumNumberfunc (Severity) String
func (Severity) Type
func (Severity) Type() protoreflect.EnumTypeSourceMetadata
type SourceMetadata struct {
// The source of the resource.
//
// Types that are assignable to Source:
//
// *SourceMetadata_PluginInstanceActionSource_
Source isSourceMetadata_Source `protobuf_oneof:"source"`
// Output only. The type of the source.
SourceType SourceMetadata_SourceType `protobuf:"varint,2,opt,name=source_type,json=sourceType,proto3,enum=google.cloud.apihub.v1.SourceMetadata_SourceType" json:"source_type,omitempty"`
// Output only. The unique identifier of the resource at the source.
OriginalResourceId string `protobuf:"bytes,3,opt,name=original_resource_id,json=originalResourceId,proto3" json:"original_resource_id,omitempty"`
// Output only. The time at which the resource was created at the source.
OriginalResourceCreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=original_resource_create_time,json=originalResourceCreateTime,proto3" json:"original_resource_create_time,omitempty"`
// Output only. The time at which the resource was last updated at the source.
OriginalResourceUpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=original_resource_update_time,json=originalResourceUpdateTime,proto3" json:"original_resource_update_time,omitempty"`
// contains filtered or unexported fields
}SourceMetadata represents the metadata for a resource at the source.
func (*SourceMetadata) Descriptor
func (*SourceMetadata) Descriptor() ([]byte, []int)Deprecated: Use SourceMetadata.ProtoReflect.Descriptor instead.
func (*SourceMetadata) GetOriginalResourceCreateTime
func (x *SourceMetadata) GetOriginalResourceCreateTime() *timestamppb.Timestampfunc (*SourceMetadata) GetOriginalResourceId
func (x *SourceMetadata) GetOriginalResourceId() stringfunc (*SourceMetadata) GetOriginalResourceUpdateTime
func (x *SourceMetadata) GetOriginalResourceUpdateTime() *timestamppb.Timestampfunc (*SourceMetadata) GetPluginInstanceActionSource
func (x *SourceMetadata) GetPluginInstanceActionSource() *SourceMetadata_PluginInstanceActionSourcefunc (*SourceMetadata) GetSource
func (m *SourceMetadata) GetSource() isSourceMetadata_Sourcefunc (*SourceMetadata) GetSourceType
func (x *SourceMetadata) GetSourceType() SourceMetadata_SourceTypefunc (*SourceMetadata) ProtoMessage
func (*SourceMetadata) ProtoMessage()func (*SourceMetadata) ProtoReflect
func (x *SourceMetadata) ProtoReflect() protoreflect.Messagefunc (*SourceMetadata) Reset
func (x *SourceMetadata) Reset()func (*SourceMetadata) String
func (x *SourceMetadata) String() stringSourceMetadata_PluginInstanceActionSource
type SourceMetadata_PluginInstanceActionSource struct {
// Output only. The resource name of the source plugin instance.
// Format is
// `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
PluginInstance string `protobuf:"bytes,1,opt,name=plugin_instance,json=pluginInstance,proto3" json:"plugin_instance,omitempty"`
// Output only. The id of the plugin instance action.
ActionId string `protobuf:"bytes,2,opt,name=action_id,json=actionId,proto3" json:"action_id,omitempty"`
// contains filtered or unexported fields
}PluginInstanceActionSource represents the plugin instance action source.
func (*SourceMetadata_PluginInstanceActionSource) Descriptor
func (*SourceMetadata_PluginInstanceActionSource) Descriptor() ([]byte, []int)Deprecated: Use SourceMetadata_PluginInstanceActionSource.ProtoReflect.Descriptor instead.
func (*SourceMetadata_PluginInstanceActionSource) GetActionId
func (x *SourceMetadata_PluginInstanceActionSource) GetActionId() stringfunc (*SourceMetadata_PluginInstanceActionSource) GetPluginInstance
func (x *SourceMetadata_PluginInstanceActionSource) GetPluginInstance() stringfunc (*SourceMetadata_PluginInstanceActionSource) ProtoMessage
func (*SourceMetadata_PluginInstanceActionSource) ProtoMessage()func (*SourceMetadata_PluginInstanceActionSource) ProtoReflect
func (x *SourceMetadata_PluginInstanceActionSource) ProtoReflect() protoreflect.Messagefunc (*SourceMetadata_PluginInstanceActionSource) Reset
func (x *SourceMetadata_PluginInstanceActionSource) Reset()func (*SourceMetadata_PluginInstanceActionSource) String
func (x *SourceMetadata_PluginInstanceActionSource) String() stringSourceMetadata_PluginInstanceActionSource_
type SourceMetadata_PluginInstanceActionSource_ struct {
// Output only. The source of the resource is a plugin instance action.
PluginInstanceActionSource *SourceMetadata_PluginInstanceActionSource `protobuf:"bytes,1,opt,name=plugin_instance_action_source,json=pluginInstanceActionSource,proto3,oneof"`
}SourceMetadata_SourceType
type SourceMetadata_SourceType int32The possible types of the source.
SourceMetadata_SOURCE_TYPE_UNSPECIFIED, SourceMetadata_PLUGIN
const (
// Source type not specified.
SourceMetadata_SOURCE_TYPE_UNSPECIFIED SourceMetadata_SourceType = 0
// Source type plugin.
SourceMetadata_PLUGIN SourceMetadata_SourceType = 1
)func (SourceMetadata_SourceType) Descriptor
func (SourceMetadata_SourceType) Descriptor() protoreflect.EnumDescriptorfunc (SourceMetadata_SourceType) Enum
func (x SourceMetadata_SourceType) Enum() *SourceMetadata_SourceTypefunc (SourceMetadata_SourceType) EnumDescriptor
func (SourceMetadata_SourceType) EnumDescriptor() ([]byte, []int)Deprecated: Use SourceMetadata_SourceType.Descriptor instead.
func (SourceMetadata_SourceType) Number
func (x SourceMetadata_SourceType) Number() protoreflect.EnumNumberfunc (SourceMetadata_SourceType) String
func (x SourceMetadata_SourceType) String() stringfunc (SourceMetadata_SourceType) Type
func (SourceMetadata_SourceType) Type() protoreflect.EnumTypeSpec
type Spec struct {
// Identifier. The name of the spec.
//
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The display name of the spec.
// This can contain the file name of the spec.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Required. The type of spec.
// The value should be one of the allowed values defined for
// `projects/{project}/locations/{location}/attributes/system-spec-type`
// attribute.
// The number of values for this attribute will be based on the
// cardinality of the attribute. The same can be retrieved via GetAttribute
// API.
//
// Note, this field is mandatory if content is provided.
SpecType *AttributeValues `protobuf:"bytes,3,opt,name=spec_type,json=specType,proto3" json:"spec_type,omitempty"`
// Optional. Input only. The contents of the uploaded spec.
Contents *SpecContents `protobuf:"bytes,4,opt,name=contents,proto3" json:"contents,omitempty"`
// Output only. Details parsed from the spec.
Details *SpecDetails `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"`
// Optional. The URI of the spec source in case file is uploaded
// from an external version control system.
SourceUri string `protobuf:"bytes,6,opt,name=source_uri,json=sourceUri,proto3" json:"source_uri,omitempty"`
// Output only. The time at which the spec was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time at which the spec was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. The lint response for the spec.
LintResponse *LintResponse `protobuf:"bytes,9,opt,name=lint_response,json=lintResponse,proto3" json:"lint_response,omitempty"`
// Optional. The list of user defined attributes associated with the spec.
// The key is the attribute name. It will be of the format:
// `projects/{project}/locations/{location}/attributes/{attribute}`.
// The value is the attribute values associated with the resource.
Attributes map[string]*AttributeValues `protobuf:"bytes,10,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. The documentation of the spec.
// For OpenAPI spec, this will be populated from `externalDocs` in OpenAPI
// spec.
Documentation *Documentation `protobuf:"bytes,11,opt,name=documentation,proto3" json:"documentation,omitempty"`
// Optional. Input only. Enum specifying the parsing mode for OpenAPI
// Specification (OAS) parsing.
ParsingMode Spec_ParsingMode `protobuf:"varint,12,opt,name=parsing_mode,json=parsingMode,proto3,enum=google.cloud.apihub.v1.Spec_ParsingMode" json:"parsing_mode,omitempty"`
// Output only. The list of sources and metadata from the sources of the spec.
SourceMetadata []*SourceMetadata `protobuf:"bytes,13,rep,name=source_metadata,json=sourceMetadata,proto3" json:"source_metadata,omitempty"`
// contains filtered or unexported fields
}Represents a spec associated with an API version in the API Hub. Note that specs of various types can be uploaded, however parsing of details is supported for OpenAPI spec currently.
func (*Spec) Descriptor
Deprecated: Use Spec.ProtoReflect.Descriptor instead.
func (*Spec) GetAttributes
func (x *Spec) GetAttributes() map[string]*AttributeValuesfunc (*Spec) GetContents
func (x *Spec) GetContents() *SpecContentsfunc (*Spec) GetCreateTime
func (x *Spec) GetCreateTime() *timestamppb.Timestampfunc (*Spec) GetDetails
func (x *Spec) GetDetails() *SpecDetailsfunc (*Spec) GetDisplayName
func (*Spec) GetDocumentation
func (x *Spec) GetDocumentation() *Documentationfunc (*Spec) GetLintResponse
func (x *Spec) GetLintResponse() *LintResponsefunc (*Spec) GetName
func (*Spec) GetParsingMode
func (x *Spec) GetParsingMode() Spec_ParsingModefunc (*Spec) GetSourceMetadata
func (x *Spec) GetSourceMetadata() []*SourceMetadatafunc (*Spec) GetSourceUri
func (*Spec) GetSpecType
func (x *Spec) GetSpecType() *AttributeValuesfunc (*Spec) GetUpdateTime
func (x *Spec) GetUpdateTime() *timestamppb.Timestampfunc (*Spec) ProtoMessage
func (*Spec) ProtoMessage()func (*Spec) ProtoReflect
func (x *Spec) ProtoReflect() protoreflect.Messagefunc (*Spec) Reset
func (x *Spec) Reset()func (*Spec) String
SpecContents
type SpecContents struct {
// Required. The contents of the spec.
Contents []byte `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"`
// Required. The mime type of the content for example application/json,
// application/yaml, application/wsdl etc.
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// contains filtered or unexported fields
}The spec contents.
func (*SpecContents) Descriptor
func (*SpecContents) Descriptor() ([]byte, []int)Deprecated: Use SpecContents.ProtoReflect.Descriptor instead.
func (*SpecContents) GetContents
func (x *SpecContents) GetContents() []bytefunc (*SpecContents) GetMimeType
func (x *SpecContents) GetMimeType() stringfunc (*SpecContents) ProtoMessage
func (*SpecContents) ProtoMessage()func (*SpecContents) ProtoReflect
func (x *SpecContents) ProtoReflect() protoreflect.Messagefunc (*SpecContents) Reset
func (x *SpecContents) Reset()func (*SpecContents) String
func (x *SpecContents) String() stringSpecDetails
type SpecDetails struct {
// Types that are assignable to Details:
//
// *SpecDetails_OpenApiSpecDetails
Details isSpecDetails_Details `protobuf_oneof:"details"`
// Output only. The description of the spec.
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// contains filtered or unexported fields
}SpecDetails contains the details parsed from supported spec types.
func (*SpecDetails) Descriptor
func (*SpecDetails) Descriptor() ([]byte, []int)Deprecated: Use SpecDetails.ProtoReflect.Descriptor instead.
func (*SpecDetails) GetDescription
func (x *SpecDetails) GetDescription() stringfunc (*SpecDetails) GetDetails
func (m *SpecDetails) GetDetails() isSpecDetails_Detailsfunc (*SpecDetails) GetOpenApiSpecDetails
func (x *SpecDetails) GetOpenApiSpecDetails() *OpenApiSpecDetailsfunc (*SpecDetails) ProtoMessage
func (*SpecDetails) ProtoMessage()func (*SpecDetails) ProtoReflect
func (x *SpecDetails) ProtoReflect() protoreflect.Messagefunc (*SpecDetails) Reset
func (x *SpecDetails) Reset()func (*SpecDetails) String
func (x *SpecDetails) String() stringSpecDetails_OpenApiSpecDetails
type SpecDetails_OpenApiSpecDetails struct {
// Output only. Additional details apart from `OperationDetails` parsed from
// an OpenAPI spec. The OperationDetails parsed from the spec can be
// obtained by using
// [ListAPIOperations][google.cloud.apihub.v1.ApiHub.ListApiOperations]
// method.
OpenApiSpecDetails *OpenApiSpecDetails `protobuf:"bytes,2,opt,name=open_api_spec_details,json=openApiSpecDetails,proto3,oneof"`
}SpecMetadata
type SpecMetadata struct {
// Required. The spec resource to be pushed to Hub's collect layer. The ID of
// the spec will be generated by Hub.
Spec *Spec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
// Optional. The unique identifier of the spec in the system where it was
// originally created.
OriginalId string `protobuf:"bytes,2,opt,name=original_id,json=originalId,proto3" json:"original_id,omitempty"`
// Optional. Timestamp indicating when the spec was created at the source.
OriginalCreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=original_create_time,json=originalCreateTime,proto3" json:"original_create_time,omitempty"`
// Required. Timestamp indicating when the spec was last updated at the
// source.
OriginalUpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=original_update_time,json=originalUpdateTime,proto3" json:"original_update_time,omitempty"`
// contains filtered or unexported fields
}The metadata associated with a spec of the API version.
func (*SpecMetadata) Descriptor
func (*SpecMetadata) Descriptor() ([]byte, []int)Deprecated: Use SpecMetadata.ProtoReflect.Descriptor instead.
func (*SpecMetadata) GetOriginalCreateTime
func (x *SpecMetadata) GetOriginalCreateTime() *timestamppb.Timestampfunc (*SpecMetadata) GetOriginalId
func (x *SpecMetadata) GetOriginalId() stringfunc (*SpecMetadata) GetOriginalUpdateTime
func (x *SpecMetadata) GetOriginalUpdateTime() *timestamppb.Timestampfunc (*SpecMetadata) GetSpec
func (x *SpecMetadata) GetSpec() *Specfunc (*SpecMetadata) ProtoMessage
func (*SpecMetadata) ProtoMessage()func (*SpecMetadata) ProtoReflect
func (x *SpecMetadata) ProtoReflect() protoreflect.Messagefunc (*SpecMetadata) Reset
func (x *SpecMetadata) Reset()func (*SpecMetadata) String
func (x *SpecMetadata) String() stringSpec_ParsingMode
type Spec_ParsingMode int32Specifies the parsing mode for API specifications during creation and update.
RELAXED: Parsing errors in the specification content do not fail the API call.STRICT: Parsing errors in the specification content result in failure of the API call. If not specified, defaults toRELAXED.
Spec_PARSING_MODE_UNSPECIFIED, Spec_RELAXED, Spec_STRICT
const (
// Defaults to `RELAXED`.
Spec_PARSING_MODE_UNSPECIFIED Spec_ParsingMode = 0
// Parsing of the Spec on create and update is relaxed, meaning that
// parsing errors the spec contents will not fail the API call.
Spec_RELAXED Spec_ParsingMode = 1
// Parsing of the Spec on create and update is strict, meaning that
// parsing errors in the spec contents will fail the API call.
Spec_STRICT Spec_ParsingMode = 2
)func (Spec_ParsingMode) Descriptor
func (Spec_ParsingMode) Descriptor() protoreflect.EnumDescriptorfunc (Spec_ParsingMode) Enum
func (x Spec_ParsingMode) Enum() *Spec_ParsingModefunc (Spec_ParsingMode) EnumDescriptor
func (Spec_ParsingMode) EnumDescriptor() ([]byte, []int)Deprecated: Use Spec_ParsingMode.Descriptor instead.
func (Spec_ParsingMode) Number
func (x Spec_ParsingMode) Number() protoreflect.EnumNumberfunc (Spec_ParsingMode) String
func (x Spec_ParsingMode) String() stringfunc (Spec_ParsingMode) Type
func (Spec_ParsingMode) Type() protoreflect.EnumTypeStyleGuide
type StyleGuide struct {
// Identifier. The name of the style guide.
//
// Format:
// `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Target linter for the style guide.
Linter Linter `protobuf:"varint,2,opt,name=linter,proto3,enum=google.cloud.apihub.v1.Linter" json:"linter,omitempty"`
// Required. Input only. The contents of the uploaded style guide.
Contents *StyleGuideContents `protobuf:"bytes,3,opt,name=contents,proto3" json:"contents,omitempty"`
// contains filtered or unexported fields
}Represents a singleton style guide resource to be used for linting Open API specs.
func (*StyleGuide) Descriptor
func (*StyleGuide) Descriptor() ([]byte, []int)Deprecated: Use StyleGuide.ProtoReflect.Descriptor instead.
func (*StyleGuide) GetContents
func (x *StyleGuide) GetContents() *StyleGuideContentsfunc (*StyleGuide) GetLinter
func (x *StyleGuide) GetLinter() Linterfunc (*StyleGuide) GetName
func (x *StyleGuide) GetName() stringfunc (*StyleGuide) ProtoMessage
func (*StyleGuide) ProtoMessage()func (*StyleGuide) ProtoReflect
func (x *StyleGuide) ProtoReflect() protoreflect.Messagefunc (*StyleGuide) Reset
func (x *StyleGuide) Reset()func (*StyleGuide) String
func (x *StyleGuide) String() stringStyleGuideContents
type StyleGuideContents struct {
// Required. The contents of the style guide.
Contents []byte `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"`
// Required. The mime type of the content.
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// contains filtered or unexported fields
}The style guide contents.
func (*StyleGuideContents) Descriptor
func (*StyleGuideContents) Descriptor() ([]byte, []int)Deprecated: Use StyleGuideContents.ProtoReflect.Descriptor instead.
func (*StyleGuideContents) GetContents
func (x *StyleGuideContents) GetContents() []bytefunc (*StyleGuideContents) GetMimeType
func (x *StyleGuideContents) GetMimeType() stringfunc (*StyleGuideContents) ProtoMessage
func (*StyleGuideContents) ProtoMessage()func (*StyleGuideContents) ProtoReflect
func (x *StyleGuideContents) ProtoReflect() protoreflect.Messagefunc (*StyleGuideContents) Reset
func (x *StyleGuideContents) Reset()func (*StyleGuideContents) String
func (x *StyleGuideContents) String() stringUnimplementedApiHubCollectServer
type UnimplementedApiHubCollectServer struct {
}UnimplementedApiHubCollectServer should be embedded to have forward compatible implementations.
func (UnimplementedApiHubCollectServer) CollectApiData
func (UnimplementedApiHubCollectServer) CollectApiData(context.Context, *CollectApiDataRequest) (*longrunningpb.Operation, error)UnimplementedApiHubCurateServer
type UnimplementedApiHubCurateServer struct {
}UnimplementedApiHubCurateServer should be embedded to have forward compatible implementations.
func (UnimplementedApiHubCurateServer) CreateCuration
func (UnimplementedApiHubCurateServer) CreateCuration(context.Context, *CreateCurationRequest) (*Curation, error)func (UnimplementedApiHubCurateServer) DeleteCuration
func (UnimplementedApiHubCurateServer) DeleteCuration(context.Context, *DeleteCurationRequest) (*emptypb.Empty, error)func (UnimplementedApiHubCurateServer) GetCuration
func (UnimplementedApiHubCurateServer) GetCuration(context.Context, *GetCurationRequest) (*Curation, error)func (UnimplementedApiHubCurateServer) ListCurations
func (UnimplementedApiHubCurateServer) ListCurations(context.Context, *ListCurationsRequest) (*ListCurationsResponse, error)func (UnimplementedApiHubCurateServer) UpdateCuration
func (UnimplementedApiHubCurateServer) UpdateCuration(context.Context, *UpdateCurationRequest) (*Curation, error)UnimplementedApiHubDependenciesServer
type UnimplementedApiHubDependenciesServer struct {
}UnimplementedApiHubDependenciesServer should be embedded to have forward compatible implementations.
func (UnimplementedApiHubDependenciesServer) CreateDependency
func (UnimplementedApiHubDependenciesServer) CreateDependency(context.Context, *CreateDependencyRequest) (*Dependency, error)func (UnimplementedApiHubDependenciesServer) DeleteDependency
func (UnimplementedApiHubDependenciesServer) DeleteDependency(context.Context, *DeleteDependencyRequest) (*emptypb.Empty, error)func (UnimplementedApiHubDependenciesServer) GetDependency
func (UnimplementedApiHubDependenciesServer) GetDependency(context.Context, *GetDependencyRequest) (*Dependency, error)func (UnimplementedApiHubDependenciesServer) ListDependencies
func (UnimplementedApiHubDependenciesServer) ListDependencies(context.Context, *ListDependenciesRequest) (*ListDependenciesResponse, error)func (UnimplementedApiHubDependenciesServer) UpdateDependency
func (UnimplementedApiHubDependenciesServer) UpdateDependency(context.Context, *UpdateDependencyRequest) (*Dependency, error)UnimplementedApiHubDiscoveryServer
type UnimplementedApiHubDiscoveryServer struct {
}UnimplementedApiHubDiscoveryServer should be embedded to have forward compatible implementations.
func (UnimplementedApiHubDiscoveryServer) GetDiscoveredApiObservation
func (UnimplementedApiHubDiscoveryServer) GetDiscoveredApiObservation(context.Context, *GetDiscoveredApiObservationRequest) (*DiscoveredApiObservation, error)func (UnimplementedApiHubDiscoveryServer) GetDiscoveredApiOperation
func (UnimplementedApiHubDiscoveryServer) GetDiscoveredApiOperation(context.Context, *GetDiscoveredApiOperationRequest) (*DiscoveredApiOperation, error)func (UnimplementedApiHubDiscoveryServer) ListDiscoveredApiObservations
func (UnimplementedApiHubDiscoveryServer) ListDiscoveredApiObservations(context.Context, *ListDiscoveredApiObservationsRequest) (*ListDiscoveredApiObservationsResponse, error)func (UnimplementedApiHubDiscoveryServer) ListDiscoveredApiOperations
func (UnimplementedApiHubDiscoveryServer) ListDiscoveredApiOperations(context.Context, *ListDiscoveredApiOperationsRequest) (*ListDiscoveredApiOperationsResponse, error)UnimplementedApiHubPluginServer
type UnimplementedApiHubPluginServer struct {
}UnimplementedApiHubPluginServer should be embedded to have forward compatible implementations.
func (UnimplementedApiHubPluginServer) CreatePlugin
func (UnimplementedApiHubPluginServer) CreatePlugin(context.Context, *CreatePluginRequest) (*Plugin, error)func (UnimplementedApiHubPluginServer) CreatePluginInstance
func (UnimplementedApiHubPluginServer) CreatePluginInstance(context.Context, *CreatePluginInstanceRequest) (*longrunningpb.Operation, error)func (UnimplementedApiHubPluginServer) DeletePlugin
func (UnimplementedApiHubPluginServer) DeletePlugin(context.Context, *DeletePluginRequest) (*longrunningpb.Operation, error)func (UnimplementedApiHubPluginServer) DeletePluginInstance
func (UnimplementedApiHubPluginServer) DeletePluginInstance(context.Context, *DeletePluginInstanceRequest) (*longrunningpb.Operation, error)func (UnimplementedApiHubPluginServer) DisablePlugin
func (UnimplementedApiHubPluginServer) DisablePlugin(context.Context, *DisablePluginRequest) (*Plugin, error)func (UnimplementedApiHubPluginServer) DisablePluginInstanceAction
func (UnimplementedApiHubPluginServer) DisablePluginInstanceAction(context.Context, *DisablePluginInstanceActionRequest) (*longrunningpb.Operation, error)func (UnimplementedApiHubPluginServer) EnablePlugin
func (UnimplementedApiHubPluginServer) EnablePlugin(context.Context, *EnablePluginRequest) (*Plugin, error)func (UnimplementedApiHubPluginServer) EnablePluginInstanceAction
func (UnimplementedApiHubPluginServer) EnablePluginInstanceAction(context.Context, *EnablePluginInstanceActionRequest) (*longrunningpb.Operation, error)func (UnimplementedApiHubPluginServer) ExecutePluginInstanceAction
func (UnimplementedApiHubPluginServer) ExecutePluginInstanceAction(context.Context, *ExecutePluginInstanceActionRequest) (*longrunningpb.Operation, error)func (UnimplementedApiHubPluginServer) GetPlugin
func (UnimplementedApiHubPluginServer) GetPlugin(context.Context, *GetPluginRequest) (*Plugin, error)func (UnimplementedApiHubPluginServer) GetPluginInstance
func (UnimplementedApiHubPluginServer) GetPluginInstance(context.Context, *GetPluginInstanceRequest) (*PluginInstance, error)func (UnimplementedApiHubPluginServer) ListPluginInstances
func (UnimplementedApiHubPluginServer) ListPluginInstances(context.Context, *ListPluginInstancesRequest) (*ListPluginInstancesResponse, error)func (UnimplementedApiHubPluginServer) ListPlugins
func (UnimplementedApiHubPluginServer) ListPlugins(context.Context, *ListPluginsRequest) (*ListPluginsResponse, error)func (UnimplementedApiHubPluginServer) UpdatePluginInstance
func (UnimplementedApiHubPluginServer) UpdatePluginInstance(context.Context, *UpdatePluginInstanceRequest) (*PluginInstance, error)UnimplementedApiHubServer
type UnimplementedApiHubServer struct {
}UnimplementedApiHubServer should be embedded to have forward compatible implementations.
func (UnimplementedApiHubServer) CreateApi
func (UnimplementedApiHubServer) CreateApi(context.Context, *CreateApiRequest) (*Api, error)func (UnimplementedApiHubServer) CreateApiOperation
func (UnimplementedApiHubServer) CreateApiOperation(context.Context, *CreateApiOperationRequest) (*ApiOperation, error)func (UnimplementedApiHubServer) CreateAttribute
func (UnimplementedApiHubServer) CreateAttribute(context.Context, *CreateAttributeRequest) (*Attribute, error)func (UnimplementedApiHubServer) CreateDeployment
func (UnimplementedApiHubServer) CreateDeployment(context.Context, *CreateDeploymentRequest) (*Deployment, error)func (UnimplementedApiHubServer) CreateExternalApi
func (UnimplementedApiHubServer) CreateExternalApi(context.Context, *CreateExternalApiRequest) (*ExternalApi, error)func (UnimplementedApiHubServer) CreateSpec
func (UnimplementedApiHubServer) CreateSpec(context.Context, *CreateSpecRequest) (*Spec, error)func (UnimplementedApiHubServer) CreateVersion
func (UnimplementedApiHubServer) CreateVersion(context.Context, *CreateVersionRequest) (*Version, error)func (UnimplementedApiHubServer) DeleteApi
func (UnimplementedApiHubServer) DeleteApi(context.Context, *DeleteApiRequest) (*emptypb.Empty, error)func (UnimplementedApiHubServer) DeleteApiOperation
func (UnimplementedApiHubServer) DeleteApiOperation(context.Context, *DeleteApiOperationRequest) (*emptypb.Empty, error)func (UnimplementedApiHubServer) DeleteAttribute
func (UnimplementedApiHubServer) DeleteAttribute(context.Context, *DeleteAttributeRequest) (*emptypb.Empty, error)func (UnimplementedApiHubServer) DeleteDeployment
func (UnimplementedApiHubServer) DeleteDeployment(context.Context, *DeleteDeploymentRequest) (*emptypb.Empty, error)func (UnimplementedApiHubServer) DeleteExternalApi
func (UnimplementedApiHubServer) DeleteExternalApi(context.Context, *DeleteExternalApiRequest) (*emptypb.Empty, error)func (UnimplementedApiHubServer) DeleteSpec
func (UnimplementedApiHubServer) DeleteSpec(context.Context, *DeleteSpecRequest) (*emptypb.Empty, error)func (UnimplementedApiHubServer) DeleteVersion
func (UnimplementedApiHubServer) DeleteVersion(context.Context, *DeleteVersionRequest) (*emptypb.Empty, error)func (UnimplementedApiHubServer) GetApi
func (UnimplementedApiHubServer) GetApi(context.Context, *GetApiRequest) (*Api, error)func (UnimplementedApiHubServer) GetApiOperation
func (UnimplementedApiHubServer) GetApiOperation(context.Context, *GetApiOperationRequest) (*ApiOperation, error)func (UnimplementedApiHubServer) GetAttribute
func (UnimplementedApiHubServer) GetAttribute(context.Context, *GetAttributeRequest) (*Attribute, error)func (UnimplementedApiHubServer) GetDefinition
func (UnimplementedApiHubServer) GetDefinition(context.Context, *GetDefinitionRequest) (*Definition, error)func (UnimplementedApiHubServer) GetDeployment
func (UnimplementedApiHubServer) GetDeployment(context.Context, *GetDeploymentRequest) (*Deployment, error)func (UnimplementedApiHubServer) GetExternalApi
func (UnimplementedApiHubServer) GetExternalApi(context.Context, *GetExternalApiRequest) (*ExternalApi, error)func (UnimplementedApiHubServer) GetSpec
func (UnimplementedApiHubServer) GetSpec(context.Context, *GetSpecRequest) (*Spec, error)func (UnimplementedApiHubServer) GetSpecContents
func (UnimplementedApiHubServer) GetSpecContents(context.Context, *GetSpecContentsRequest) (*SpecContents, error)func (UnimplementedApiHubServer) GetVersion
func (UnimplementedApiHubServer) GetVersion(context.Context, *GetVersionRequest) (*Version, error)func (UnimplementedApiHubServer) ListApiOperations
func (UnimplementedApiHubServer) ListApiOperations(context.Context, *ListApiOperationsRequest) (*ListApiOperationsResponse, error)func (UnimplementedApiHubServer) ListApis
func (UnimplementedApiHubServer) ListApis(context.Context, *ListApisRequest) (*ListApisResponse, error)func (UnimplementedApiHubServer) ListAttributes
func (UnimplementedApiHubServer) ListAttributes(context.Context, *ListAttributesRequest) (*ListAttributesResponse, error)func (UnimplementedApiHubServer) ListDeployments
func (UnimplementedApiHubServer) ListDeployments(context.Context, *ListDeploymentsRequest) (*ListDeploymentsResponse, error)func (UnimplementedApiHubServer) ListExternalApis
func (UnimplementedApiHubServer) ListExternalApis(context.Context, *ListExternalApisRequest) (*ListExternalApisResponse, error)func (UnimplementedApiHubServer) ListSpecs
func (UnimplementedApiHubServer) ListSpecs(context.Context, *ListSpecsRequest) (*ListSpecsResponse, error)func (UnimplementedApiHubServer) ListVersions
func (UnimplementedApiHubServer) ListVersions(context.Context, *ListVersionsRequest) (*ListVersionsResponse, error)func (UnimplementedApiHubServer) SearchResources
func (UnimplementedApiHubServer) SearchResources(context.Context, *SearchResourcesRequest) (*SearchResourcesResponse, error)func (UnimplementedApiHubServer) UpdateApi
func (UnimplementedApiHubServer) UpdateApi(context.Context, *UpdateApiRequest) (*Api, error)func (UnimplementedApiHubServer) UpdateApiOperation
func (UnimplementedApiHubServer) UpdateApiOperation(context.Context, *UpdateApiOperationRequest) (*ApiOperation, error)func (UnimplementedApiHubServer) UpdateAttribute
func (UnimplementedApiHubServer) UpdateAttribute(context.Context, *UpdateAttributeRequest) (*Attribute, error)func (UnimplementedApiHubServer) UpdateDeployment
func (UnimplementedApiHubServer) UpdateDeployment(context.Context, *UpdateDeploymentRequest) (*Deployment, error)func (UnimplementedApiHubServer) UpdateExternalApi
func (UnimplementedApiHubServer) UpdateExternalApi(context.Context, *UpdateExternalApiRequest) (*ExternalApi, error)func (UnimplementedApiHubServer) UpdateSpec
func (UnimplementedApiHubServer) UpdateSpec(context.Context, *UpdateSpecRequest) (*Spec, error)func (UnimplementedApiHubServer) UpdateVersion
func (UnimplementedApiHubServer) UpdateVersion(context.Context, *UpdateVersionRequest) (*Version, error)UnimplementedHostProjectRegistrationServiceServer
type UnimplementedHostProjectRegistrationServiceServer struct {
}UnimplementedHostProjectRegistrationServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedHostProjectRegistrationServiceServer) CreateHostProjectRegistration
func (UnimplementedHostProjectRegistrationServiceServer) CreateHostProjectRegistration(context.Context, *CreateHostProjectRegistrationRequest) (*HostProjectRegistration, error)func (UnimplementedHostProjectRegistrationServiceServer) GetHostProjectRegistration
func (UnimplementedHostProjectRegistrationServiceServer) GetHostProjectRegistration(context.Context, *GetHostProjectRegistrationRequest) (*HostProjectRegistration, error)func (UnimplementedHostProjectRegistrationServiceServer) ListHostProjectRegistrations
func (UnimplementedHostProjectRegistrationServiceServer) ListHostProjectRegistrations(context.Context, *ListHostProjectRegistrationsRequest) (*ListHostProjectRegistrationsResponse, error)UnimplementedLintingServiceServer
type UnimplementedLintingServiceServer struct {
}UnimplementedLintingServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedLintingServiceServer) GetStyleGuide
func (UnimplementedLintingServiceServer) GetStyleGuide(context.Context, *GetStyleGuideRequest) (*StyleGuide, error)func (UnimplementedLintingServiceServer) GetStyleGuideContents
func (UnimplementedLintingServiceServer) GetStyleGuideContents(context.Context, *GetStyleGuideContentsRequest) (*StyleGuideContents, error)func (UnimplementedLintingServiceServer) LintSpec
func (UnimplementedLintingServiceServer) LintSpec(context.Context, *LintSpecRequest) (*emptypb.Empty, error)func (UnimplementedLintingServiceServer) UpdateStyleGuide
func (UnimplementedLintingServiceServer) UpdateStyleGuide(context.Context, *UpdateStyleGuideRequest) (*StyleGuide, error)UnimplementedProvisioningServer
type UnimplementedProvisioningServer struct {
}UnimplementedProvisioningServer should be embedded to have forward compatible implementations.
func (UnimplementedProvisioningServer) CreateApiHubInstance
func (UnimplementedProvisioningServer) CreateApiHubInstance(context.Context, *CreateApiHubInstanceRequest) (*longrunningpb.Operation, error)func (UnimplementedProvisioningServer) DeleteApiHubInstance
func (UnimplementedProvisioningServer) DeleteApiHubInstance(context.Context, *DeleteApiHubInstanceRequest) (*longrunningpb.Operation, error)func (UnimplementedProvisioningServer) GetApiHubInstance
func (UnimplementedProvisioningServer) GetApiHubInstance(context.Context, *GetApiHubInstanceRequest) (*ApiHubInstance, error)func (UnimplementedProvisioningServer) LookupApiHubInstance
func (UnimplementedProvisioningServer) LookupApiHubInstance(context.Context, *LookupApiHubInstanceRequest) (*LookupApiHubInstanceResponse, error)UnimplementedRuntimeProjectAttachmentServiceServer
type UnimplementedRuntimeProjectAttachmentServiceServer struct {
}UnimplementedRuntimeProjectAttachmentServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedRuntimeProjectAttachmentServiceServer) CreateRuntimeProjectAttachment
func (UnimplementedRuntimeProjectAttachmentServiceServer) CreateRuntimeProjectAttachment(context.Context, *CreateRuntimeProjectAttachmentRequest) (*RuntimeProjectAttachment, error)func (UnimplementedRuntimeProjectAttachmentServiceServer) DeleteRuntimeProjectAttachment
func (UnimplementedRuntimeProjectAttachmentServiceServer) DeleteRuntimeProjectAttachment(context.Context, *DeleteRuntimeProjectAttachmentRequest) (*emptypb.Empty, error)func (UnimplementedRuntimeProjectAttachmentServiceServer) GetRuntimeProjectAttachment
func (UnimplementedRuntimeProjectAttachmentServiceServer) GetRuntimeProjectAttachment(context.Context, *GetRuntimeProjectAttachmentRequest) (*RuntimeProjectAttachment, error)func (UnimplementedRuntimeProjectAttachmentServiceServer) ListRuntimeProjectAttachments
func (UnimplementedRuntimeProjectAttachmentServiceServer) ListRuntimeProjectAttachments(context.Context, *ListRuntimeProjectAttachmentsRequest) (*ListRuntimeProjectAttachmentsResponse, error)func (UnimplementedRuntimeProjectAttachmentServiceServer) LookupRuntimeProjectAttachment
func (UnimplementedRuntimeProjectAttachmentServiceServer) LookupRuntimeProjectAttachment(context.Context, *LookupRuntimeProjectAttachmentRequest) (*LookupRuntimeProjectAttachmentResponse, error)UnsafeApiHubCollectServer
type UnsafeApiHubCollectServer interface {
// contains filtered or unexported methods
}UnsafeApiHubCollectServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ApiHubCollectServer will result in compilation errors.
UnsafeApiHubCurateServer
type UnsafeApiHubCurateServer interface {
// contains filtered or unexported methods
}UnsafeApiHubCurateServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ApiHubCurateServer will result in compilation errors.
UnsafeApiHubDependenciesServer
type UnsafeApiHubDependenciesServer interface {
// contains filtered or unexported methods
}UnsafeApiHubDependenciesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ApiHubDependenciesServer will result in compilation errors.
UnsafeApiHubDiscoveryServer
type UnsafeApiHubDiscoveryServer interface {
// contains filtered or unexported methods
}UnsafeApiHubDiscoveryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ApiHubDiscoveryServer will result in compilation errors.
UnsafeApiHubPluginServer
type UnsafeApiHubPluginServer interface {
// contains filtered or unexported methods
}UnsafeApiHubPluginServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ApiHubPluginServer will result in compilation errors.
UnsafeApiHubServer
type UnsafeApiHubServer interface {
// contains filtered or unexported methods
}UnsafeApiHubServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ApiHubServer will result in compilation errors.
UnsafeHostProjectRegistrationServiceServer
type UnsafeHostProjectRegistrationServiceServer interface {
// contains filtered or unexported methods
}UnsafeHostProjectRegistrationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HostProjectRegistrationServiceServer will result in compilation errors.
UnsafeLintingServiceServer
type UnsafeLintingServiceServer interface {
// contains filtered or unexported methods
}UnsafeLintingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LintingServiceServer will result in compilation errors.
UnsafeProvisioningServer
type UnsafeProvisioningServer interface {
// contains filtered or unexported methods
}UnsafeProvisioningServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProvisioningServer will result in compilation errors.
UnsafeRuntimeProjectAttachmentServiceServer
type UnsafeRuntimeProjectAttachmentServiceServer interface {
// contains filtered or unexported methods
}UnsafeRuntimeProjectAttachmentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RuntimeProjectAttachmentServiceServer will result in compilation errors.
UpdateApiOperationRequest
type UpdateApiOperationRequest struct {
// 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}`
ApiOperation *ApiOperation `protobuf:"bytes,1,opt,name=api_operation,json=apiOperation,proto3" json:"api_operation,omitempty"`
// Required. The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}The [UpdateApiOperation][google.cloud.apihub.v1.ApiHub.UpdateApiOperation] method's request.
func (*UpdateApiOperationRequest) Descriptor
func (*UpdateApiOperationRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateApiOperationRequest.ProtoReflect.Descriptor instead.
func (*UpdateApiOperationRequest) GetApiOperation
func (x *UpdateApiOperationRequest) GetApiOperation() *ApiOperationfunc (*UpdateApiOperationRequest) GetUpdateMask
func (x *UpdateApiOperationRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateApiOperationRequest) ProtoMessage
func (*UpdateApiOperationRequest) ProtoMessage()func (*UpdateApiOperationRequest) ProtoReflect
func (x *UpdateApiOperationRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateApiOperationRequest) Reset
func (x *UpdateApiOperationRequest) Reset()func (*UpdateApiOperationRequest) String
func (x *UpdateApiOperationRequest) String() stringUpdateApiRequest
type UpdateApiRequest struct {
// 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}`
Api *Api `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"`
// Required. The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}The [UpdateApi][google.cloud.apihub.v1.ApiHub.UpdateApi] method's request.
func (*UpdateApiRequest) Descriptor
func (*UpdateApiRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateApiRequest.ProtoReflect.Descriptor instead.
func (*UpdateApiRequest) GetApi
func (x *UpdateApiRequest) GetApi() *Apifunc (*UpdateApiRequest) GetUpdateMask
func (x *UpdateApiRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateApiRequest) ProtoMessage
func (*UpdateApiRequest) ProtoMessage()func (*UpdateApiRequest) ProtoReflect
func (x *UpdateApiRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateApiRequest) Reset
func (x *UpdateApiRequest) Reset()func (*UpdateApiRequest) String
func (x *UpdateApiRequest) String() stringUpdateAttributeRequest
type UpdateAttributeRequest struct {
// Required. The attribute to update.
//
// The attribute's `name` field is used to identify the attribute to update.
// Format:
// `projects/{project}/locations/{location}/attributes/{attribute}`
Attribute *Attribute `protobuf:"bytes,1,opt,name=attribute,proto3" json:"attribute,omitempty"`
// Required. The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}The [UpdateAttribute][google.cloud.apihub.v1.ApiHub.UpdateAttribute] method's request.
func (*UpdateAttributeRequest) Descriptor
func (*UpdateAttributeRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateAttributeRequest.ProtoReflect.Descriptor instead.
func (*UpdateAttributeRequest) GetAttribute
func (x *UpdateAttributeRequest) GetAttribute() *Attributefunc (*UpdateAttributeRequest) GetUpdateMask
func (x *UpdateAttributeRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateAttributeRequest) ProtoMessage
func (*UpdateAttributeRequest) ProtoMessage()func (*UpdateAttributeRequest) ProtoReflect
func (x *UpdateAttributeRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateAttributeRequest) Reset
func (x *UpdateAttributeRequest) Reset()func (*UpdateAttributeRequest) String
func (x *UpdateAttributeRequest) String() stringUpdateCurationRequest
type UpdateCurationRequest struct {
// Required. The curation resource to update.
//
// The curation resource's `name` field is used to identify the curation
// resource to update.
// Format: `projects/{project}/locations/{location}/curations/{curation}`
Curation *Curation `protobuf:"bytes,1,opt,name=curation,proto3" json:"curation,omitempty"`
// Optional. The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}The [UpdateCuration][ApiHub.UpdateCuration] method's request.
func (*UpdateCurationRequest) Descriptor
func (*UpdateCurationRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateCurationRequest.ProtoReflect.Descriptor instead.
func (*UpdateCurationRequest) GetCuration
func (x *UpdateCurationRequest) GetCuration() *Curationfunc (*UpdateCurationRequest) GetUpdateMask
func (x *UpdateCurationRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateCurationRequest) ProtoMessage
func (*UpdateCurationRequest) ProtoMessage()func (*UpdateCurationRequest) ProtoReflect
func (x *UpdateCurationRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateCurationRequest) Reset
func (x *UpdateCurationRequest) Reset()func (*UpdateCurationRequest) String
func (x *UpdateCurationRequest) String() stringUpdateDependencyRequest
type UpdateDependencyRequest struct {
// 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}`
Dependency *Dependency `protobuf:"bytes,1,opt,name=dependency,proto3" json:"dependency,omitempty"`
// Required. The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}The [UpdateDependency][google.cloud.apihub.v1.ApiHubDependencies.UpdateDependency] method's request.
func (*UpdateDependencyRequest) Descriptor
func (*UpdateDependencyRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateDependencyRequest.ProtoReflect.Descriptor instead.
func (*UpdateDependencyRequest) GetDependency
func (x *UpdateDependencyRequest) GetDependency() *Dependencyfunc (*UpdateDependencyRequest) GetUpdateMask
func (x *UpdateDependencyRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateDependencyRequest) ProtoMessage
func (*UpdateDependencyRequest) ProtoMessage()func (*UpdateDependencyRequest) ProtoReflect
func (x *UpdateDependencyRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateDependencyRequest) Reset
func (x *UpdateDependencyRequest) Reset()func (*UpdateDependencyRequest) String
func (x *UpdateDependencyRequest) String() stringUpdateDeploymentRequest
type UpdateDeploymentRequest struct {
// 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}`
Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
// Required. The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}The [UpdateDeployment][google.cloud.apihub.v1.ApiHub.UpdateDeployment] method's request.
func (*UpdateDeploymentRequest) Descriptor
func (*UpdateDeploymentRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateDeploymentRequest.ProtoReflect.Descriptor instead.
func (*UpdateDeploymentRequest) GetDeployment
func (x *UpdateDeploymentRequest) GetDeployment() *Deploymentfunc (*UpdateDeploymentRequest) GetUpdateMask
func (x *UpdateDeploymentRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateDeploymentRequest) ProtoMessage
func (*UpdateDeploymentRequest) ProtoMessage()func (*UpdateDeploymentRequest) ProtoReflect
func (x *UpdateDeploymentRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateDeploymentRequest) Reset
func (x *UpdateDeploymentRequest) Reset()func (*UpdateDeploymentRequest) String
func (x *UpdateDeploymentRequest) String() stringUpdateExternalApiRequest
type UpdateExternalApiRequest struct {
// 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}`
ExternalApi *ExternalApi `protobuf:"bytes,1,opt,name=external_api,json=externalApi,proto3" json:"external_api,omitempty"`
// Required. The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}The [UpdateExternalApi][google.cloud.apihub.v1.ApiHub.UpdateExternalApi] method's request.
func (*UpdateExternalApiRequest) Descriptor
func (*UpdateExternalApiRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateExternalApiRequest.ProtoReflect.Descriptor instead.
func (*UpdateExternalApiRequest) GetExternalApi
func (x *UpdateExternalApiRequest) GetExternalApi() *ExternalApifunc (*UpdateExternalApiRequest) GetUpdateMask
func (x *UpdateExternalApiRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateExternalApiRequest) ProtoMessage
func (*UpdateExternalApiRequest) ProtoMessage()func (*UpdateExternalApiRequest) ProtoReflect
func (x *UpdateExternalApiRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateExternalApiRequest) Reset
func (x *UpdateExternalApiRequest) Reset()func (*UpdateExternalApiRequest) String
func (x *UpdateExternalApiRequest) String() stringUpdatePluginInstanceRequest
type UpdatePluginInstanceRequest struct {
// Required. The plugin instance to update.
PluginInstance *PluginInstance `protobuf:"bytes,1,opt,name=plugin_instance,json=pluginInstance,proto3" json:"plugin_instance,omitempty"`
// Optional. The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}The [UpdatePluginInstance][google.cloud.apihub.v1.ApiHubPlugin.UpdatePluginInstance] method's request.
func (*UpdatePluginInstanceRequest) Descriptor
func (*UpdatePluginInstanceRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdatePluginInstanceRequest.ProtoReflect.Descriptor instead.
func (*UpdatePluginInstanceRequest) GetPluginInstance
func (x *UpdatePluginInstanceRequest) GetPluginInstance() *PluginInstancefunc (*UpdatePluginInstanceRequest) GetUpdateMask
func (x *UpdatePluginInstanceRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdatePluginInstanceRequest) ProtoMessage
func (*UpdatePluginInstanceRequest) ProtoMessage()func (*UpdatePluginInstanceRequest) ProtoReflect
func (x *UpdatePluginInstanceRequest) ProtoReflect() protoreflect.Messagefunc (*UpdatePluginInstanceRequest) Reset
func (x *UpdatePluginInstanceRequest) Reset()func (*UpdatePluginInstanceRequest) String
func (x *UpdatePluginInstanceRequest) String() stringUpdateSpecRequest
type UpdateSpecRequest struct {
// 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}`
Spec *Spec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
// Required. The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}The [UpdateSpec][google.cloud.apihub.v1.ApiHub.UpdateSpec] method's request.
func (*UpdateSpecRequest) Descriptor
func (*UpdateSpecRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateSpecRequest.ProtoReflect.Descriptor instead.
func (*UpdateSpecRequest) GetSpec
func (x *UpdateSpecRequest) GetSpec() *Specfunc (*UpdateSpecRequest) GetUpdateMask
func (x *UpdateSpecRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateSpecRequest) ProtoMessage
func (*UpdateSpecRequest) ProtoMessage()func (*UpdateSpecRequest) ProtoReflect
func (x *UpdateSpecRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateSpecRequest) Reset
func (x *UpdateSpecRequest) Reset()func (*UpdateSpecRequest) String
func (x *UpdateSpecRequest) String() stringUpdateStyleGuideRequest
type UpdateStyleGuideRequest struct {
// Required. The Style guide resource to update.
StyleGuide *StyleGuide `protobuf:"bytes,1,opt,name=style_guide,json=styleGuide,proto3" json:"style_guide,omitempty"`
// Optional. The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}The [UpdateStyleGuide][google.cloud.apihub.v1.LintingService.UpdateStyleGuide] method's request.
func (*UpdateStyleGuideRequest) Descriptor
func (*UpdateStyleGuideRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateStyleGuideRequest.ProtoReflect.Descriptor instead.
func (*UpdateStyleGuideRequest) GetStyleGuide
func (x *UpdateStyleGuideRequest) GetStyleGuide() *StyleGuidefunc (*UpdateStyleGuideRequest) GetUpdateMask
func (x *UpdateStyleGuideRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateStyleGuideRequest) ProtoMessage
func (*UpdateStyleGuideRequest) ProtoMessage()func (*UpdateStyleGuideRequest) ProtoReflect
func (x *UpdateStyleGuideRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateStyleGuideRequest) Reset
func (x *UpdateStyleGuideRequest) Reset()func (*UpdateStyleGuideRequest) String
func (x *UpdateStyleGuideRequest) String() stringUpdateVersionRequest
type UpdateVersionRequest struct {
// 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}`
Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// Required. The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}The [UpdateVersion][google.cloud.apihub.v1.ApiHub.UpdateVersion] method's request.
func (*UpdateVersionRequest) Descriptor
func (*UpdateVersionRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateVersionRequest.ProtoReflect.Descriptor instead.
func (*UpdateVersionRequest) GetUpdateMask
func (x *UpdateVersionRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateVersionRequest) GetVersion
func (x *UpdateVersionRequest) GetVersion() *Versionfunc (*UpdateVersionRequest) ProtoMessage
func (*UpdateVersionRequest) ProtoMessage()func (*UpdateVersionRequest) ProtoReflect
func (x *UpdateVersionRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateVersionRequest) Reset
func (x *UpdateVersionRequest) Reset()func (*UpdateVersionRequest) String
func (x *UpdateVersionRequest) String() stringVersion
type Version struct {
// Identifier. The name of the version.
//
// Format:
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The display name of the version.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. The description of the version.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Optional. The documentation of the version.
Documentation *Documentation `protobuf:"bytes,4,opt,name=documentation,proto3" json:"documentation,omitempty"`
// Output only. The specs associated with this version.
// Note that an API version can be associated with multiple specs.
// Format is
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
Specs []string `protobuf:"bytes,5,rep,name=specs,proto3" json:"specs,omitempty"`
// Output only. The operations contained in the API version.
// These operations will be added to the version when a new spec is
// added or when an existing spec is updated. Format is
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
ApiOperations []string `protobuf:"bytes,6,rep,name=api_operations,json=apiOperations,proto3" json:"api_operations,omitempty"`
// Output only. The definitions contained in the API version.
// These definitions will be added to the version when a new spec is
// added or when an existing spec is updated. Format is
// `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
Definitions []string `protobuf:"bytes,7,rep,name=definitions,proto3" json:"definitions,omitempty"`
// Optional. The deployments linked to this API version.
// Note: A particular API version could be deployed to multiple deployments
// (for dev deployment, UAT deployment, etc)
// Format is
// `projects/{project}/locations/{location}/deployments/{deployment}`
Deployments []string `protobuf:"bytes,8,rep,name=deployments,proto3" json:"deployments,omitempty"`
// Output only. The time at which the version was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time at which the version was last updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. The lifecycle of the API version.
// This maps to the following system defined attribute:
// `projects/{project}/locations/{location}/attributes/system-lifecycle`
// attribute.
// The number of 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.
Lifecycle *AttributeValues `protobuf:"bytes,11,opt,name=lifecycle,proto3" json:"lifecycle,omitempty"`
// Optional. The compliance associated with the API version.
// This maps to the following system defined attribute:
// `projects/{project}/locations/{location}/attributes/system-compliance`
// attribute.
// The number of 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.
Compliance *AttributeValues `protobuf:"bytes,12,opt,name=compliance,proto3" json:"compliance,omitempty"`
// Optional. The accreditations associated with the API version.
// This maps to the following system defined attribute:
// `projects/{project}/locations/{location}/attributes/system-accreditation`
// attribute.
// The number of 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.
Accreditation *AttributeValues `protobuf:"bytes,13,opt,name=accreditation,proto3" json:"accreditation,omitempty"`
// Optional. The list of user defined attributes associated with the Version
// resource. The key is the attribute name. It will be of the format:
// `projects/{project}/locations/{location}/attributes/{attribute}`.
// The value is the attribute values associated with the resource.
Attributes map[string]*AttributeValues `protobuf:"bytes,14,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. The selected deployment for a Version resource.
// This can be used when special handling is needed on client side for a
// particular deployment linked to the version.
// Format is
// `projects/{project}/locations/{location}/deployments/{deployment}`
SelectedDeployment string `protobuf:"bytes,16,opt,name=selected_deployment,json=selectedDeployment,proto3" json:"selected_deployment,omitempty"`
// Output only. The list of sources and metadata from the sources of the
// version.
SourceMetadata []*SourceMetadata `protobuf:"bytes,17,rep,name=source_metadata,json=sourceMetadata,proto3" json:"source_metadata,omitempty"`
// contains filtered or unexported fields
}Represents a version of the API resource in API hub. This is also referred to as the API version.
func (*Version) Descriptor
Deprecated: Use Version.ProtoReflect.Descriptor instead.
func (*Version) GetAccreditation
func (x *Version) GetAccreditation() *AttributeValuesfunc (*Version) GetApiOperations
func (*Version) GetAttributes
func (x *Version) GetAttributes() map[string]*AttributeValuesfunc (*Version) GetCompliance
func (x *Version) GetCompliance() *AttributeValuesfunc (*Version) GetCreateTime
func (x *Version) GetCreateTime() *timestamppb.Timestampfunc (*Version) GetDefinitions
func (*Version) GetDeployments
func (*Version) GetDescription
func (*Version) GetDisplayName
func (*Version) GetDocumentation
func (x *Version) GetDocumentation() *Documentationfunc (*Version) GetLifecycle
func (x *Version) GetLifecycle() *AttributeValuesfunc (*Version) GetName
func (*Version) GetSelectedDeployment
func (*Version) GetSourceMetadata
func (x *Version) GetSourceMetadata() []*SourceMetadatafunc (*Version) GetSpecs
func (*Version) GetUpdateTime
func (x *Version) GetUpdateTime() *timestamppb.Timestampfunc (*Version) ProtoMessage
func (*Version) ProtoMessage()func (*Version) ProtoReflect
func (x *Version) ProtoReflect() protoreflect.Messagefunc (*Version) Reset
func (x *Version) Reset()func (*Version) String
VersionMetadata
type VersionMetadata struct {
// Required. Represents a version of the API resource in API hub. The ID of
// the version will be generated by Hub.
Version *Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// Optional. The specs associated with this version.
// Note that an API version can be associated with multiple specs.
Specs []*SpecMetadata `protobuf:"bytes,2,rep,name=specs,proto3" json:"specs,omitempty"`
// Optional. The deployments linked to this API version.
// Note: A particular API version could be deployed to multiple deployments
// (for dev deployment, UAT deployment, etc.)
Deployments []*DeploymentMetadata `protobuf:"bytes,4,rep,name=deployments,proto3" json:"deployments,omitempty"`
// Optional. The unique identifier of the version in the system where it was
// originally created.
OriginalId string `protobuf:"bytes,5,opt,name=original_id,json=originalId,proto3" json:"original_id,omitempty"`
// Optional. Timestamp indicating when the version was created at the source.
OriginalCreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=original_create_time,json=originalCreateTime,proto3" json:"original_create_time,omitempty"`
// Required. Timestamp indicating when the version was last updated at the
// source.
OriginalUpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=original_update_time,json=originalUpdateTime,proto3" json:"original_update_time,omitempty"`
// contains filtered or unexported fields
}The metadata associated with a version of the API resource.
func (*VersionMetadata) Descriptor
func (*VersionMetadata) Descriptor() ([]byte, []int)Deprecated: Use VersionMetadata.ProtoReflect.Descriptor instead.
func (*VersionMetadata) GetDeployments
func (x *VersionMetadata) GetDeployments() []*DeploymentMetadatafunc (*VersionMetadata) GetOriginalCreateTime
func (x *VersionMetadata) GetOriginalCreateTime() *timestamppb.Timestampfunc (*VersionMetadata) GetOriginalId
func (x *VersionMetadata) GetOriginalId() stringfunc (*VersionMetadata) GetOriginalUpdateTime
func (x *VersionMetadata) GetOriginalUpdateTime() *timestamppb.Timestampfunc (*VersionMetadata) GetSpecs
func (x *VersionMetadata) GetSpecs() []*SpecMetadatafunc (*VersionMetadata) GetVersion
func (x *VersionMetadata) GetVersion() *Versionfunc (*VersionMetadata) ProtoMessage
func (*VersionMetadata) ProtoMessage()func (*VersionMetadata) ProtoReflect
func (x *VersionMetadata) ProtoReflect() protoreflect.Messagefunc (*VersionMetadata) Reset
func (x *VersionMetadata) Reset()func (*VersionMetadata) String
func (x *VersionMetadata) String() string