google-cloud-api_hub-v1 0.4.1 → 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.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/api_hub/v1/api_hub/paths.rb +21 -0
  3. data/lib/google/cloud/api_hub/v1/api_hub/rest/client.rb +497 -9
  4. data/lib/google/cloud/api_hub/v1/api_hub/rest/service_stub.rb +185 -0
  5. data/lib/google/cloud/api_hub/v1/api_hub_collect/credentials.rb +47 -0
  6. data/lib/google/cloud/api_hub/v1/api_hub_collect/paths.rb +218 -0
  7. data/lib/google/cloud/api_hub/v1/api_hub_collect/rest/client.rb +487 -0
  8. data/lib/google/cloud/api_hub/v1/api_hub_collect/rest/operations.rb +914 -0
  9. data/lib/google/cloud/api_hub/v1/api_hub_collect/rest/service_stub.rb +143 -0
  10. data/lib/google/cloud/api_hub/v1/api_hub_collect/rest.rb +56 -0
  11. data/lib/google/cloud/api_hub/v1/api_hub_collect.rb +50 -0
  12. data/lib/google/cloud/api_hub/v1/api_hub_curate/credentials.rb +47 -0
  13. data/lib/google/cloud/api_hub/v1/api_hub_curate/paths.rb +90 -0
  14. data/lib/google/cloud/api_hub/v1/api_hub_curate/rest/client.rb +869 -0
  15. data/lib/google/cloud/api_hub/v1/api_hub_curate/rest/service_stub.rb +388 -0
  16. data/lib/google/cloud/api_hub/v1/api_hub_curate/rest.rb +54 -0
  17. data/lib/google/cloud/api_hub/v1/api_hub_curate.rb +49 -0
  18. data/lib/google/cloud/api_hub/v1/api_hub_discovery/credentials.rb +47 -0
  19. data/lib/google/cloud/api_hub/v1/api_hub_discovery/paths.rb +90 -0
  20. data/lib/google/cloud/api_hub/v1/api_hub_discovery/rest/client.rb +750 -0
  21. data/lib/google/cloud/api_hub/v1/api_hub_discovery/rest/service_stub.rb +325 -0
  22. data/lib/google/cloud/api_hub/v1/api_hub_discovery/rest.rb +54 -0
  23. data/lib/google/cloud/api_hub/v1/api_hub_discovery.rb +49 -0
  24. data/lib/google/cloud/api_hub/v1/api_hub_plugin/paths.rb +74 -0
  25. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/client.rb +1265 -98
  26. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/operations.rb +914 -0
  27. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/service_stub.rb +677 -0
  28. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest.rb +1 -0
  29. data/lib/google/cloud/api_hub/v1/bindings_override.rb +2 -29
  30. data/lib/google/cloud/api_hub/v1/provisioning/rest/client.rb +96 -0
  31. data/lib/google/cloud/api_hub/v1/provisioning/rest/service_stub.rb +61 -0
  32. data/lib/google/cloud/api_hub/v1/rest.rb +3 -0
  33. data/lib/google/cloud/api_hub/v1/version.rb +1 -1
  34. data/lib/google/cloud/api_hub/v1.rb +3 -0
  35. data/lib/google/cloud/apihub/v1/apihub_service_pb.rb +4 -1
  36. data/lib/google/cloud/apihub/v1/apihub_service_services_pb.rb +35 -2
  37. data/lib/google/cloud/apihub/v1/collect_service_pb.rb +60 -0
  38. data/lib/google/cloud/apihub/v1/collect_service_services_pb.rb +47 -0
  39. data/lib/google/cloud/apihub/v1/common_fields_pb.rb +34 -1
  40. data/lib/google/cloud/apihub/v1/curate_service_pb.rb +63 -0
  41. data/lib/google/cloud/apihub/v1/curate_service_services_pb.rb +64 -0
  42. data/lib/google/cloud/apihub/v1/discovery_service_pb.rb +54 -0
  43. data/lib/google/cloud/apihub/v1/discovery_service_services_pb.rb +55 -0
  44. data/lib/google/cloud/apihub/v1/plugin_service_pb.rb +44 -1
  45. data/lib/google/cloud/apihub/v1/plugin_service_services_pb.rb +43 -1
  46. data/lib/google/cloud/apihub/v1/provisioning_service_pb.rb +3 -1
  47. data/lib/google/cloud/apihub/v1/provisioning_service_services_pb.rb +2 -0
  48. data/proto_docs/google/cloud/apihub/v1/apihub_service.rb +251 -15
  49. data/proto_docs/google/cloud/apihub/v1/collect_service.rb +188 -0
  50. data/proto_docs/google/cloud/apihub/v1/common_fields.rb +819 -28
  51. data/proto_docs/google/cloud/apihub/v1/curate_service.rb +268 -0
  52. data/proto_docs/google/cloud/apihub/v1/discovery_service.rb +124 -0
  53. data/proto_docs/google/cloud/apihub/v1/linting_service.rb +10 -4
  54. data/proto_docs/google/cloud/apihub/v1/plugin_service.rb +799 -1
  55. data/proto_docs/google/cloud/apihub/v1/provisioning_service.rb +13 -0
  56. metadata +40 -23
@@ -10,9 +10,10 @@ require 'google/api/field_behavior_pb'
10
10
  require 'google/api/resource_pb'
11
11
  require 'google/cloud/apihub/v1/common_fields_pb'
12
12
  require 'google/longrunning/operations_pb'
13
+ require 'google/protobuf/empty_pb'
13
14
 
14
15
 
