google-cloud-api_hub-v1 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/api_hub/v1/api_hub/paths.rb +21 -0
- data/lib/google/cloud/api_hub/v1/api_hub/rest/client.rb +497 -9
- data/lib/google/cloud/api_hub/v1/api_hub/rest/service_stub.rb +185 -0
- data/lib/google/cloud/api_hub/v1/api_hub_collect/credentials.rb +47 -0
- data/lib/google/cloud/api_hub/v1/api_hub_collect/paths.rb +218 -0
- data/lib/google/cloud/api_hub/v1/api_hub_collect/rest/client.rb +487 -0
- data/lib/google/cloud/api_hub/v1/api_hub_collect/rest/operations.rb +914 -0
- data/lib/google/cloud/api_hub/v1/api_hub_collect/rest/service_stub.rb +143 -0
- data/lib/google/cloud/api_hub/v1/api_hub_collect/rest.rb +56 -0
- data/lib/google/cloud/api_hub/v1/api_hub_collect.rb +50 -0
- data/lib/google/cloud/api_hub/v1/api_hub_curate/credentials.rb +47 -0
- data/lib/google/cloud/api_hub/v1/api_hub_curate/paths.rb +90 -0
- data/lib/google/cloud/api_hub/v1/api_hub_curate/rest/client.rb +869 -0
- data/lib/google/cloud/api_hub/v1/api_hub_curate/rest/service_stub.rb +388 -0
- data/lib/google/cloud/api_hub/v1/api_hub_curate/rest.rb +54 -0
- data/lib/google/cloud/api_hub/v1/api_hub_curate.rb +49 -0
- data/lib/google/cloud/api_hub/v1/api_hub_discovery/credentials.rb +47 -0
- data/lib/google/cloud/api_hub/v1/api_hub_discovery/paths.rb +90 -0
- data/lib/google/cloud/api_hub/v1/api_hub_discovery/rest/client.rb +750 -0
- data/lib/google/cloud/api_hub/v1/api_hub_discovery/rest/service_stub.rb +325 -0
- data/lib/google/cloud/api_hub/v1/api_hub_discovery/rest.rb +54 -0
- data/lib/google/cloud/api_hub/v1/api_hub_discovery.rb +49 -0
- data/lib/google/cloud/api_hub/v1/api_hub_plugin/paths.rb +74 -0
- data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/client.rb +1265 -98
- data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/operations.rb +914 -0
- data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/service_stub.rb +677 -0
- data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest.rb +1 -0
- data/lib/google/cloud/api_hub/v1/bindings_override.rb +2 -29
- data/lib/google/cloud/api_hub/v1/provisioning/rest/client.rb +96 -0
- data/lib/google/cloud/api_hub/v1/provisioning/rest/service_stub.rb +61 -0
- data/lib/google/cloud/api_hub/v1/rest.rb +3 -0
- data/lib/google/cloud/api_hub/v1/version.rb +1 -1
- data/lib/google/cloud/api_hub/v1.rb +3 -0
- data/lib/google/cloud/apihub/v1/apihub_service_pb.rb +4 -1
- data/lib/google/cloud/apihub/v1/apihub_service_services_pb.rb +35 -2
- data/lib/google/cloud/apihub/v1/collect_service_pb.rb +60 -0
- data/lib/google/cloud/apihub/v1/collect_service_services_pb.rb +47 -0
- data/lib/google/cloud/apihub/v1/common_fields_pb.rb +34 -1
- data/lib/google/cloud/apihub/v1/curate_service_pb.rb +63 -0
- data/lib/google/cloud/apihub/v1/curate_service_services_pb.rb +64 -0
- data/lib/google/cloud/apihub/v1/discovery_service_pb.rb +54 -0
- data/lib/google/cloud/apihub/v1/discovery_service_services_pb.rb +55 -0
- data/lib/google/cloud/apihub/v1/plugin_service_pb.rb +44 -1
- data/lib/google/cloud/apihub/v1/plugin_service_services_pb.rb +43 -1
- data/lib/google/cloud/apihub/v1/provisioning_service_pb.rb +3 -1
- data/lib/google/cloud/apihub/v1/provisioning_service_services_pb.rb +2 -0
- data/proto_docs/google/cloud/apihub/v1/apihub_service.rb +251 -15
- data/proto_docs/google/cloud/apihub/v1/collect_service.rb +188 -0
- data/proto_docs/google/cloud/apihub/v1/common_fields.rb +819 -28
- data/proto_docs/google/cloud/apihub/v1/curate_service.rb +268 -0
- data/proto_docs/google/cloud/apihub/v1/discovery_service.rb +124 -0
- data/proto_docs/google/cloud/apihub/v1/linting_service.rb +10 -4
- data/proto_docs/google/cloud/apihub/v1/plugin_service.rb +799 -1
- data/proto_docs/google/cloud/apihub/v1/provisioning_service.rb +13 -0
- metadata +33 -4
@@ -114,6 +114,40 @@ module Google
|
|
114
114
|
# This can be used when special handling is needed on client side for
|
115
115
|
# particular version of the API. Format is
|
116
116
|
# `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
|
117
|
+
# @!attribute [rw] api_requirements
|
118
|
+
# @return [::Google::Cloud::ApiHub::V1::AttributeValues]
|
119
|
+
# Optional. The api requirement doc associated with the API resource.
|
120
|
+
# Carinality is 1 for this attribute. This maps to the following system
|
121
|
+
# defined attribute:
|
122
|
+
# `projects/{project}/locations/{location}/attributes/system-api-requirements`
|
123
|
+
# attribute. The value of the attribute should be a proper URI, and in case
|
124
|
+
# of Cloud Storage URI, it should point to a Cloud Storage object,
|
125
|
+
# not a directory.
|
126
|
+
# @!attribute [rw] fingerprint
|
127
|
+
# @return [::String]
|
128
|
+
# Optional. Fingerprint of the API resource.
|
129
|
+
# @!attribute [r] source_metadata
|
130
|
+
# @return [::Array<::Google::Cloud::ApiHub::V1::SourceMetadata>]
|
131
|
+
# Output only. The list of sources and metadata from the sources of the API
|
132
|
+
# resource.
|
133
|
+
# @!attribute [rw] api_functional_requirements
|
134
|
+
# @return [::Google::Cloud::ApiHub::V1::AttributeValues]
|
135
|
+
# Optional. The api functional requirements associated with the API resource.
|
136
|
+
# Carinality is 1 for this attribute.
|
137
|
+
# This maps to the following system defined attribute:
|
138
|
+
# `projects/{project}/locations/{location}/attributes/system-api-functional-requirements`
|
139
|
+
# attribute. The value of the attribute should be a proper URI, and in case
|
140
|
+
# of Cloud Storage URI, it should point to a Cloud Storage object,
|
141
|
+
# not a directory.
|
142
|
+
# @!attribute [rw] api_technical_requirements
|
143
|
+
# @return [::Google::Cloud::ApiHub::V1::AttributeValues]
|
144
|
+
# Optional. The api technical requirements associated with the API resource.
|
145
|
+
# Carinality is 1 for this attribute. This maps to the following system
|
146
|
+
# defined attribute:
|
147
|
+
# `projects/{project}/locations/{location}/attributes/system-api-technical-requirements`
|
148
|
+
# attribute. The value of the attribute should be a proper URI, and in case
|
149
|
+
# of Cloud Storage URI, it should point to a Cloud Storage object,
|
150
|
+
# not a directory.
|
117
151
|
class Api
|
118
152
|
include ::Google::Protobuf::MessageExts
|
119
153
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -219,6 +253,10 @@ module Google
|
|
219
253
|
# particular deployment linked to the version.
|
220
254
|
# Format is
|
221
255
|
# `projects/{project}/locations/{location}/deployments/{deployment}`
|
256
|
+
# @!attribute [r] source_metadata
|
257
|
+
# @return [::Array<::Google::Cloud::ApiHub::V1::SourceMetadata>]
|
258
|
+
# Output only. The list of sources and metadata from the sources of the
|
259
|
+
# version.
|
222
260
|
class Version
|
223
261
|
include ::Google::Protobuf::MessageExts
|
224
262
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -291,6 +329,9 @@ module Google
|
|
291
329
|
# @return [::Google::Cloud::ApiHub::V1::Spec::ParsingMode]
|
292
330
|
# Optional. Input only. Enum specifying the parsing mode for OpenAPI
|
293
331
|
# Specification (OAS) parsing.
|
332
|
+
# @!attribute [r] source_metadata
|
333
|
+
# @return [::Array<::Google::Cloud::ApiHub::V1::SourceMetadata>]
|
334
|
+
# Output only. The list of sources and metadata from the sources of the spec.
|
294
335
|
class Spec
|
295
336
|
include ::Google::Protobuf::MessageExts
|
296
337
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -356,9 +397,12 @@ module Google
|
|
356
397
|
# attribute.
|
357
398
|
# @!attribute [rw] resource_uri
|
358
399
|
# @return [::String]
|
359
|
-
# Required.
|
360
|
-
#
|
361
|
-
#
|
400
|
+
# Required. The resource URI identifies the deployment within its gateway.
|
401
|
+
# For Apigee gateways, its recommended to use the format:
|
402
|
+
# organizations/\\{org}/environments/\\{env}/apis/\\{api}.
|
403
|
+
# For ex: if a proxy with name `orders` is deployed in `staging`
|
404
|
+
# environment of `cymbal` organization, the resource URI would be:
|
405
|
+
# `organizations/cymbal/environments/staging/apis/orders`.
|
362
406
|
# @!attribute [rw] endpoints
|
363
407
|
# @return [::Array<::String>]
|
364
408
|
# Required. The endpoints at which this deployment resource is listening for
|
@@ -401,6 +445,38 @@ module Google
|
|
401
445
|
# deployment resource. The key is the attribute name. It will be of the
|
402
446
|
# format: `projects/{project}/locations/{location}/attributes/{attribute}`.
|
403
447
|
# The value is the attribute values associated with the resource.
|
448
|
+
# @!attribute [r] source_metadata
|
449
|
+
# @return [::Array<::Google::Cloud::ApiHub::V1::SourceMetadata>]
|
450
|
+
# Output only. The list of sources and metadata from the sources of the
|
451
|
+
# deployment.
|
452
|
+
# @!attribute [rw] management_url
|
453
|
+
# @return [::Google::Cloud::ApiHub::V1::AttributeValues]
|
454
|
+
# Optional. The uri where users can navigate to for the management of the
|
455
|
+
# deployment. This maps to the following system defined attribute:
|
456
|
+
# `projects/{project}/locations/{location}/attributes/system-management-url`
|
457
|
+
# The number of values for this attribute will be based on the
|
458
|
+
# cardinality of the attribute. The same can be retrieved via GetAttribute
|
459
|
+
# API. The value of the attribute should be a valid URL.
|
460
|
+
# @!attribute [rw] source_uri
|
461
|
+
# @return [::Google::Cloud::ApiHub::V1::AttributeValues]
|
462
|
+
# Optional. The uri where additional source specific information for this
|
463
|
+
# deployment can be found. This maps to the following system defined
|
464
|
+
# attribute:
|
465
|
+
# `projects/{project}/locations/{location}/attributes/system-source-uri`
|
466
|
+
# The number of values for this attribute will be based on the
|
467
|
+
# cardinality of the attribute. The same can be retrieved via GetAttribute
|
468
|
+
# API. The value of the attribute should be a valid URI, and in case
|
469
|
+
# of Cloud Storage URI, it should point to a Cloud Storage object,
|
470
|
+
# not a directory.
|
471
|
+
# @!attribute [rw] source_project
|
472
|
+
# @return [::String]
|
473
|
+
# Optional. The project to which the deployment belongs.
|
474
|
+
# For GCP gateways, this will refer to the project identifier.
|
475
|
+
# For others like Edge/OPDK, this will refer to the org identifier.
|
476
|
+
# @!attribute [rw] source_environment
|
477
|
+
# @return [::String]
|
478
|
+
# Optional. The environment at source for the deployment.
|
479
|
+
# For example: prod, dev, staging, etc.
|
404
480
|
class Deployment
|
405
481
|
include ::Google::Protobuf::MessageExts
|
406
482
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -420,6 +496,10 @@ module Google
|
|
420
496
|
# added or an existing spec is updated/deleted in a version.
|
421
497
|
# Currently, an operation will be created only corresponding to OpenAPI spec as
|
422
498
|
# parsing is supported for OpenAPI spec.
|
499
|
+
# Alternatively operations can be managed via create,update and delete APIs,
|
500
|
+
# creation of apiOperation can be possible only for version with no parsed
|
501
|
+
# operations and update/delete can be possible only for operations created via
|
502
|
+
# create API.
|
423
503
|
# @!attribute [rw] name
|
424
504
|
# @return [::String]
|
425
505
|
# Identifier. The name of the operation.
|
@@ -428,12 +508,16 @@ module Google
|
|
428
508
|
# `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
|
429
509
|
# @!attribute [r] spec
|
430
510
|
# @return [::String]
|
431
|
-
# Output only. The name of the spec
|
432
|
-
# Format is
|
511
|
+
# Output only. The name of the spec will be of the format:
|
433
512
|
# `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
|
434
|
-
#
|
513
|
+
# Note:The name of the spec will be empty if the operation is created via
|
514
|
+
# {::Google::Cloud::ApiHub::V1::ApiHub::Rest::Client#create_api_operation CreateApiOperation} API.
|
515
|
+
# @!attribute [rw] details
|
435
516
|
# @return [::Google::Cloud::ApiHub::V1::OperationDetails]
|
436
|
-
#
|
517
|
+
# Optional. Operation details.
|
518
|
+
# Note: Even though this field is optional, it is required for
|
519
|
+
# {::Google::Cloud::ApiHub::V1::ApiHub::Rest::Client#create_api_operation CreateApiOperation}
|
520
|
+
# API and we will fail the request if not provided.
|
437
521
|
# @!attribute [r] create_time
|
438
522
|
# @return [::Google::Protobuf::Timestamp]
|
439
523
|
# Output only. The time at which the operation was created.
|
@@ -446,6 +530,10 @@ module Google
|
|
446
530
|
# operation resource. The key is the attribute name. It will be of the
|
447
531
|
# format: `projects/{project}/locations/{location}/attributes/{attribute}`.
|
448
532
|
# The value is the attribute values associated with the resource.
|
533
|
+
# @!attribute [r] source_metadata
|
534
|
+
# @return [::Array<::Google::Cloud::ApiHub::V1::SourceMetadata>]
|
535
|
+
# Output only. The list of sources and metadata from the sources of the API
|
536
|
+
# operation.
|
449
537
|
class ApiOperation
|
450
538
|
include ::Google::Protobuf::MessageExts
|
451
539
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -661,6 +749,9 @@ module Google
|
|
661
749
|
|
662
750
|
# Attribute's value is of type string.
|
663
751
|
STRING = 3
|
752
|
+
|
753
|
+
# Attribute's value is of type uri.
|
754
|
+
URI = 4
|
664
755
|
end
|
665
756
|
end
|
666
757
|
|
@@ -732,18 +823,18 @@ module Google
|
|
732
823
|
# @!attribute [rw] http_operation
|
733
824
|
# @return [::Google::Cloud::ApiHub::V1::HttpOperation]
|
734
825
|
# The HTTP Operation.
|
735
|
-
# @!attribute [
|
826
|
+
# @!attribute [rw] description
|
736
827
|
# @return [::String]
|
737
|
-
#
|
828
|
+
# Optional. Description of the operation behavior.
|
738
829
|
# For OpenAPI spec, this will map to `operation.description` in the
|
739
830
|
# spec, in case description is empty, `operation.summary` will be used.
|
740
|
-
# @!attribute [
|
831
|
+
# @!attribute [rw] documentation
|
741
832
|
# @return [::Google::Cloud::ApiHub::V1::Documentation]
|
742
|
-
#
|
833
|
+
# Optional. Additional external documentation for this operation.
|
743
834
|
# For OpenAPI spec, this will map to `operation.documentation` in the spec.
|
744
|
-
# @!attribute [
|
835
|
+
# @!attribute [rw] deprecated
|
745
836
|
# @return [::Boolean]
|
746
|
-
#
|
837
|
+
# Optional. For OpenAPI spec, this will be set if `operation.deprecated`is
|
747
838
|
# marked as `true` in the spec.
|
748
839
|
class OperationDetails
|
749
840
|
include ::Google::Protobuf::MessageExts
|
@@ -751,12 +842,18 @@ module Google
|
|
751
842
|
end
|
752
843
|
|
753
844
|
# The HTTP Operation.
|
754
|
-
# @!attribute [
|
845
|
+
# @!attribute [rw] path
|
755
846
|
# @return [::Google::Cloud::ApiHub::V1::Path]
|
756
|
-
#
|
757
|
-
#
|
847
|
+
# Optional. The path details for the Operation.
|
848
|
+
# Note: Even though this field is optional, it is required for
|
849
|
+
# {::Google::Cloud::ApiHub::V1::ApiHub::Rest::Client#create_api_operation CreateApiOperation}
|
850
|
+
# API and we will fail the request if not provided.
|
851
|
+
# @!attribute [rw] method
|
758
852
|
# @return [::Google::Cloud::ApiHub::V1::HttpOperation::Method]
|
759
|
-
#
|
853
|
+
# Optional. Operation method
|
854
|
+
# Note: Even though this field is optional, it is required for
|
855
|
+
# {::Google::Cloud::ApiHub::V1::ApiHub::Rest::Client#create_api_operation CreateApiOperation}
|
856
|
+
# API and we will fail the request if not provided.
|
760
857
|
class HttpOperation
|
761
858
|
include ::Google::Protobuf::MessageExts
|
762
859
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -793,12 +890,15 @@ module Google
|
|
793
890
|
end
|
794
891
|
|
795
892
|
# The path details derived from the spec.
|
796
|
-
# @!attribute [
|
893
|
+
# @!attribute [rw] path
|
797
894
|
# @return [::String]
|
798
|
-
#
|
799
|
-
#
|
895
|
+
# Optional. Complete path relative to server endpoint.
|
896
|
+
# Note: Even though this field is optional, it is required for
|
897
|
+
# {::Google::Cloud::ApiHub::V1::ApiHub::Rest::Client#create_api_operation CreateApiOperation}
|
898
|
+
# API and we will fail the request if not provided.
|
899
|
+
# @!attribute [rw] description
|
800
900
|
# @return [::String]
|
801
|
-
#
|
901
|
+
# Optional. A short description for the path applicable to all operations.
|
802
902
|
class Path
|
803
903
|
include ::Google::Protobuf::MessageExts
|
804
904
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -849,19 +949,25 @@ module Google
|
|
849
949
|
# The attribute values associated with a resource in case attribute data
|
850
950
|
# type is enum.
|
851
951
|
#
|
852
|
-
# Note: The following fields are mutually exclusive: `enum_values`, `string_values`, `json_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
952
|
+
# Note: The following fields are mutually exclusive: `enum_values`, `string_values`, `json_values`, `uri_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
853
953
|
# @!attribute [rw] string_values
|
854
954
|
# @return [::Google::Cloud::ApiHub::V1::AttributeValues::StringAttributeValues]
|
855
955
|
# The attribute values associated with a resource in case attribute data
|
856
956
|
# type is string.
|
857
957
|
#
|
858
|
-
# Note: The following fields are mutually exclusive: `string_values`, `enum_values`, `json_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
958
|
+
# Note: The following fields are mutually exclusive: `string_values`, `enum_values`, `json_values`, `uri_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
859
959
|
# @!attribute [rw] json_values
|
860
960
|
# @return [::Google::Cloud::ApiHub::V1::AttributeValues::StringAttributeValues]
|
861
961
|
# The attribute values associated with a resource in case attribute data
|
862
962
|
# type is JSON.
|
863
963
|
#
|
864
|
-
# Note: The following fields are mutually exclusive: `json_values`, `enum_values`, `string_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
964
|
+
# Note: The following fields are mutually exclusive: `json_values`, `enum_values`, `string_values`, `uri_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
965
|
+
# @!attribute [rw] uri_values
|
966
|
+
# @return [::Google::Cloud::ApiHub::V1::AttributeValues::StringAttributeValues]
|
967
|
+
# The attribute values associated with a resource in case attribute data
|
968
|
+
# type is URL, URI or IP, like gs://bucket-name/object-name.
|
969
|
+
#
|
970
|
+
# Note: The following fields are mutually exclusive: `uri_values`, `enum_values`, `string_values`, `json_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
865
971
|
# @!attribute [r] attribute
|
866
972
|
# @return [::String]
|
867
973
|
# Output only. The name of the attribute.
|
@@ -892,8 +998,8 @@ module Google
|
|
892
998
|
|
893
999
|
# A dependency resource defined in the API hub describes a dependency directed
|
894
1000
|
# from a consumer to a supplier entity. A dependency can be defined between two
|
895
|
-
#
|
896
|
-
# an
|
1001
|
+
# {::Google::Cloud::ApiHub::V1::ApiOperation Operations} or between
|
1002
|
+
# an {::Google::Cloud::ApiHub::V1::ApiOperation Operation} and [External
|
897
1003
|
# API][google.cloud.apihub.v1.ExternalApi].
|
898
1004
|
# @!attribute [rw] name
|
899
1005
|
# @return [::String]
|
@@ -1119,7 +1225,7 @@ module Google
|
|
1119
1225
|
# @return [::Boolean]
|
1120
1226
|
# Output only. Identifies whether the user has requested cancellation
|
1121
1227
|
# of the operation. Operations that have been cancelled successfully
|
1122
|
-
# have
|
1228
|
+
# have {::Google::Longrunning::Operation#error Operation.error} value with a
|
1123
1229
|
# {::Google::Rpc::Status#code google.rpc.Status.code} of 1, corresponding to
|
1124
1230
|
# `Code.CANCELLED`.
|
1125
1231
|
# @!attribute [r] api_version
|
@@ -1167,13 +1273,39 @@ module Google
|
|
1167
1273
|
# Available configurations to provision an ApiHub Instance.
|
1168
1274
|
# @!attribute [rw] cmek_key_name
|
1169
1275
|
# @return [::String]
|
1170
|
-
#
|
1276
|
+
# Optional. The Customer Managed Encryption Key (CMEK) used for data
|
1171
1277
|
# encryption. The CMEK name should follow the format of
|
1172
1278
|
# `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`,
|
1173
1279
|
# where the location must match the instance location.
|
1280
|
+
# If the CMEK is not provided, a GMEK will be created for the instance.
|
1281
|
+
# @!attribute [rw] disable_search
|
1282
|
+
# @return [::Boolean]
|
1283
|
+
# Optional. If true, the search will be disabled for the instance. The
|
1284
|
+
# default value is false.
|
1285
|
+
# @!attribute [rw] vertex_location
|
1286
|
+
# @return [::String]
|
1287
|
+
# Optional. The name of the Vertex AI location where the data store is
|
1288
|
+
# stored.
|
1289
|
+
# @!attribute [rw] encryption_type
|
1290
|
+
# @return [::Google::Cloud::ApiHub::V1::ApiHubInstance::Config::EncryptionType]
|
1291
|
+
# Optional. Encryption type for the region. If the encryption type is CMEK,
|
1292
|
+
# the cmek_key_name must be provided. If no encryption type is provided,
|
1293
|
+
# GMEK will be used.
|
1174
1294
|
class Config
|
1175
1295
|
include ::Google::Protobuf::MessageExts
|
1176
1296
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1297
|
+
|
1298
|
+
# Types of data encryption.
|
1299
|
+
module EncryptionType
|
1300
|
+
# Encryption type unspecified.
|
1301
|
+
ENCRYPTION_TYPE_UNSPECIFIED = 0
|
1302
|
+
|
1303
|
+
# Default encryption using Google managed encryption key.
|
1304
|
+
GMEK = 1
|
1305
|
+
|
1306
|
+
# Encryption using customer managed encryption key.
|
1307
|
+
CMEK = 2
|
1308
|
+
end
|
1177
1309
|
end
|
1178
1310
|
|
1179
1311
|
# @!attribute [rw] key
|
@@ -1259,6 +1391,631 @@ module Google
|
|
1259
1391
|
end
|
1260
1392
|
end
|
1261
1393
|
|
1394
|
+
# ConfigValueOption represents an option for a config variable of type enum or
|
1395
|
+
# multi select.
|
1396
|
+
# @!attribute [rw] id
|
1397
|
+
# @return [::String]
|
1398
|
+
# Required. Id of the option.
|
1399
|
+
# @!attribute [rw] display_name
|
1400
|
+
# @return [::String]
|
1401
|
+
# Required. Display name of the option.
|
1402
|
+
# @!attribute [rw] description
|
1403
|
+
# @return [::String]
|
1404
|
+
# Optional. Description of the option.
|
1405
|
+
class ConfigValueOption
|
1406
|
+
include ::Google::Protobuf::MessageExts
|
1407
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1408
|
+
end
|
1409
|
+
|
1410
|
+
# Secret provides a reference to entries in Secret Manager.
|
1411
|
+
# @!attribute [rw] secret_version
|
1412
|
+
# @return [::String]
|
1413
|
+
# Required. The resource name of the secret version in the format,
|
1414
|
+
# format as: `projects/*/secrets/*/versions/*`.
|
1415
|
+
class Secret
|
1416
|
+
include ::Google::Protobuf::MessageExts
|
1417
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1418
|
+
end
|
1419
|
+
|
1420
|
+
# ConfigVariableTemplate represents a configuration variable template present
|
1421
|
+
# in a Plugin Config.
|
1422
|
+
# @!attribute [rw] id
|
1423
|
+
# @return [::String]
|
1424
|
+
# Required. ID of the config variable. Must be unique within the
|
1425
|
+
# configuration.
|
1426
|
+
# @!attribute [rw] value_type
|
1427
|
+
# @return [::Google::Cloud::ApiHub::V1::ConfigVariableTemplate::ValueType]
|
1428
|
+
# Required. Type of the parameter: string, int, bool etc.
|
1429
|
+
# @!attribute [rw] description
|
1430
|
+
# @return [::String]
|
1431
|
+
# Optional. Description.
|
1432
|
+
# @!attribute [rw] validation_regex
|
1433
|
+
# @return [::String]
|
1434
|
+
# Optional. Regular expression in RE2 syntax used for validating the `value`
|
1435
|
+
# of a `ConfigVariable`.
|
1436
|
+
# @!attribute [rw] required
|
1437
|
+
# @return [::Boolean]
|
1438
|
+
# Optional. Flag represents that this `ConfigVariable` must be provided for a
|
1439
|
+
# PluginInstance.
|
1440
|
+
# @!attribute [rw] enum_options
|
1441
|
+
# @return [::Array<::Google::Cloud::ApiHub::V1::ConfigValueOption>]
|
1442
|
+
# Optional. Enum options. To be populated if `ValueType` is `ENUM`.
|
1443
|
+
# @!attribute [rw] multi_select_options
|
1444
|
+
# @return [::Array<::Google::Cloud::ApiHub::V1::ConfigValueOption>]
|
1445
|
+
# Optional. Multi select options. To be populated if `ValueType` is
|
1446
|
+
# `MULTI_SELECT`.
|
1447
|
+
class ConfigVariableTemplate
|
1448
|
+
include ::Google::Protobuf::MessageExts
|
1449
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1450
|
+
|
1451
|
+
# ValueType indicates the data type of the value.
|
1452
|
+
module ValueType
|
1453
|
+
# Value type is not specified.
|
1454
|
+
VALUE_TYPE_UNSPECIFIED = 0
|
1455
|
+
|
1456
|
+
# Value type is string.
|
1457
|
+
STRING = 1
|
1458
|
+
|
1459
|
+
# Value type is integer.
|
1460
|
+
INT = 2
|
1461
|
+
|
1462
|
+
# Value type is boolean.
|
1463
|
+
BOOL = 3
|
1464
|
+
|
1465
|
+
# Value type is secret.
|
1466
|
+
SECRET = 4
|
1467
|
+
|
1468
|
+
# Value type is enum.
|
1469
|
+
ENUM = 5
|
1470
|
+
|
1471
|
+
# Value type is multi select.
|
1472
|
+
MULTI_SELECT = 6
|
1473
|
+
|
1474
|
+
# Value type is multi string.
|
1475
|
+
MULTI_STRING = 7
|
1476
|
+
|
1477
|
+
# Value type is multi int.
|
1478
|
+
MULTI_INT = 8
|
1479
|
+
end
|
1480
|
+
end
|
1481
|
+
|
1482
|
+
# ConfigVariable represents a additional configuration variable present in a
|
1483
|
+
# PluginInstance Config or AuthConfig, based on a ConfigVariableTemplate.
|
1484
|
+
# @!attribute [rw] string_value
|
1485
|
+
# @return [::String]
|
1486
|
+
# Optional. The config variable value in case of config variable of type
|
1487
|
+
# string.
|
1488
|
+
#
|
1489
|
+
# Note: The following fields are mutually exclusive: `string_value`, `int_value`, `bool_value`, `secret_value`, `enum_value`, `multi_select_values`, `multi_string_values`, `multi_int_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1490
|
+
# @!attribute [rw] int_value
|
1491
|
+
# @return [::Integer]
|
1492
|
+
# Optional. The config variable value in case of config variable of type
|
1493
|
+
# integer.
|
1494
|
+
#
|
1495
|
+
# Note: The following fields are mutually exclusive: `int_value`, `string_value`, `bool_value`, `secret_value`, `enum_value`, `multi_select_values`, `multi_string_values`, `multi_int_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1496
|
+
# @!attribute [rw] bool_value
|
1497
|
+
# @return [::Boolean]
|
1498
|
+
# Optional. The config variable value in case of config variable of type
|
1499
|
+
# boolean.
|
1500
|
+
#
|
1501
|
+
# Note: The following fields are mutually exclusive: `bool_value`, `string_value`, `int_value`, `secret_value`, `enum_value`, `multi_select_values`, `multi_string_values`, `multi_int_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1502
|
+
# @!attribute [rw] secret_value
|
1503
|
+
# @return [::Google::Cloud::ApiHub::V1::Secret]
|
1504
|
+
# Optional. The config variable value in case of config variable of type
|
1505
|
+
# secret.
|
1506
|
+
#
|
1507
|
+
# Note: The following fields are mutually exclusive: `secret_value`, `string_value`, `int_value`, `bool_value`, `enum_value`, `multi_select_values`, `multi_string_values`, `multi_int_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1508
|
+
# @!attribute [rw] enum_value
|
1509
|
+
# @return [::Google::Cloud::ApiHub::V1::ConfigValueOption]
|
1510
|
+
# Optional. The config variable value in case of config variable of type
|
1511
|
+
# enum.
|
1512
|
+
#
|
1513
|
+
# Note: The following fields are mutually exclusive: `enum_value`, `string_value`, `int_value`, `bool_value`, `secret_value`, `multi_select_values`, `multi_string_values`, `multi_int_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1514
|
+
# @!attribute [rw] multi_select_values
|
1515
|
+
# @return [::Google::Cloud::ApiHub::V1::ConfigVariable::MultiSelectValues]
|
1516
|
+
# Optional. The config variable value in case of config variable of type
|
1517
|
+
# multi select.
|
1518
|
+
#
|
1519
|
+
# Note: The following fields are mutually exclusive: `multi_select_values`, `string_value`, `int_value`, `bool_value`, `secret_value`, `enum_value`, `multi_string_values`, `multi_int_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1520
|
+
# @!attribute [rw] multi_string_values
|
1521
|
+
# @return [::Google::Cloud::ApiHub::V1::ConfigVariable::MultiStringValues]
|
1522
|
+
# Optional. The config variable value in case of config variable of type
|
1523
|
+
# multi string.
|
1524
|
+
#
|
1525
|
+
# Note: The following fields are mutually exclusive: `multi_string_values`, `string_value`, `int_value`, `bool_value`, `secret_value`, `enum_value`, `multi_select_values`, `multi_int_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1526
|
+
# @!attribute [rw] multi_int_values
|
1527
|
+
# @return [::Google::Cloud::ApiHub::V1::ConfigVariable::MultiIntValues]
|
1528
|
+
# Optional. The config variable value in case of config variable of type
|
1529
|
+
# multi integer.
|
1530
|
+
#
|
1531
|
+
# Note: The following fields are mutually exclusive: `multi_int_values`, `string_value`, `int_value`, `bool_value`, `secret_value`, `enum_value`, `multi_select_values`, `multi_string_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1532
|
+
# @!attribute [r] key
|
1533
|
+
# @return [::String]
|
1534
|
+
# Output only. Key will be the
|
1535
|
+
# {::Google::Cloud::ApiHub::V1::ConfigVariableTemplate#id id} to uniquely identify
|
1536
|
+
# the config variable.
|
1537
|
+
class ConfigVariable
|
1538
|
+
include ::Google::Protobuf::MessageExts
|
1539
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1540
|
+
|
1541
|
+
# The config variable value of data type multi select.
|
1542
|
+
# @!attribute [rw] values
|
1543
|
+
# @return [::Array<::Google::Cloud::ApiHub::V1::ConfigValueOption>]
|
1544
|
+
# Optional. The config variable value of data type multi select.
|
1545
|
+
class MultiSelectValues
|
1546
|
+
include ::Google::Protobuf::MessageExts
|
1547
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1548
|
+
end
|
1549
|
+
|
1550
|
+
# The config variable value of data type multi string.
|
1551
|
+
# @!attribute [rw] values
|
1552
|
+
# @return [::Array<::String>]
|
1553
|
+
# Optional. The config variable value of data type multi string.
|
1554
|
+
class MultiStringValues
|
1555
|
+
include ::Google::Protobuf::MessageExts
|
1556
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1557
|
+
end
|
1558
|
+
|
1559
|
+
# The config variable value of data type multi int.
|
1560
|
+
# @!attribute [rw] values
|
1561
|
+
# @return [::Array<::Integer>]
|
1562
|
+
# Optional. The config variable value of data type multi int.
|
1563
|
+
class MultiIntValues
|
1564
|
+
include ::Google::Protobuf::MessageExts
|
1565
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1566
|
+
end
|
1567
|
+
end
|
1568
|
+
|
1569
|
+
# Config for Google service account authentication.
|
1570
|
+
# @!attribute [rw] service_account
|
1571
|
+
# @return [::String]
|
1572
|
+
# Required. The service account to be used for authenticating request.
|
1573
|
+
#
|
1574
|
+
# The `iam.serviceAccounts.getAccessToken` permission should be granted on
|
1575
|
+
# this service account to the impersonator service account.
|
1576
|
+
class GoogleServiceAccountConfig
|
1577
|
+
include ::Google::Protobuf::MessageExts
|
1578
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1579
|
+
end
|
1580
|
+
|
1581
|
+
# AuthConfig represents the authentication information.
|
1582
|
+
# @!attribute [rw] google_service_account_config
|
1583
|
+
# @return [::Google::Cloud::ApiHub::V1::GoogleServiceAccountConfig]
|
1584
|
+
# Google Service Account.
|
1585
|
+
#
|
1586
|
+
# Note: The following fields are mutually exclusive: `google_service_account_config`, `user_password_config`, `api_key_config`, `oauth2_client_credentials_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1587
|
+
# @!attribute [rw] user_password_config
|
1588
|
+
# @return [::Google::Cloud::ApiHub::V1::AuthConfig::UserPasswordConfig]
|
1589
|
+
# User Password.
|
1590
|
+
#
|
1591
|
+
# Note: The following fields are mutually exclusive: `user_password_config`, `google_service_account_config`, `api_key_config`, `oauth2_client_credentials_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1592
|
+
# @!attribute [rw] api_key_config
|
1593
|
+
# @return [::Google::Cloud::ApiHub::V1::AuthConfig::ApiKeyConfig]
|
1594
|
+
# Api Key Config.
|
1595
|
+
#
|
1596
|
+
# Note: The following fields are mutually exclusive: `api_key_config`, `google_service_account_config`, `user_password_config`, `oauth2_client_credentials_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1597
|
+
# @!attribute [rw] oauth2_client_credentials_config
|
1598
|
+
# @return [::Google::Cloud::ApiHub::V1::AuthConfig::Oauth2ClientCredentialsConfig]
|
1599
|
+
# Oauth2.0 Client Credentials.
|
1600
|
+
#
|
1601
|
+
# Note: The following fields are mutually exclusive: `oauth2_client_credentials_config`, `google_service_account_config`, `user_password_config`, `api_key_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
1602
|
+
# @!attribute [rw] auth_type
|
1603
|
+
# @return [::Google::Cloud::ApiHub::V1::AuthType]
|
1604
|
+
# Required. The authentication type.
|
1605
|
+
class AuthConfig
|
1606
|
+
include ::Google::Protobuf::MessageExts
|
1607
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1608
|
+
|
1609
|
+
# Parameters to support Username and Password Authentication.
|
1610
|
+
# @!attribute [rw] username
|
1611
|
+
# @return [::String]
|
1612
|
+
# Required. Username.
|
1613
|
+
# @!attribute [rw] password
|
1614
|
+
# @return [::Google::Cloud::ApiHub::V1::Secret]
|
1615
|
+
# Required. Secret version reference containing the password.
|
1616
|
+
# The `secretmanager.versions.access` permission should be
|
1617
|
+
# granted to the service account accessing the secret.
|
1618
|
+
class UserPasswordConfig
|
1619
|
+
include ::Google::Protobuf::MessageExts
|
1620
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1621
|
+
end
|
1622
|
+
|
1623
|
+
# Parameters to support Oauth 2.0 client credentials grant authentication.
|
1624
|
+
# See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details.
|
1625
|
+
# @!attribute [rw] client_id
|
1626
|
+
# @return [::String]
|
1627
|
+
# Required. The client identifier.
|
1628
|
+
# @!attribute [rw] client_secret
|
1629
|
+
# @return [::Google::Cloud::ApiHub::V1::Secret]
|
1630
|
+
# Required. Secret version reference containing the client secret.
|
1631
|
+
# The `secretmanager.versions.access` permission should be
|
1632
|
+
# granted to the service account accessing the secret.
|
1633
|
+
class Oauth2ClientCredentialsConfig
|
1634
|
+
include ::Google::Protobuf::MessageExts
|
1635
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1636
|
+
end
|
1637
|
+
|
1638
|
+
# Config for authentication with API key.
|
1639
|
+
# @!attribute [rw] name
|
1640
|
+
# @return [::String]
|
1641
|
+
# Required. The parameter name of the API key.
|
1642
|
+
# E.g. If the API request is "https://example.com/act?api_key=<API KEY>",
|
1643
|
+
# "api_key" would be the parameter name.
|
1644
|
+
# @!attribute [rw] api_key
|
1645
|
+
# @return [::Google::Cloud::ApiHub::V1::Secret]
|
1646
|
+
# Required. The name of the SecretManager secret version resource storing
|
1647
|
+
# the API key. Format:
|
1648
|
+
# `projects/{project}/secrets/{secrete}/versions/{version}`. The
|
1649
|
+
# `secretmanager.versions.access` permission should be granted to the
|
1650
|
+
# service account accessing the secret.
|
1651
|
+
# @!attribute [rw] http_element_location
|
1652
|
+
# @return [::Google::Cloud::ApiHub::V1::AuthConfig::ApiKeyConfig::HttpElementLocation]
|
1653
|
+
# Required. The location of the API key.
|
1654
|
+
# The default value is QUERY.
|
1655
|
+
class ApiKeyConfig
|
1656
|
+
include ::Google::Protobuf::MessageExts
|
1657
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1658
|
+
|
1659
|
+
# Enum of location an HTTP element can be.
|
1660
|
+
module HttpElementLocation
|
1661
|
+
# HTTP element location not specified.
|
1662
|
+
HTTP_ELEMENT_LOCATION_UNSPECIFIED = 0
|
1663
|
+
|
1664
|
+
# Element is in the HTTP request query.
|
1665
|
+
QUERY = 1
|
1666
|
+
|
1667
|
+
# Element is in the HTTP request header.
|
1668
|
+
HEADER = 2
|
1669
|
+
|
1670
|
+
# Element is in the HTTP request path.
|
1671
|
+
PATH = 3
|
1672
|
+
|
1673
|
+
# Element is in the HTTP request body.
|
1674
|
+
BODY = 4
|
1675
|
+
|
1676
|
+
# Element is in the HTTP request cookie.
|
1677
|
+
COOKIE = 5
|
1678
|
+
end
|
1679
|
+
end
|
1680
|
+
end
|
1681
|
+
|
1682
|
+
# SourceMetadata represents the metadata for a resource at the source.
|
1683
|
+
# @!attribute [r] plugin_instance_action_source
|
1684
|
+
# @return [::Google::Cloud::ApiHub::V1::SourceMetadata::PluginInstanceActionSource]
|
1685
|
+
# Output only. The source of the resource is a plugin instance action.
|
1686
|
+
# @!attribute [r] source_type
|
1687
|
+
# @return [::Google::Cloud::ApiHub::V1::SourceMetadata::SourceType]
|
1688
|
+
# Output only. The type of the source.
|
1689
|
+
# @!attribute [r] original_resource_id
|
1690
|
+
# @return [::String]
|
1691
|
+
# Output only. The unique identifier of the resource at the source.
|
1692
|
+
# @!attribute [r] original_resource_create_time
|
1693
|
+
# @return [::Google::Protobuf::Timestamp]
|
1694
|
+
# Output only. The time at which the resource was created at the source.
|
1695
|
+
# @!attribute [r] original_resource_update_time
|
1696
|
+
# @return [::Google::Protobuf::Timestamp]
|
1697
|
+
# Output only. The time at which the resource was last updated at the source.
|
1698
|
+
class SourceMetadata
|
1699
|
+
include ::Google::Protobuf::MessageExts
|
1700
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1701
|
+
|
1702
|
+
# PluginInstanceActionSource represents the plugin instance action source.
|
1703
|
+
# @!attribute [r] plugin_instance
|
1704
|
+
# @return [::String]
|
1705
|
+
# Output only. The resource name of the source plugin instance.
|
1706
|
+
# Format is
|
1707
|
+
# `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
|
1708
|
+
# @!attribute [r] action_id
|
1709
|
+
# @return [::String]
|
1710
|
+
# Output only. The id of the plugin instance action.
|
1711
|
+
class PluginInstanceActionSource
|
1712
|
+
include ::Google::Protobuf::MessageExts
|
1713
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1714
|
+
end
|
1715
|
+
|
1716
|
+
# The possible types of the source.
|
1717
|
+
module SourceType
|
1718
|
+
# Source type not specified.
|
1719
|
+
SOURCE_TYPE_UNSPECIFIED = 0
|
1720
|
+
|
1721
|
+
# Source type plugin.
|
1722
|
+
PLUGIN = 1
|
1723
|
+
end
|
1724
|
+
end
|
1725
|
+
|
1726
|
+
# Respresents an API Observation observed in one of the sources.
|
1727
|
+
# @!attribute [rw] name
|
1728
|
+
# @return [::String]
|
1729
|
+
# Identifier. The name of the discovered API Observation.
|
1730
|
+
#
|
1731
|
+
# Format:
|
1732
|
+
# `projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}`
|
1733
|
+
# @!attribute [rw] style
|
1734
|
+
# @return [::Google::Cloud::ApiHub::V1::DiscoveredApiObservation::Style]
|
1735
|
+
# Optional. Style of ApiObservation
|
1736
|
+
# @!attribute [rw] server_ips
|
1737
|
+
# @return [::Array<::String>]
|
1738
|
+
# Optional. The IP address (IPv4 or IPv6) of the origin server that the
|
1739
|
+
# request was sent to. This field can include port information. Examples:
|
1740
|
+
# `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`.
|
1741
|
+
# @!attribute [rw] hostname
|
1742
|
+
# @return [::String]
|
1743
|
+
# Optional. The hostname of requests processed for this Observation.
|
1744
|
+
# @!attribute [rw] last_event_detected_time
|
1745
|
+
# @return [::Google::Protobuf::Timestamp]
|
1746
|
+
# Optional. Last event detected time stamp
|
1747
|
+
# @!attribute [rw] source_locations
|
1748
|
+
# @return [::Array<::String>]
|
1749
|
+
# Optional. The location of the observation source.
|
1750
|
+
# @!attribute [rw] api_operation_count
|
1751
|
+
# @return [::Integer]
|
1752
|
+
# Optional. The number of observed API Operations.
|
1753
|
+
# @!attribute [rw] origin
|
1754
|
+
# @return [::String]
|
1755
|
+
# Optional. For an observation pushed from a gcp resource, this would be the
|
1756
|
+
# gcp project id.
|
1757
|
+
# @!attribute [rw] source_types
|
1758
|
+
# @return [::Array<::Google::Cloud::ApiHub::V1::DiscoveredApiObservation::SourceType>]
|
1759
|
+
# Optional. The type of the source from which the observation was collected.
|
1760
|
+
# @!attribute [r] known_operations_count
|
1761
|
+
# @return [::Integer]
|
1762
|
+
# Output only. The number of known API Operations.
|
1763
|
+
# @!attribute [r] unknown_operations_count
|
1764
|
+
# @return [::Integer]
|
1765
|
+
# Output only. The number of unknown API Operations.
|
1766
|
+
# @!attribute [r] create_time
|
1767
|
+
# @return [::Google::Protobuf::Timestamp]
|
1768
|
+
# Output only. Create time stamp of the observation in API Hub.
|
1769
|
+
# @!attribute [r] update_time
|
1770
|
+
# @return [::Google::Protobuf::Timestamp]
|
1771
|
+
# Output only. Update time stamp of the observation in API Hub.
|
1772
|
+
# @!attribute [r] source_metadata
|
1773
|
+
# @return [::Google::Cloud::ApiHub::V1::SourceMetadata]
|
1774
|
+
# Output only. The metadata of the source from which the observation was
|
1775
|
+
# collected.
|
1776
|
+
class DiscoveredApiObservation
|
1777
|
+
include ::Google::Protobuf::MessageExts
|
1778
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1779
|
+
|
1780
|
+
# DiscoveredApiObservation protocol style
|
1781
|
+
module Style
|
1782
|
+
# Unknown style
|
1783
|
+
STYLE_UNSPECIFIED = 0
|
1784
|
+
|
1785
|
+
# Style is Rest API
|
1786
|
+
REST = 1
|
1787
|
+
|
1788
|
+
# Style is Grpc API
|
1789
|
+
GRPC = 2
|
1790
|
+
|
1791
|
+
# Style is GraphQL API
|
1792
|
+
GRAPHQL = 3
|
1793
|
+
end
|
1794
|
+
|
1795
|
+
# The possible types of the source from which the observation was collected.
|
1796
|
+
module SourceType
|
1797
|
+
# Source type not specified.
|
1798
|
+
SOURCE_TYPE_UNSPECIFIED = 0
|
1799
|
+
|
1800
|
+
# GCP external load balancer.
|
1801
|
+
GCP_XLB = 1
|
1802
|
+
|
1803
|
+
# GCP internal load balancer.
|
1804
|
+
GCP_ILB = 2
|
1805
|
+
end
|
1806
|
+
end
|
1807
|
+
|
1808
|
+
# DiscoveredApiOperation represents an API Operation observed in one of the
|
1809
|
+
# sources.
|
1810
|
+
# @!attribute [rw] http_operation
|
1811
|
+
# @return [::Google::Cloud::ApiHub::V1::HttpOperationDetails]
|
1812
|
+
# Optional. An HTTP Operation.
|
1813
|
+
# @!attribute [rw] name
|
1814
|
+
# @return [::String]
|
1815
|
+
# Identifier. The name of the discovered API Operation.
|
1816
|
+
#
|
1817
|
+
# Format:
|
1818
|
+
# `projects/{project}/locations/{location}/discoveredApiObservations/{discovered_api_observation}/discoveredApiOperations/{discovered_api_operation}`
|
1819
|
+
# @!attribute [rw] first_seen_time
|
1820
|
+
# @return [::Google::Protobuf::Timestamp]
|
1821
|
+
# Optional. First seen time stamp
|
1822
|
+
# @!attribute [rw] last_seen_time
|
1823
|
+
# @return [::Google::Protobuf::Timestamp]
|
1824
|
+
# Optional. Last seen time stamp
|
1825
|
+
# @!attribute [rw] count
|
1826
|
+
# @return [::Integer]
|
1827
|
+
# Optional. The number of occurrences of this API Operation.
|
1828
|
+
# @!attribute [r] classification
|
1829
|
+
# @return [::Google::Cloud::ApiHub::V1::DiscoveredApiOperation::Classification]
|
1830
|
+
# Output only. The classification of the discovered API operation.
|
1831
|
+
# @!attribute [r] match_results
|
1832
|
+
# @return [::Array<::Google::Cloud::ApiHub::V1::DiscoveredApiOperation::MatchResult>]
|
1833
|
+
# Output only. The list of matched results for the discovered API operation.
|
1834
|
+
# This will be populated only if the classification is known. The current
|
1835
|
+
# usecase is for a single match. Keeping it repeated to support multiple
|
1836
|
+
# matches in future.
|
1837
|
+
# @!attribute [r] source_metadata
|
1838
|
+
# @return [::Google::Cloud::ApiHub::V1::SourceMetadata]
|
1839
|
+
# Output only. The metadata of the source from which the api operation was
|
1840
|
+
# collected.
|
1841
|
+
# @!attribute [r] create_time
|
1842
|
+
# @return [::Google::Protobuf::Timestamp]
|
1843
|
+
# Output only. Create time stamp of the discovered API operation in API Hub.
|
1844
|
+
# @!attribute [r] update_time
|
1845
|
+
# @return [::Google::Protobuf::Timestamp]
|
1846
|
+
# Output only. Update time stamp of the discovered API operation in API Hub.
|
1847
|
+
class DiscoveredApiOperation
|
1848
|
+
include ::Google::Protobuf::MessageExts
|
1849
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1850
|
+
|
1851
|
+
# MatchResult represents the result of matching a discovered API operation
|
1852
|
+
# with a catalog API operation.
|
1853
|
+
# @!attribute [r] name
|
1854
|
+
# @return [::String]
|
1855
|
+
# Output only. The name of the matched API Operation.
|
1856
|
+
#
|
1857
|
+
# Format:
|
1858
|
+
# `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
|
1859
|
+
class MatchResult
|
1860
|
+
include ::Google::Protobuf::MessageExts
|
1861
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1862
|
+
end
|
1863
|
+
|
1864
|
+
# The classification of the discovered API operation.
|
1865
|
+
module Classification
|
1866
|
+
# Operation is not classified as known or unknown.
|
1867
|
+
CLASSIFICATION_UNSPECIFIED = 0
|
1868
|
+
|
1869
|
+
# Operation has a matched catalog operation.
|
1870
|
+
KNOWN = 1
|
1871
|
+
|
1872
|
+
# Operation does not have a matched catalog operation.
|
1873
|
+
UNKNOWN = 2
|
1874
|
+
end
|
1875
|
+
end
|
1876
|
+
|
1877
|
+
# An HTTP-based API Operation, sometimes called a "REST" Operation.
|
1878
|
+
# @!attribute [rw] http_operation
|
1879
|
+
# @return [::Google::Cloud::ApiHub::V1::HttpOperation]
|
1880
|
+
# Required. An HTTP Operation.
|
1881
|
+
# @!attribute [rw] path_params
|
1882
|
+
# @return [::Array<::Google::Cloud::ApiHub::V1::HttpOperationDetails::PathParam>]
|
1883
|
+
# Optional. Path params of HttpOperation
|
1884
|
+
# @!attribute [rw] query_params
|
1885
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::ApiHub::V1::HttpOperationDetails::QueryParam}]
|
1886
|
+
# Optional. Query params of HttpOperation
|
1887
|
+
# @!attribute [rw] request
|
1888
|
+
# @return [::Google::Cloud::ApiHub::V1::HttpOperationDetails::HttpRequest]
|
1889
|
+
# Optional. Request metadata.
|
1890
|
+
# @!attribute [rw] response
|
1891
|
+
# @return [::Google::Cloud::ApiHub::V1::HttpOperationDetails::HttpResponse]
|
1892
|
+
# Optional. Response metadata.
|
1893
|
+
class HttpOperationDetails
|
1894
|
+
include ::Google::Protobuf::MessageExts
|
1895
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1896
|
+
|
1897
|
+
# HTTP Path parameter.
|
1898
|
+
# @!attribute [rw] position
|
1899
|
+
# @return [::Integer]
|
1900
|
+
# Optional. Segment location in the path, 1-indexed
|
1901
|
+
# @!attribute [rw] data_type
|
1902
|
+
# @return [::Google::Cloud::ApiHub::V1::HttpOperationDetails::DataType]
|
1903
|
+
# Optional. Data type of path param
|
1904
|
+
class PathParam
|
1905
|
+
include ::Google::Protobuf::MessageExts
|
1906
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1907
|
+
end
|
1908
|
+
|
1909
|
+
# An aggregation of HTTP query parameter occurrences.
|
1910
|
+
# @!attribute [rw] name
|
1911
|
+
# @return [::String]
|
1912
|
+
# Required. Name of query param
|
1913
|
+
# @!attribute [rw] count
|
1914
|
+
# @return [::Integer]
|
1915
|
+
# Optional. The number of occurrences of this query parameter across
|
1916
|
+
# transactions.
|
1917
|
+
# @!attribute [rw] data_type
|
1918
|
+
# @return [::Google::Cloud::ApiHub::V1::HttpOperationDetails::DataType]
|
1919
|
+
# Optional. Data type of path param
|
1920
|
+
class QueryParam
|
1921
|
+
include ::Google::Protobuf::MessageExts
|
1922
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1923
|
+
end
|
1924
|
+
|
1925
|
+
# An aggregation of HTTP header occurrences.
|
1926
|
+
# @!attribute [rw] name
|
1927
|
+
# @return [::String]
|
1928
|
+
# Header name.
|
1929
|
+
# @!attribute [rw] count
|
1930
|
+
# @return [::Integer]
|
1931
|
+
# The number of occurrences of this Header across transactions.
|
1932
|
+
# @!attribute [rw] data_type
|
1933
|
+
# @return [::Google::Cloud::ApiHub::V1::HttpOperationDetails::DataType]
|
1934
|
+
# Data type of header
|
1935
|
+
class Header
|
1936
|
+
include ::Google::Protobuf::MessageExts
|
1937
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1938
|
+
end
|
1939
|
+
|
1940
|
+
# An aggregation of HTTP requests.
|
1941
|
+
# @!attribute [rw] headers
|
1942
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::ApiHub::V1::HttpOperationDetails::Header}]
|
1943
|
+
# Optional. Unordered map from header name to header metadata
|
1944
|
+
class HttpRequest
|
1945
|
+
include ::Google::Protobuf::MessageExts
|
1946
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1947
|
+
|
1948
|
+
# @!attribute [rw] key
|
1949
|
+
# @return [::String]
|
1950
|
+
# @!attribute [rw] value
|
1951
|
+
# @return [::Google::Cloud::ApiHub::V1::HttpOperationDetails::Header]
|
1952
|
+
class HeadersEntry
|
1953
|
+
include ::Google::Protobuf::MessageExts
|
1954
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1955
|
+
end
|
1956
|
+
end
|
1957
|
+
|
1958
|
+
# An aggregation of HTTP responses.
|
1959
|
+
# @!attribute [rw] headers
|
1960
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::ApiHub::V1::HttpOperationDetails::Header}]
|
1961
|
+
# Optional. Unordered map from header name to header metadata
|
1962
|
+
# @!attribute [rw] response_codes
|
1963
|
+
# @return [::Google::Protobuf::Map{::Integer => ::Integer}]
|
1964
|
+
# Optional. Map of status code to observed count
|
1965
|
+
class HttpResponse
|
1966
|
+
include ::Google::Protobuf::MessageExts
|
1967
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1968
|
+
|
1969
|
+
# @!attribute [rw] key
|
1970
|
+
# @return [::String]
|
1971
|
+
# @!attribute [rw] value
|
1972
|
+
# @return [::Google::Cloud::ApiHub::V1::HttpOperationDetails::Header]
|
1973
|
+
class HeadersEntry
|
1974
|
+
include ::Google::Protobuf::MessageExts
|
1975
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1976
|
+
end
|
1977
|
+
|
1978
|
+
# @!attribute [rw] key
|
1979
|
+
# @return [::Integer]
|
1980
|
+
# @!attribute [rw] value
|
1981
|
+
# @return [::Integer]
|
1982
|
+
class ResponseCodesEntry
|
1983
|
+
include ::Google::Protobuf::MessageExts
|
1984
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1985
|
+
end
|
1986
|
+
end
|
1987
|
+
|
1988
|
+
# @!attribute [rw] key
|
1989
|
+
# @return [::String]
|
1990
|
+
# @!attribute [rw] value
|
1991
|
+
# @return [::Google::Cloud::ApiHub::V1::HttpOperationDetails::QueryParam]
|
1992
|
+
class QueryParamsEntry
|
1993
|
+
include ::Google::Protobuf::MessageExts
|
1994
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1995
|
+
end
|
1996
|
+
|
1997
|
+
# Type of data
|
1998
|
+
module DataType
|
1999
|
+
# Unspecified data type
|
2000
|
+
DATA_TYPE_UNSPECIFIED = 0
|
2001
|
+
|
2002
|
+
# Boolean data type
|
2003
|
+
BOOL = 1
|
2004
|
+
|
2005
|
+
# Integer data type
|
2006
|
+
INTEGER = 2
|
2007
|
+
|
2008
|
+
# Float data type
|
2009
|
+
FLOAT = 3
|
2010
|
+
|
2011
|
+
# String data type
|
2012
|
+
STRING = 4
|
2013
|
+
|
2014
|
+
# UUID data type
|
2015
|
+
UUID = 5
|
2016
|
+
end
|
2017
|
+
end
|
2018
|
+
|
1262
2019
|
# Lint state represents success or failure for linting.
|
1263
2020
|
module LintState
|
1264
2021
|
# Lint state unspecified.
|
@@ -1300,6 +2057,40 @@ module Google
|
|
1300
2057
|
# Severity hint.
|
1301
2058
|
SEVERITY_HINT = 4
|
1302
2059
|
end
|
2060
|
+
|
2061
|
+
# AuthType represents the authentication type.
|
2062
|
+
module AuthType
|
2063
|
+
# Authentication type not specified.
|
2064
|
+
AUTH_TYPE_UNSPECIFIED = 0
|
2065
|
+
|
2066
|
+
# No authentication.
|
2067
|
+
NO_AUTH = 1
|
2068
|
+
|
2069
|
+
# Google service account authentication.
|
2070
|
+
GOOGLE_SERVICE_ACCOUNT = 2
|
2071
|
+
|
2072
|
+
# Username and password authentication.
|
2073
|
+
USER_PASSWORD = 3
|
2074
|
+
|
2075
|
+
# API Key authentication.
|
2076
|
+
API_KEY = 4
|
2077
|
+
|
2078
|
+
# Oauth 2.0 client credentials grant authentication.
|
2079
|
+
OAUTH2_CLIENT_CREDENTIALS = 5
|
2080
|
+
end
|
2081
|
+
|
2082
|
+
# Enum for the plugin category.
|
2083
|
+
module PluginCategory
|
2084
|
+
# Default unspecified plugin type.
|
2085
|
+
PLUGIN_CATEGORY_UNSPECIFIED = 0
|
2086
|
+
|
2087
|
+
# API_GATEWAY plugins represent plugins built for API Gateways like Apigee.
|
2088
|
+
API_GATEWAY = 1
|
2089
|
+
|
2090
|
+
# API_PRODUCER plugins represent plugins built for API Producers like
|
2091
|
+
# Cloud Run, Application Integration etc.
|
2092
|
+
API_PRODUCER = 2
|
2093
|
+
end
|
1303
2094
|
end
|
1304
2095
|
end
|
1305
2096
|
end
|