15
- descriptor_data = "\n1google/cloud/apihub/v1/provisioning_service.proto\x12\x16google.cloud.apihub.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/apihub/v1/common_fields.proto\x1a#google/longrunning/operations.proto\"\xc1\x01\n\x1b\x43reateApiHubInstanceRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12 \n\x13\x61pi_hub_instance_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x45\n\x10\x61pi_hub_instance\x18\x03 \x01(\x0b\x32&.google.cloud.apihub.v1.ApiHubInstanceB\x03\xe0\x41\x02\"V\n\x18GetApiHubInstanceRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$apihub.googleapis.com/ApiHubInstance\"[\n\x1bLookupApiHubInstanceRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$apihub.googleapis.com/ApiHubInstance\"`\n\x1cLookupApiHubInstanceResponse\x12@\n\x10\x61pi_hub_instance\x18\x01 \x01(\x0b\x32&.google.cloud.apihub.v1.ApiHubInstance2\xef\x05\n\x0cProvisioning\x12\x8e\x02\n\x14\x43reateApiHubInstance\x12\x33.google.cloud.apihub.v1.CreateApiHubInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xa1\x01\xca\x41#\n\x0e\x41piHubInstance\x12\x11OperationMetadata\xda\x41+parent,api_hub_instance,api_hub_instance_id\x82\xd3\xe4\x93\x02G\"3/v1/{parent=projects/*/locations/*}/apiHubInstances:\x10\x61pi_hub_instance\x12\xb1\x01\n\x11GetApiHubInstance\x12\x30.google.cloud.apihub.v1.GetApiHubInstanceRequest\x1a&.google.cloud.apihub.v1.ApiHubInstance\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{name=projects/*/locations/*/apiHubInstances/*}\x12\xce\x01\n\x14LookupApiHubInstance\x12\x33.google.cloud.apihub.v1.LookupApiHubInstanceRequest\x1a\x34.google.cloud.apihub.v1.LookupApiHubInstanceResponse\"K\xda\x41\x06parent\x82\xd3\xe4\x93\x02<\x12:/v1/{parent=projects/*/locations/*}/apiHubInstances:lookup\x1aI\xca\x41\x15\x61pihub.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xba\x01\n\x1a\x63om.google.cloud.apihub.v1B\x18ProvisioningServiceProtoP\x01Z2cloud.google.com/go/apihub/apiv1/apihubpb;apihubpb\xaa\x02\x16Google.Cloud.ApiHub.V1\xca\x02\x16Google\\Cloud\\ApiHub\\V1\xea\x02\x19Google::Cloud::ApiHub::V1b\x06proto3"
16
+ descriptor_data = "\n1google/cloud/apihub/v1/provisioning_service.proto\x12\x16google.cloud.apihub.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/apihub/v1/common_fields.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xc1\x01\n\x1b\x43reateApiHubInstanceRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12 \n\x13\x61pi_hub_instance_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x45\n\x10\x61pi_hub_instance\x18\x03 \x01(\x0b\x32&.google.cloud.apihub.v1.ApiHubInstanceB\x03\xe0\x41\x02\"Y\n\x1b\x44\x65leteApiHubInstanceRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$apihub.googleapis.com/ApiHubInstance\"V\n\x18GetApiHubInstanceRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$apihub.googleapis.com/ApiHubInstance\"[\n\x1bLookupApiHubInstanceRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$apihub.googleapis.com/ApiHubInstance\"`\n\x1cLookupApiHubInstanceResponse\x12@\n\x10\x61pi_hub_instance\x18\x01 \x01(\x0b\x32&.google.cloud.apihub.v1.ApiHubInstance2\xcd\x07\n\x0cProvisioning\x12\x8e\x02\n\x14\x43reateApiHubInstance\x12\x33.google.cloud.apihub.v1.CreateApiHubInstanceRequest\x1a\x1d.google.longrunning.Operation\"\xa1\x01\xca\x41#\n\x0e\x41piHubInstance\x12\x11OperationMetadata\xda\x41+parent,api_hub_instance,api_hub_instance_id\x82\xd3\xe4\x93\x02G\"3/v1/{parent=projects/*/locations/*}/apiHubInstances:\x10\x61pi_hub_instance\x12\xdb\x01\n\x14\x44\x65leteApiHubInstance\x12\x33.google.cloud.apihub.v1.DeleteApiHubInstanceRequest\x1a\x1d.google.longrunning.Operation\"o\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35*3/v1/{name=projects/*/locations/*/apiHubInstances/*}\x12\xb1\x01\n\x11GetApiHubInstance\x12\x30.google.cloud.apihub.v1.GetApiHubInstanceRequest\x1a&.google.cloud.apihub.v1.ApiHubInstance\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{name=projects/*/locations/*/apiHubInstances/*}\x12\xce\x01\n\x14LookupApiHubInstance\x12\x33.google.cloud.apihub.v1.LookupApiHubInstanceRequest\x1a\x34.google.cloud.apihub.v1.LookupApiHubInstanceResponse\"K\xda\x41\x06parent\x82\xd3\xe4\x93\x02<\x12:/v1/{parent=projects/*/locations/*}/apiHubInstances:lookup\x1aI\xca\x41\x15\x61pihub.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xba\x01\n\x1a\x63om.google.cloud.apihub.v1B\x18ProvisioningServiceProtoP\x01Z2cloud.google.com/go/apihub/apiv1/apihubpb;apihubpb\xaa\x02\x16Google.Cloud.ApiHub.V1\xca\x02\x16Google\\Cloud\\ApiHub\\V1\xea\x02\x19Google::Cloud::ApiHub::V1b\x06proto3"
16
17
 
17
18
  pool = Google::Protobuf::DescriptorPool.generated_pool
18
19
 
@@ -44,6 +45,7 @@ module Google
44
45
  module ApiHub
45
46
  module V1
46
47
  CreateApiHubInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.CreateApiHubInstanceRequest").msgclass
48
+ DeleteApiHubInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.DeleteApiHubInstanceRequest").msgclass
47
49
  GetApiHubInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.GetApiHubInstanceRequest").msgclass
48
50
  LookupApiHubInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.LookupApiHubInstanceRequest").msgclass
49
51
  LookupApiHubInstanceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.apihub.v1.LookupApiHubInstanceResponse").msgclass
@@ -35,6 +35,8 @@ module Google
35
35
 
36
36
  # Provisions instance resources for the API Hub.
37
37
  rpc :CreateApiHubInstance, ::Google::Cloud::ApiHub::V1::CreateApiHubInstanceRequest, ::Google::Longrunning::Operation
38
+ # Deletes the API hub instance.
39
+ rpc :DeleteApiHubInstance, ::Google::Cloud::ApiHub::V1::DeleteApiHubInstanceRequest, ::Google::Longrunning::Operation
38
40
  # Gets details of a single API Hub instance.
39
41
  rpc :GetApiHubInstance, ::Google::Cloud::ApiHub::V1::GetApiHubInstanceRequest, ::Google::Cloud::ApiHub::V1::ApiHubInstance
40
42
  # Looks up an Api Hub instance in a given GCP project. There will always be
@@ -138,6 +138,37 @@ module Google
138
138
  # * `api_style.enum_values.values.display_name` - The allowed value display
139
139
  # name of the api style attribute associated with the ApiResource. Allowed
140
140
  # comparison operator is `:`.
141
+ # * `attributes.projects/test-project-id/locations/test-location-id/
142
+ # attributes/user-defined-attribute-id.enum_values.values.id` - The
143
+ # allowed value id of the user defined enum attribute associated with the
144
+ # Resource. Allowed comparison operator is `:`. Here
145
+ # user-defined-attribute-enum-id is a placeholder that can be replaced with
146
+ # any user defined enum attribute name.
147
+ # * `attributes.projects/test-project-id/locations/test-location-id/
148
+ # attributes/user-defined-attribute-id.enum_values.values.display_name`
149
+ # - The allowed value display name of the user defined enum attribute
150
+ # associated with the Resource. Allowed comparison operator is `:`. Here
151
+ # user-defined-attribute-enum-display-name is a placeholder that can be
152
+ # replaced with any user defined enum attribute enum name.
153
+ # * `attributes.projects/test-project-id/locations/test-location-id/
154
+ # attributes/user-defined-attribute-id.string_values.values` - The
155
+ # allowed value of the user defined string attribute associated with the
156
+ # Resource. Allowed comparison operator is `:`. Here
157
+ # user-defined-attribute-string is a placeholder that can be replaced with
158
+ # any user defined string attribute name.
159
+ # * `attributes.projects/test-project-id/locations/test-location-id/
160
+ # attributes/user-defined-attribute-id.json_values.values` - The
161
+ # allowed value of the user defined JSON attribute associated with the
162
+ # Resource. Allowed comparison operator is `:`. Here
163
+ # user-defined-attribute-json is a placeholder that can be replaced with
164
+ # any user defined JSON attribute name.
165
+ #
166
+ # A filter function is also supported in the filter string. The filter
167
+ # function is `id(name)`. The `id(name)` function returns the id of the
168
+ # resource name. For example, `id(name) = \"api-1\"` is equivalent to
169
+ # `name = \"projects/test-project-id/locations/test-location-id/apis/api-1\"`
170
+ # provided the parent is
171
+ # `projects/test-project-id/locations/test-location-id`.
141
172
  #
142
173
  # Expressions are combined with either `AND` logic operator or `OR` logical
143
174
  # operator but not both of them together i.e. only one of the `AND` or `OR`
@@ -163,6 +194,16 @@ module Google
163
194
  # specifies the APIs where the owner team email is _apihub@google.com_ or
164
195
  # the display name of the allowed value associated with the team attribute
165
196
  # is `ApiHub Team`.
197
+ # * `owner.email = \"apihub@google.com\" AND
198
+ # attributes.projects/test-project-id/locations/test-location-id/
199
+ # attributes/17650f90-4a29-4971-b3c0-d5532da3764b.enum_values.values.id:
200
+ # test_enum_id AND
201
+ # attributes.projects/test-project-id/locations/test-location-id/
202
+ # attributes/1765\0f90-4a29-5431-b3d0-d5532da3764c.string_values.values:
203
+ # test_string_value` - The filter string specifies the APIs where the
204
+ # owner team email is _apihub@google.com_ and the id of the allowed value
205
+ # associated with the user defined attribute of type enum is _test_enum_id_
206
+ # and the value of the user defined attribute of type string is _test_..
166
207
  # @!attribute [rw] page_size
167
208
  # @return [::Integer]
168
209
  # Optional. The maximum number of API resources to return. The service may
@@ -209,8 +250,11 @@ module Google
209
250
  # the specified id is already used by another version in the API resource.
210
251
  # * If not provided, a system generated id will be used.
211
252
  #
212
- # This value should be 4-500 characters, and valid characters
213
- # are /[a-z][A-Z][0-9]-_/.
253
+ # This value should be 4-500 characters, overall resource name which will be
254
+ # of format
255
+ # `projects/{project}/locations/{location}/apis/{api}/versions/{version}`,
256
+ # its length is limited to 700 characters and valid characters are
257
+ # /[a-z][A-Z][0-9]-_/.
214
258
  # @!attribute [rw] version
215
259
  # @return [::Google::Cloud::ApiHub::V1::Version]
216
260
  # Required. The version to create.
@@ -303,6 +347,30 @@ module Google
303
347
  # * `accreditation.enum_values.values.display_name` - The allowed value
304
348
  # display name of the accreditations attribute associated with the Version.
305
349
  # Allowed comparison operators: `:`.
350
+ # * `attributes.projects/test-project-id/locations/test-location-id/
351
+ # attributes/user-defined-attribute-id.enum_values.values.id` - The
352
+ # allowed value id of the user defined enum attribute associated with the
353
+ # Resource. Allowed comparison operator is `:`. Here
354
+ # user-defined-attribute-enum-id is a placeholder that can be replaced with
355
+ # any user defined enum attribute name.
356
+ # * `attributes.projects/test-project-id/locations/test-location-id/
357
+ # attributes/user-defined-attribute-id.enum_values.values.display_name`
358
+ # - The allowed value display name of the user defined enum attribute
359
+ # associated with the Resource. Allowed comparison operator is `:`. Here
360
+ # user-defined-attribute-enum-display-name is a placeholder that can be
361
+ # replaced with any user defined enum attribute enum name.
362
+ # * `attributes.projects/test-project-id/locations/test-location-id/
363
+ # attributes/user-defined-attribute-id.string_values.values` - The
364
+ # allowed value of the user defined string attribute associated with the
365
+ # Resource. Allowed comparison operator is `:`. Here
366
+ # user-defined-attribute-string is a placeholder that can be replaced with
367
+ # any user defined string attribute name.
368
+ # * `attributes.projects/test-project-id/locations/test-location-id/
369
+ # attributes/user-defined-attribute-id.json_values.values` - The
370
+ # allowed value of the user defined JSON attribute associated with the
371
+ # Resource. Allowed comparison operator is `:`. Here
372
+ # user-defined-attribute-json is a placeholder that can be replaced with
373
+ # any user defined JSON attribute name.
306
374
  #
307
375
  # Expressions are combined with either `AND` logic operator or `OR` logical
308
376
  # operator but not both of them together i.e. only one of the `AND` or `OR`
@@ -330,6 +398,12 @@ module Google
330
398
  # compliance.enum_values.values.id: pci-dss-id`
331
399
  # - The id of the allowed value associated with the compliance attribute is
332
400
  # _gdpr-id_ or _pci-dss-id_.
401
+ # * `lifecycle.enum_values.values.id: preview-id AND
402
+ # attributes.projects/test-project-id/locations/test-location-id/
403
+ # attributes/17650f90-4a29-4971-b3c0-d5532da3764b.string_values.values:
404
+ # test` - The filter string specifies that the id of the allowed value
405
+ # associated with the lifecycle attribute of the Version is _preview-id_
406
+ # and the value of the user defined attribute of type string is _test_.
333
407
  # @!attribute [rw] page_size
334
408
  # @return [::Integer]
335
409
  # Optional. The maximum number of versions to return. The service may return
@@ -378,8 +452,11 @@ module Google
378
452
  # resource.
379
453
  # * If not provided, a system generated id will be used.
380
454
  #
381
- # This value should be 4-500 characters, and valid characters
382
- # are /[a-z][A-Z][0-9]-_/.
455
+ # This value should be 4-500 characters, overall resource name which will be
456
+ # of format
457
+ # `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`,
458
+ # its length is limited to 1000 characters and valid characters are
459
+ # /[a-z][A-Z][0-9]-_/.
383
460
  # @!attribute [rw] spec
384
461
  # @return [::Google::Cloud::ApiHub::V1::Spec]
385
462
  # Required. The spec to create.
@@ -459,6 +536,30 @@ module Google
459
536
  # operators: `:`.
460
537
  # * `mime_type` - The MIME type of the Spec. Allowed comparison
461
538
  # operators: `=`.
539
+ # * `attributes.projects/test-project-id/locations/test-location-id/
540
+ # attributes/user-defined-attribute-id.enum_values.values.id` - The
541
+ # allowed value id of the user defined enum attribute associated with the
542
+ # Resource. Allowed comparison operator is `:`. Here
543
+ # user-defined-attribute-enum-id is a placeholder that can be replaced with
544
+ # any user defined enum attribute name.
545
+ # * `attributes.projects/test-project-id/locations/test-location-id/
546
+ # attributes/user-defined-attribute-id.enum_values.values.display_name`
547
+ # - The allowed value display name of the user defined enum attribute
548
+ # associated with the Resource. Allowed comparison operator is `:`. Here
549
+ # user-defined-attribute-enum-display-name is a placeholder that can be
550
+ # replaced with any user defined enum attribute enum name.
551
+ # * `attributes.projects/test-project-id/locations/test-location-id/
552
+ # attributes/user-defined-attribute-id.string_values.values` - The
553
+ # allowed value of the user defined string attribute associated with the
554
+ # Resource. Allowed comparison operator is `:`. Here
555
+ # user-defined-attribute-string is a placeholder that can be replaced with
556
+ # any user defined string attribute name.
557
+ # * `attributes.projects/test-project-id/locations/test-location-id/
558
+ # attributes/user-defined-attribute-id.json_values.values` - The
559
+ # allowed value of the user defined JSON attribute associated with the
560
+ # Resource. Allowed comparison operator is `:`. Here
561
+ # user-defined-attribute-json is a placeholder that can be replaced with
562
+ # any user defined JSON attribute name.
462
563
  #
463
564
  # Expressions are combined with either `AND` logic operator or `OR` logical
464
565
  # operator but not both of them together i.e. only one of the `AND` or `OR`
@@ -485,6 +586,13 @@ module Google
485
586
  # spec_type.enum_values.values.id: grpc-id`
486
587
  # - The id of the allowed value associated with the spec_type attribute is
487
588
  # _rest-id_ or _grpc-id_.
589
+ # * `spec_type.enum_values.values.id: rest-id AND
590
+ # attributes.projects/test-project-id/locations/test-location-id/
591
+ # attributes/17650f90-4a29-4971-b3c0-d5532da3764b.enum_values.values.id:
592
+ # test` - The filter string specifies that the id of the allowed value
593
+ # associated with the spec_type attribute is _rest-id_ and the id of the
594
+ # allowed value associated with the user defined attribute of type enum is
595
+ # _test_.
488
596
  # @!attribute [rw] page_size
489
597
  # @return [::Integer]
490
598
  # Optional. The maximum number of specs to return. The service may return
@@ -506,7 +614,7 @@ module Google
506
614
  # The {::Google::Cloud::ApiHub::V1::ApiHub::Rest::Client#list_specs ListSpecs} method's response.
507
615
  # @!attribute [rw] specs
508
616
  # @return [::Array<::Google::Cloud::ApiHub::V1::Spec>]
509
- # The specs corresponding to an API.
617
+ # The specs corresponding to an API Version.
510
618
  # @!attribute [rw] next_page_token
511
619
  # @return [::String]
512
620
  # A token, which can be sent as `page_token` to retrieve the next page.
@@ -528,6 +636,36 @@ module Google
528
636
  extend ::Google::Protobuf::MessageExts::ClassMethods
529
637
  end
530
638
 
639
+ # The {::Google::Cloud::ApiHub::V1::ApiHub::Rest::Client#create_api_operation CreateApiOperation}
640
+ # method's request.
641
+ # @!attribute [rw] parent
642
+ # @return [::String]
643
+ # Required. The parent resource for the operation resource.
644
+ # Format:
645
+ # `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
646
+ # @!attribute [rw] api_operation_id
647
+ # @return [::String]
648
+ # Optional. The ID to use for the operation resource, which will become the
649
+ # final component of the operation's resource name. This field is optional.
650
+ #
651
+ # * If provided, the same will be used. The service will throw an error if
652
+ # the specified id is already used by another operation resource in the API
653
+ # hub.
654
+ # * If not provided, a system generated id will be used.
655
+ #
656
+ # This value should be 4-500 characters, overall resource name which
657
+ # will be of format
658
+ # `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`,
659
+ # its length is limited to 700 characters, and valid characters are
660
+ # /[a-z][A-Z][0-9]-_/.
661
+ # @!attribute [rw] api_operation
662
+ # @return [::Google::Cloud::ApiHub::V1::ApiOperation]
663
+ # Required. The operation resource to create.
664
+ class CreateApiOperationRequest
665
+ include ::Google::Protobuf::MessageExts
666
+ extend ::Google::Protobuf::MessageExts::ClassMethods
667
+ end
668
+
531
669
  # The {::Google::Cloud::ApiHub::V1::ApiHub::Rest::Client#get_api_operation GetApiOperation} method's
532
670
  # request.
533
671
  # @!attribute [rw] name
@@ -540,6 +678,36 @@ module Google
540
678
  extend ::Google::Protobuf::MessageExts::ClassMethods
541
679
  end
542
680
 
681
+ # The {::Google::Cloud::ApiHub::V1::ApiHub::Rest::Client#update_api_operation UpdateApiOperation}
682
+ # method's request.
683
+ # @!attribute [rw] api_operation
684
+ # @return [::Google::Cloud::ApiHub::V1::ApiOperation]
685
+ # Required. The apiOperation resource to update.
686
+ #
687
+ # The operation resource's `name` field is used to identify the operation
688
+ # resource to update.
689
+ # Format:
690
+ # `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
691
+ # @!attribute [rw] update_mask
692
+ # @return [::Google::Protobuf::FieldMask]
693
+ # Required. The list of fields to update.
694
+ class UpdateApiOperationRequest
695
+ include ::Google::Protobuf::MessageExts
696
+ extend ::Google::Protobuf::MessageExts::ClassMethods
697
+ end
698
+
699
+ # The {::Google::Cloud::ApiHub::V1::ApiHub::Rest::Client#delete_api_operation DeleteApiOperation}
700
+ # method's request.
701
+ # @!attribute [rw] name
702
+ # @return [::String]
703
+ # Required. The name of the operation resource to delete.
704
+ # Format:
705
+ # `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
706
+ class DeleteApiOperationRequest
707
+ include ::Google::Protobuf::MessageExts
708
+ extend ::Google::Protobuf::MessageExts::ClassMethods
709
+ end
710
+
543
711
  # The {::Google::Cloud::ApiHub::V1::ApiHub::Rest::Client#list_api_operations ListApiOperations}
544
712
  # method's request.
545
713
  # @!attribute [rw] parent
@@ -570,6 +738,30 @@ module Google
570
738
  # * `create_time` - The time at which the ApiOperation was created. The
571
739
  # value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339]
572
740
  # format. Allowed comparison operators: `>` and `<`.
741
+ # * `attributes.projects/test-project-id/locations/test-location-id/
742
+ # attributes/user-defined-attribute-id.enum_values.values.id` - The
743
+ # allowed value id of the user defined enum attribute associated with the
744
+ # Resource. Allowed comparison operator is `:`. Here
745
+ # user-defined-attribute-enum-id is a placeholder that can be replaced with
746
+ # any user defined enum attribute name.
747
+ # * `attributes.projects/test-project-id/locations/test-location-id/
748
+ # attributes/user-defined-attribute-id.enum_values.values.display_name`
749
+ # - The allowed value display name of the user defined enum attribute
750
+ # associated with the Resource. Allowed comparison operator is `:`. Here
751
+ # user-defined-attribute-enum-display-name is a placeholder that can be
752
+ # replaced with any user defined enum attribute enum name.
753
+ # * `attributes.projects/test-project-id/locations/test-location-id/
754
+ # attributes/user-defined-attribute-id.string_values.values` - The
755
+ # allowed value of the user defined string attribute associated with the
756
+ # Resource. Allowed comparison operator is `:`. Here
757
+ # user-defined-attribute-string is a placeholder that can be replaced with
758
+ # any user defined string attribute name.
759
+ # * `attributes.projects/test-project-id/locations/test-location-id/
760
+ # attributes/user-defined-attribute-id.json_values.values` - The
761
+ # allowed value of the user defined JSON attribute associated with the
762
+ # Resource. Allowed comparison operator is `:`. Here
763
+ # user-defined-attribute-json is a placeholder that can be replaced with
764
+ # any user defined JSON attribute name.
573
765
  #
574
766
  # Expressions are combined with either `AND` logic operator or `OR` logical
575
767
  # operator but not both of them together i.e. only one of the `AND` or `OR`
@@ -589,6 +781,11 @@ module Google
589
781
  # * `details.http_operation.method = GET OR details.http_operation.method =
590
782
  # POST`. - The http operation of the method of ApiOperation is _GET_ or
591
783
  # _POST_.
784
+ # * `details.deprecated = True AND
785
+ # attributes.projects/test-project-id/locations/test-location-id/
786
+ # attributes/17650f90-4a29-4971-b3c0-d5532da3764b.string_values.values:
787
+ # test` - The filter string specifies that the ApiOperation is deprecated
788
+ # and the value of the user defined attribute of type string is _test_.
592
789
  # @!attribute [rw] page_size
593
790
  # @return [::Integer]
594
791
  # Optional. The maximum number of operations to return. The service may
@@ -612,9 +809,6 @@ module Google
612
809
  # @!attribute [rw] api_operations
613
810
  # @return [::Array<::Google::Cloud::ApiHub::V1::ApiOperation>]
614
811
  # The operations corresponding to an API version.
615
- # Only following field will be populated in the response: name,
616
- # spec, details.deprecated, details.http_operation.path.path,
617
- # details.http_operation.method and details.documentation.external_uri.
618
812
  # @!attribute [rw] next_page_token
619
813
  # @return [::String]
620
814
  # A token, which can be sent as `page_token` to retrieve the next page.
@@ -727,6 +921,10 @@ module Google
727
921
  # comparison operators: `=`.
728
922
  # * `api_versions` - The API versions linked to this deployment. Allowed
729
923
  # comparison operators: `:`.
924
+ # * `source_project` - The project/organization at source for the
925
+ # deployment. Allowed comparison operators: `=`.
926
+ # * `source_environment` - The environment at source for the
927
+ # deployment. Allowed comparison operators: `=`.
730
928
  # * `deployment_type.enum_values.values.id` - The allowed value id of the
731
929
  # deployment_type attribute associated with the Deployment. Allowed
732
930
  # comparison operators: `:`.
@@ -742,6 +940,38 @@ module Google
742
940
  # * `environment.enum_values.values.display_name` - The allowed value
743
941
  # display name of the environment attribute associated with the deployment.
744
942
  # Allowed comparison operators: `:`.
943
+ # * `attributes.projects/test-project-id/locations/test-location-id/
944
+ # attributes/user-defined-attribute-id.enum_values.values.id` - The
945
+ # allowed value id of the user defined enum attribute associated with the
946
+ # Resource. Allowed comparison operator is `:`. Here
947
+ # user-defined-attribute-enum-id is a placeholder that can be replaced with
948
+ # any user defined enum attribute name.
949
+ # * `attributes.projects/test-project-id/locations/test-location-id/
950
+ # attributes/user-defined-attribute-id.enum_values.values.display_name`
951
+ # - The allowed value display name of the user defined enum attribute
952
+ # associated with the Resource. Allowed comparison operator is `:`. Here
953
+ # user-defined-attribute-enum-display-name is a placeholder that can be
954
+ # replaced with any user defined enum attribute enum name.
955
+ # * `attributes.projects/test-project-id/locations/test-location-id/
956
+ # attributes/user-defined-attribute-id.string_values.values` - The
957
+ # allowed value of the user defined string attribute associated with the
958
+ # Resource. Allowed comparison operator is `:`. Here
959
+ # user-defined-attribute-string is a placeholder that can be replaced with
960
+ # any user defined string attribute name.
961
+ # * `attributes.projects/test-project-id/locations/test-location-id/
962
+ # attributes/user-defined-attribute-id.json_values.values` - The
963
+ # allowed value of the user defined JSON attribute associated with the
964
+ # Resource. Allowed comparison operator is `:`. Here
965
+ # user-defined-attribute-json is a placeholder that can be replaced with
966
+ # any user defined JSON attribute name.
967
+ #
968
+ # A filter function is also supported in the filter string. The filter
969
+ # function is `id(name)`. The `id(name)` function returns the id of the
970
+ # resource name. For example, `id(name) = \"deployment-1\"` is equivalent to
971
+ # `name =
972
+ # \"projects/test-project-id/locations/test-location-id/deployments/deployment-1\"`
973
+ # provided the parent is
974
+ # `projects/test-project-id/locations/test-location-id`.
745
975
  #
746
976
  # Expressions are combined with either `AND` logic operator or `OR` logical
747
977
  # operator but not both of them together i.e. only one of the `AND` or `OR`
@@ -767,6 +997,12 @@ module Google
767
997
  # slo.string_values.values: \"99.99%\"`
768
998
  # - The allowed value id of the environment attribute Deployment is
769
999
  # _production-id_ or string value of the slo attribute is _99.99%_.
1000
+ # * `environment.enum_values.values.id: staging-id AND
1001
+ # attributes.projects/test-project-id/locations/test-location-id/
1002
+ # attributes/17650f90-4a29-4971-b3c0-d5532da3764b.string_values.values:
1003
+ # test` - The filter string specifies that the allowed value id of the
1004
+ # environment attribute associated with the Deployment is _staging-id_ and
1005
+ # the value of the user defined attribute of type string is _test_.
770
1006
  # @!attribute [rw] page_size
771
1007
  # @return [::Integer]
772
1008
  # Optional. The maximum number of deployment resources to return. The service
@@ -1015,19 +1251,21 @@ module Google
1015
1251
  # @!attribute [rw] operation
1016
1252
  # @return [::Google::Cloud::ApiHub::V1::ApiOperation]
1017
1253
  # This represents ApiOperation resource in search results. Only name,
1018
- # and description fields are populated in search results.
1254
+ # description, spec and details fields are populated in search results.
1019
1255
  #
1020
1256
  # Note: The following fields are mutually exclusive: `operation`, `api`, `deployment`, `spec`, `definition`, `version`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1021
1257
  # @!attribute [rw] deployment
1022
1258
  # @return [::Google::Cloud::ApiHub::V1::Deployment]
1023
1259
  # This represents Deployment resource in search results. Only name,
1024
- # display_name and description fields are populated in search results.
1260
+ # display_name, description, deployment_type and api_versions fields are
1261
+ # populated in search results.
1025
1262
  #
1026
1263
  # Note: The following fields are mutually exclusive: `deployment`, `api`, `operation`, `spec`, `definition`, `version`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1027
1264
  # @!attribute [rw] spec
1028
1265
  # @return [::Google::Cloud::ApiHub::V1::Spec]
1029
1266
  # This represents Spec resource in search results. Only name,
1030
- # display_name and description fields are populated in search results.
1267
+ # display_name, description, spec_type and documentation fields are
1268
+ # populated in search results.
1031
1269
  #
1032
1270
  # Note: The following fields are mutually exclusive: `spec`, `api`, `operation`, `deployment`, `definition`, `version`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1033
1271
  # @!attribute [rw] definition
@@ -1039,7 +1277,8 @@ module Google
1039
1277
  # @!attribute [rw] version
1040
1278
  # @return [::Google::Cloud::ApiHub::V1::Version]
1041
1279
  # This represents Version resource in search results. Only name,
1042
- # display_name and description fields are populated in search results.
1280
+ # display_name, description, lifecycle, compliance and accreditation fields
1281
+ # are populated in search results.
1043
1282
  #
1044
1283
  # Note: The following fields are mutually exclusive: `version`, `api`, `operation`, `deployment`, `spec`, `definition`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1045
1284
  class ApiHubResource
@@ -1206,7 +1445,6 @@ module Google
1206
1445
  # @!attribute [rw] dependencies
1207
1446
  # @return [::Array<::Google::Cloud::ApiHub::V1::Dependency>]
1208
1447
  # The dependency resources present in the API hub.
1209
- # Only following field will be populated in the response: name.
1210
1448
  # @!attribute [rw] next_page_token
1211
1449
  # @return [::String]
1212
1450
  # A token, which can be sent as `page_token` to retrieve the next page.
@@ -1313,8 +1551,6 @@ module Google
1313
1551
  # @!attribute [rw] external_apis
1314
1552
  # @return [::Array<::Google::Cloud::ApiHub::V1::ExternalApi>]
1315
1553
  # The External API resources present in the API hub.
1316
- # Only following fields will be populated in the response: name,
1317
- # display_name, documentation.external_uri.
1318
1554
  # @!attribute [rw] next_page_token
1319
1555
  # @return [::String]
1320
1556
  # A token, which can be sent as `page_token` to retrieve the next page.
@@ -0,0 +1,188 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module ApiHub
23
+ module V1
24
+ # The CollectApiData method's request.
25
+ # @!attribute [rw] location
26
+ # @return [::String]
27
+ # Required. The regional location of the API hub instance and its resources.
28
+ # Format: `projects/{project}/locations/{location}`
29
+ # @!attribute [rw] collection_type
30
+ # @return [::Google::Cloud::ApiHub::V1::CollectionType]
31
+ # Required. The type of collection. Applies to all entries in
32
+ # {::Google::Cloud::ApiHub::V1::CollectApiDataRequest#api_data api_data}.
33
+ # @!attribute [rw] plugin_instance
34
+ # @return [::String]
35
+ # Required. The plugin instance collecting the API data.
36
+ # Format:
37
+ # `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.
38
+ # @!attribute [rw] action_id
39
+ # @return [::String]
40
+ # Required. The action ID to be used for collecting the API data.
41
+ # This should map to one of the action IDs specified
42
+ # in action configs in the plugin.
43
+ # @!attribute [rw] api_data
44
+ # @return [::Google::Cloud::ApiHub::V1::ApiData]
45
+ # Required. The API data to be collected.
46
+ class CollectApiDataRequest
47
+ include ::Google::Protobuf::MessageExts
48
+ extend ::Google::Protobuf::MessageExts::ClassMethods
49
+ end
50
+
51
+ # The API data to be collected.
52
+ # @!attribute [rw] api_metadata_list
53
+ # @return [::Google::Cloud::ApiHub::V1::ApiMetadataList]
54
+ # Optional. The list of API metadata.
55
+ class ApiData
56
+ include ::Google::Protobuf::MessageExts
57
+ extend ::Google::Protobuf::MessageExts::ClassMethods
58
+ end
59
+
60
+ # The message to hold repeated API metadata.
61
+ # @!attribute [rw] api_metadata
62
+ # @return [::Array<::Google::Cloud::ApiHub::V1::APIMetadata>]
63
+ # Required. The list of API metadata.
64
+ class ApiMetadataList
65
+ include ::Google::Protobuf::MessageExts
66
+ extend ::Google::Protobuf::MessageExts::ClassMethods
67
+ end
68
+
69
+ # The API metadata.
70
+ # @!attribute [rw] api
71
+ # @return [::Google::Cloud::ApiHub::V1::Api]
72
+ # Required. The API resource to be pushed to Hub's collect layer. The ID of
73
+ # the API resource will be generated by Hub to ensure uniqueness across all
74
+ # APIs across systems.
75
+ # @!attribute [rw] versions
76
+ # @return [::Array<::Google::Cloud::ApiHub::V1::VersionMetadata>]
77
+ # Optional. The list of versions present in an API resource.
78
+ # @!attribute [rw] original_id
79
+ # @return [::String]
80
+ # Optional. The unique identifier of the API in the system where it was
81
+ # originally created.
82
+ # @!attribute [rw] original_create_time
83
+ # @return [::Google::Protobuf::Timestamp]
84
+ # Optional. Timestamp indicating when the API was created at the source.
85
+ # @!attribute [rw] original_update_time
86
+ # @return [::Google::Protobuf::Timestamp]
87
+ # Required. Timestamp indicating when the API was last updated at the source.
88
+ class APIMetadata
89
+ include ::Google::Protobuf::MessageExts
90
+ extend ::Google::Protobuf::MessageExts::ClassMethods
91
+ end
92
+
93
+ # The metadata associated with a version of the API resource.
94
+ # @!attribute [rw] version
95
+ # @return [::Google::Cloud::ApiHub::V1::Version]
96
+ # Required. Represents a version of the API resource in API hub. The ID of
97
+ # the version will be generated by Hub.
98
+ # @!attribute [rw] specs
99
+ # @return [::Array<::Google::Cloud::ApiHub::V1::SpecMetadata>]
100
+ # Optional. The specs associated with this version.
101
+ # Note that an API version can be associated with multiple specs.
102
+ # @!attribute [rw] deployments
103
+ # @return [::Array<::Google::Cloud::ApiHub::V1::DeploymentMetadata>]
104
+ # Optional. The deployments linked to this API version.
105
+ # Note: A particular API version could be deployed to multiple deployments
106
+ # (for dev deployment, UAT deployment, etc.)
107
+ # @!attribute [rw] original_id
108
+ # @return [::String]
109
+ # Optional. The unique identifier of the version in the system where it was
110
+ # originally created.
111
+ # @!attribute [rw] original_create_time
112
+ # @return [::Google::Protobuf::Timestamp]
113
+ # Optional. Timestamp indicating when the version was created at the source.
114
+ # @!attribute [rw] original_update_time
115
+ # @return [::Google::Protobuf::Timestamp]
116
+ # Required. Timestamp indicating when the version was last updated at the
117
+ # source.
118
+ class VersionMetadata
119
+ include ::Google::Protobuf::MessageExts
120
+ extend ::Google::Protobuf::MessageExts::ClassMethods
121
+ end
122
+
123
+ # The metadata associated with a spec of the API version.
124
+ # @!attribute [rw] spec
125
+ # @return [::Google::Cloud::ApiHub::V1::Spec]
126
+ # Required. The spec resource to be pushed to Hub's collect layer. The ID of
127
+ # the spec will be generated by Hub.
128
+ # @!attribute [rw] original_id
129
+ # @return [::String]
130
+ # Optional. The unique identifier of the spec in the system where it was
131
+ # originally created.
132
+ # @!attribute [rw] original_create_time
133
+ # @return [::Google::Protobuf::Timestamp]
134
+ # Optional. Timestamp indicating when the spec was created at the source.
135
+ # @!attribute [rw] original_update_time
136
+ # @return [::Google::Protobuf::Timestamp]
137
+ # Required. Timestamp indicating when the spec was last updated at the
138
+ # source.
139
+ class SpecMetadata
140
+ include ::Google::Protobuf::MessageExts
141
+ extend ::Google::Protobuf::MessageExts::ClassMethods
142
+ end
143
+
144
+ # The metadata associated with a deployment.
145
+ # @!attribute [rw] deployment
146
+ # @return [::Google::Cloud::ApiHub::V1::Deployment]
147
+ # Required. The deployment resource to be pushed to Hub's collect layer. The
148
+ # ID of the deployment will be generated by Hub.
149
+ # @!attribute [rw] original_id
150
+ # @return [::String]
151
+ # Optional. The unique identifier of the deployment in the system where it
152
+ # was originally created.
153
+ # @!attribute [rw] original_create_time
154
+ # @return [::Google::Protobuf::Timestamp]
155
+ # Optional. Timestamp indicating when the deployment was created at the
156
+ # source.
157
+ # @!attribute [rw] original_update_time
158
+ # @return [::Google::Protobuf::Timestamp]
159
+ # Required. Timestamp indicating when the deployment was last updated at the
160
+ # source.
161
+ class DeploymentMetadata
162
+ include ::Google::Protobuf::MessageExts
163
+ extend ::Google::Protobuf::MessageExts::ClassMethods
164
+ end
165
+
166
+ # The CollectApiData method's response.
167
+ class CollectApiDataResponse
168
+ include ::Google::Protobuf::MessageExts
169
+ extend ::Google::Protobuf::MessageExts::ClassMethods
170
+ end
171
+
172
+ # The type of the collect request.
173
+ module CollectionType
174
+ # The default value. This value is used if the collection type is omitted.
175
+ COLLECTION_TYPE_UNSPECIFIED = 0
176
+
177
+ # The collection type is upsert. This should be used when an API is created
178
+ # or updated at the source.
179
+ COLLECTION_TYPE_UPSERT = 1
180
+
181
+ # The collection type is delete. This should be used when an API is deleted
182
+ # at the source.
183
+ COLLECTION_TYPE_DELETE = 2
184
+ end
185
+ end
186
+ end
187
+ end
188
+ end