google-cloud-api_hub-v1 0.a → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/api_hub/v1/api_hub/client.rb +4514 -0
  6. data/lib/google/cloud/api_hub/v1/api_hub/credentials.rb +47 -0
  7. data/lib/google/cloud/api_hub/v1/api_hub/paths.rb +216 -0
  8. data/lib/google/cloud/api_hub/v1/api_hub/rest/client.rb +4251 -0
  9. data/lib/google/cloud/api_hub/v1/api_hub/rest/service_stub.rb +2147 -0
  10. data/lib/google/cloud/api_hub/v1/api_hub/rest.rb +53 -0
  11. data/lib/google/cloud/api_hub/v1/api_hub.rb +55 -0
  12. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/client.rb +906 -0
  13. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/credentials.rb +47 -0
  14. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/paths.rb +88 -0
  15. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/rest/client.rb +853 -0
  16. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/rest/service_stub.rb +366 -0
  17. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/rest.rb +54 -0
  18. data/lib/google/cloud/api_hub/v1/api_hub_dependencies.rb +56 -0
  19. data/lib/google/cloud/api_hub/v1/api_hub_plugin/client.rb +640 -0
  20. data/lib/google/cloud/api_hub/v1/api_hub_plugin/credentials.rb +47 -0
  21. data/lib/google/cloud/api_hub/v1/api_hub_plugin/paths.rb +52 -0
  22. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/client.rb +601 -0
  23. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/service_stub.rb +248 -0
  24. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest.rb +53 -0
  25. data/lib/google/cloud/api_hub/v1/api_hub_plugin.rb +55 -0
  26. data/lib/google/cloud/api_hub/v1/bindings_override.rb +102 -0
  27. data/lib/google/cloud/api_hub/v1/host_project_registration_service/client.rb +689 -0
  28. data/lib/google/cloud/api_hub/v1/host_project_registration_service/credentials.rb +47 -0
  29. data/lib/google/cloud/api_hub/v1/host_project_registration_service/paths.rb +83 -0
  30. data/lib/google/cloud/api_hub/v1/host_project_registration_service/rest/client.rb +650 -0
  31. data/lib/google/cloud/api_hub/v1/host_project_registration_service/rest/service_stub.rb +247 -0
  32. data/lib/google/cloud/api_hub/v1/host_project_registration_service/rest.rb +53 -0
  33. data/lib/google/cloud/api_hub/v1/host_project_registration_service.rb +55 -0
  34. data/lib/google/cloud/api_hub/v1/linting_service/client.rb +744 -0
  35. data/lib/google/cloud/api_hub/v1/linting_service/credentials.rb +47 -0
  36. data/lib/google/cloud/api_hub/v1/linting_service/paths.rb +75 -0
  37. data/lib/google/cloud/api_hub/v1/linting_service/rest/client.rb +698 -0
  38. data/lib/google/cloud/api_hub/v1/linting_service/rest/service_stub.rb +307 -0
  39. data/lib/google/cloud/api_hub/v1/linting_service/rest.rb +53 -0
  40. data/lib/google/cloud/api_hub/v1/linting_service.rb +55 -0
  41. data/lib/google/cloud/api_hub/v1/provisioning/client.rb +676 -0
  42. data/lib/google/cloud/api_hub/v1/provisioning/credentials.rb +47 -0
  43. data/lib/google/cloud/api_hub/v1/provisioning/operations.rb +809 -0
  44. data/lib/google/cloud/api_hub/v1/provisioning/paths.rb +69 -0
  45. data/lib/google/cloud/api_hub/v1/provisioning/rest/client.rb +637 -0
  46. data/lib/google/cloud/api_hub/v1/provisioning/rest/operations.rb +902 -0
  47. data/lib/google/cloud/api_hub/v1/provisioning/rest/service_stub.rb +247 -0
  48. data/lib/google/cloud/api_hub/v1/provisioning/rest.rb +54 -0
  49. data/lib/google/cloud/api_hub/v1/provisioning.rb +56 -0
  50. data/lib/google/cloud/api_hub/v1/rest.rb +44 -0
  51. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/client.rb +885 -0
  52. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/credentials.rb +47 -0
  53. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/paths.rb +83 -0
  54. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/rest/client.rb +832 -0
  55. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/rest/service_stub.rb +365 -0
  56. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/rest.rb +53 -0
  57. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service.rb +55 -0
  58. data/lib/google/cloud/api_hub/v1/version.rb +7 -2
  59. data/lib/google/cloud/api_hub/v1.rb +51 -0
  60. data/lib/google/cloud/apihub/v1/apihub_service_pb.rb +102 -0
  61. data/lib/google/cloud/apihub/v1/apihub_service_services_pb.rb +288 -0
  62. data/lib/google/cloud/apihub/v1/common_fields_pb.rb +92 -0
  63. data/lib/google/cloud/apihub/v1/host_project_registration_service_pb.rb +53 -0
  64. data/lib/google/cloud/apihub/v1/host_project_registration_service_services_pb.rb +53 -0
  65. data/lib/google/cloud/apihub/v1/linting_service_pb.rb +56 -0
  66. data/lib/google/cloud/apihub/v1/linting_service_services_pb.rb +53 -0
  67. data/lib/google/cloud/apihub/v1/plugin_service_pb.rb +53 -0
  68. data/lib/google/cloud/apihub/v1/plugin_service_services_pb.rb +51 -0
  69. data/lib/google/cloud/apihub/v1/provisioning_service_pb.rb +53 -0
  70. data/lib/google/cloud/apihub/v1/provisioning_service_services_pb.rb +50 -0
  71. data/lib/google/cloud/apihub/v1/runtime_project_attachment_service_pb.rb +57 -0
  72. data/lib/google/cloud/apihub/v1/runtime_project_attachment_service_services_pb.rb +55 -0
  73. data/lib/google-cloud-api_hub-v1.rb +21 -0
  74. data/proto_docs/README.md +4 -0
  75. data/proto_docs/google/api/client.rb +403 -0
  76. data/proto_docs/google/api/field_behavior.rb +85 -0
  77. data/proto_docs/google/api/launch_stage.rb +71 -0
  78. data/proto_docs/google/api/resource.rb +227 -0
  79. data/proto_docs/google/cloud/apihub/v1/apihub_service.rb +1317 -0
  80. data/proto_docs/google/cloud/apihub/v1/common_fields.rb +1296 -0
  81. data/proto_docs/google/cloud/apihub/v1/host_project_registration_service.rb +146 -0
  82. data/proto_docs/google/cloud/apihub/v1/linting_service.rb +103 -0
  83. data/proto_docs/google/cloud/apihub/v1/plugin_service.rb +104 -0
  84. data/proto_docs/google/cloud/apihub/v1/provisioning_service.rb +87 -0
  85. data/proto_docs/google/cloud/apihub/v1/runtime_project_attachment_service.rb +182 -0
  86. data/proto_docs/google/longrunning/operations.rb +164 -0
  87. data/proto_docs/google/protobuf/any.rb +145 -0
  88. data/proto_docs/google/protobuf/duration.rb +98 -0
  89. data/proto_docs/google/protobuf/empty.rb +34 -0
  90. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  91. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  92. data/proto_docs/google/rpc/status.rb +48 -0
  93. metadata +155 -10
@@ -0,0 +1,146 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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
25
+ # {::Google::Cloud::ApiHub::V1::HostProjectRegistrationService::Client#create_host_project_registration CreateHostProjectRegistration}
26
+ # method's request.
27
+ # @!attribute [rw] parent
28
+ # @return [::String]
29
+ # Required. The parent resource for the host project.
30
+ # Format: `projects/{project}/locations/{location}`
31
+ # @!attribute [rw] host_project_registration_id
32
+ # @return [::String]
33
+ # Required. The ID to use for the Host Project Registration, which will
34
+ # become the final component of the host project registration's resource
35
+ # name. The ID must be the same as the Google cloud project specified in the
36
+ # host_project_registration.gcp_project field.
37
+ # @!attribute [rw] host_project_registration
38
+ # @return [::Google::Cloud::ApiHub::V1::HostProjectRegistration]
39
+ # Required. The host project registration to register.
40
+ class CreateHostProjectRegistrationRequest
41
+ include ::Google::Protobuf::MessageExts
42
+ extend ::Google::Protobuf::MessageExts::ClassMethods
43
+ end
44
+
45
+ # The
46
+ # {::Google::Cloud::ApiHub::V1::HostProjectRegistrationService::Client#get_host_project_registration GetHostProjectRegistration}
47
+ # method's request.
48
+ # @!attribute [rw] name
49
+ # @return [::String]
50
+ # Required. Host project registration resource name.
51
+ # projects/\\{project}/locations/\\{location}/hostProjectRegistrations/\\{host_project_registration_id}
52
+ class GetHostProjectRegistrationRequest
53
+ include ::Google::Protobuf::MessageExts
54
+ extend ::Google::Protobuf::MessageExts::ClassMethods
55
+ end
56
+
57
+ # The
58
+ # {::Google::Cloud::ApiHub::V1::HostProjectRegistrationService::Client#list_host_project_registrations ListHostProjectRegistrations}
59
+ # method's request.
60
+ # @!attribute [rw] parent
61
+ # @return [::String]
62
+ # Required. The parent, which owns this collection of host projects.
63
+ # Format: `projects/*/locations/*`
64
+ # @!attribute [rw] page_size
65
+ # @return [::Integer]
66
+ # Optional. The maximum number of host project registrations to return. The
67
+ # service may return fewer than this value. If unspecified, at most 50 host
68
+ # project registrations will be returned. The maximum value is 1000; values
69
+ # above 1000 will be coerced to 1000.
70
+ # @!attribute [rw] page_token
71
+ # @return [::String]
72
+ # Optional. A page token, received from a previous
73
+ # `ListHostProjectRegistrations` call. Provide this to retrieve the
74
+ # subsequent page.
75
+ #
76
+ # When paginating, all other parameters (except page_size) provided to
77
+ # `ListHostProjectRegistrations` must match the call that provided the page
78
+ # token.
79
+ # @!attribute [rw] filter
80
+ # @return [::String]
81
+ # Optional. An expression that filters the list of HostProjectRegistrations.
82
+ #
83
+ # A filter expression consists of a field name, a comparison
84
+ # operator, and a value for filtering. The value must be a string. All
85
+ # standard operators as documented at https://google.aip.dev/160 are
86
+ # supported.
87
+ #
88
+ # The following fields in the `HostProjectRegistration` are eligible for
89
+ # filtering:
90
+ #
91
+ # * `name` - The name of the HostProjectRegistration.
92
+ # * `create_time` - The time at which the HostProjectRegistration was
93
+ # created. The value should be in the
94
+ # (RFC3339)[https://tools.ietf.org/html/rfc3339] format.
95
+ # * `gcp_project` - The Google cloud project associated with the
96
+ # HostProjectRegistration.
97
+ # @!attribute [rw] order_by
98
+ # @return [::String]
99
+ # Optional. Hint for how to order the results.
100
+ class ListHostProjectRegistrationsRequest
101
+ include ::Google::Protobuf::MessageExts
102
+ extend ::Google::Protobuf::MessageExts::ClassMethods
103
+ end
104
+
105
+ # The
106
+ # {::Google::Cloud::ApiHub::V1::HostProjectRegistrationService::Client#list_host_project_registrations ListHostProjectRegistrations}
107
+ # method's response.
108
+ # @!attribute [rw] host_project_registrations
109
+ # @return [::Array<::Google::Cloud::ApiHub::V1::HostProjectRegistration>]
110
+ # The list of host project registrations.
111
+ # @!attribute [rw] next_page_token
112
+ # @return [::String]
113
+ # A token, which can be sent as `page_token` to retrieve the next page.
114
+ # If this field is omitted, there are no subsequent pages.
115
+ class ListHostProjectRegistrationsResponse
116
+ include ::Google::Protobuf::MessageExts
117
+ extend ::Google::Protobuf::MessageExts::ClassMethods
118
+ end
119
+
120
+ # Host project registration refers to the registration of a Google cloud
121
+ # project with Api Hub as a host project. This is the project where Api Hub is
122
+ # provisioned. It acts as the consumer project for the Api Hub instance
123
+ # provisioned. Multiple runtime projects can be attached to the host project
124
+ # and these attachments define the scope of Api Hub.
125
+ # @!attribute [rw] name
126
+ # @return [::String]
127
+ # Identifier. The name of the host project registration.
128
+ # Format:
129
+ # "projects/\\{project}/locations/\\{location}/hostProjectRegistrations/\\{host_project_registration}".
130
+ # @!attribute [rw] gcp_project
131
+ # @return [::String]
132
+ # Required. Immutable. Google cloud project name in the format:
133
+ # "projects/abc" or "projects/123". As input, project name with either
134
+ # project id or number are accepted. As output, this field will contain
135
+ # project number.
136
+ # @!attribute [r] create_time
137
+ # @return [::Google::Protobuf::Timestamp]
138
+ # Output only. The time at which the host project registration was created.
139
+ class HostProjectRegistration
140
+ include ::Google::Protobuf::MessageExts
141
+ extend ::Google::Protobuf::MessageExts::ClassMethods
142
+ end
143
+ end
144
+ end
145
+ end
146
+ end
@@ -0,0 +1,103 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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 [GetStyleGuide][ApiHub.GetStyleGuide] method's request.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Required. The name of the spec to retrieve.
28
+ # Format:
29
+ # `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`.
30
+ class GetStyleGuideRequest
31
+ include ::Google::Protobuf::MessageExts
32
+ extend ::Google::Protobuf::MessageExts::ClassMethods
33
+ end
34
+
35
+ # The [UpdateStyleGuide][ApiHub.UpdateStyleGuide] method's request.
36
+ # @!attribute [rw] style_guide
37
+ # @return [::Google::Cloud::ApiHub::V1::StyleGuide]
38
+ # Required. The Style guide resource to update.
39
+ # @!attribute [rw] update_mask
40
+ # @return [::Google::Protobuf::FieldMask]
41
+ # Optional. The list of fields to update.
42
+ class UpdateStyleGuideRequest
43
+ include ::Google::Protobuf::MessageExts
44
+ extend ::Google::Protobuf::MessageExts::ClassMethods
45
+ end
46
+
47
+ # The [GetStyleGuideContents][ApiHub.GetStyleGuideContents] method's request.
48
+ # @!attribute [rw] name
49
+ # @return [::String]
50
+ # Required. The name of the StyleGuide whose contents need to be retrieved.
51
+ # There is exactly one style guide resource per project per location.
52
+ # The expected format is
53
+ # `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`.
54
+ class GetStyleGuideContentsRequest
55
+ include ::Google::Protobuf::MessageExts
56
+ extend ::Google::Protobuf::MessageExts::ClassMethods
57
+ end
58
+
59
+ # The [LintSpec][ApiHub.LintSpec] method's request.
60
+ # @!attribute [rw] name
61
+ # @return [::String]
62
+ # Required. The name of the spec to be linted.
63
+ # Format:
64
+ # `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
65
+ class LintSpecRequest
66
+ include ::Google::Protobuf::MessageExts
67
+ extend ::Google::Protobuf::MessageExts::ClassMethods
68
+ end
69
+
70
+ # The style guide contents.
71
+ # @!attribute [rw] contents
72
+ # @return [::String]
73
+ # Required. The contents of the style guide.
74
+ # @!attribute [rw] mime_type
75
+ # @return [::String]
76
+ # Required. The mime type of the content.
77
+ class StyleGuideContents
78
+ include ::Google::Protobuf::MessageExts
79
+ extend ::Google::Protobuf::MessageExts::ClassMethods
80
+ end
81
+
82
+ # Represents a singleton style guide resource to be used for linting Open API
83
+ # specs.
84
+ # @!attribute [rw] name
85
+ # @return [::String]
86
+ # Identifier. The name of the style guide.
87
+ #
88
+ # Format:
89
+ # `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`
90
+ # @!attribute [rw] linter
91
+ # @return [::Google::Cloud::ApiHub::V1::Linter]
92
+ # Required. Target linter for the style guide.
93
+ # @!attribute [rw] contents
94
+ # @return [::Google::Cloud::ApiHub::V1::StyleGuideContents]
95
+ # Required. Input only. The contents of the uploaded style guide.
96
+ class StyleGuide
97
+ include ::Google::Protobuf::MessageExts
98
+ extend ::Google::Protobuf::MessageExts::ClassMethods
99
+ end
100
+ end
101
+ end
102
+ end
103
+ end
@@ -0,0 +1,104 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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
+ # A plugin resource in the API Hub.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Identifier. The name of the plugin.
28
+ # Format: `projects/{project}/locations/{location}/plugins/{plugin}`
29
+ # @!attribute [rw] display_name
30
+ # @return [::String]
31
+ # Required. The display name of the plugin. Max length is 50 characters
32
+ # (Unicode code points).
33
+ # @!attribute [rw] type
34
+ # @return [::Google::Cloud::ApiHub::V1::AttributeValues]
35
+ # Required. The type of the API.
36
+ # This maps to the following system defined attribute:
37
+ # `projects/{project}/locations/{location}/attributes/system-plugin-type`
38
+ # attribute.
39
+ # The number of allowed values for this attribute will be based on the
40
+ # cardinality of the attribute. The same can be retrieved via GetAttribute
41
+ # API. All values should be from the list of allowed values defined for the
42
+ # attribute.
43
+ # @!attribute [rw] description
44
+ # @return [::String]
45
+ # Optional. The plugin description. Max length is 2000 characters (Unicode
46
+ # code points).
47
+ # @!attribute [r] state
48
+ # @return [::Google::Cloud::ApiHub::V1::Plugin::State]
49
+ # Output only. Represents the state of the plugin.
50
+ class Plugin
51
+ include ::Google::Protobuf::MessageExts
52
+ extend ::Google::Protobuf::MessageExts::ClassMethods
53
+
54
+ # Possible states a plugin can have. Note that this enum may receive new
55
+ # values in the future. Consumers are advised to always code against the
56
+ # enum values expecting new states can be added later on.
57
+ module State
58
+ # The default value. This value is used if the state is omitted.
59
+ STATE_UNSPECIFIED = 0
60
+
61
+ # The plugin is enabled.
62
+ ENABLED = 1
63
+
64
+ # The plugin is disabled.
65
+ DISABLED = 2
66
+ end
67
+ end
68
+
69
+ # The {::Google::Cloud::ApiHub::V1::ApiHubPlugin::Client#get_plugin GetPlugin} method's
70
+ # request.
71
+ # @!attribute [rw] name
72
+ # @return [::String]
73
+ # Required. The name of the plugin to retrieve.
74
+ # Format: `projects/{project}/locations/{location}/plugins/{plugin}`.
75
+ class GetPluginRequest
76
+ include ::Google::Protobuf::MessageExts
77
+ extend ::Google::Protobuf::MessageExts::ClassMethods
78
+ end
79
+
80
+ # The {::Google::Cloud::ApiHub::V1::ApiHubPlugin::Client#enable_plugin EnablePlugin} method's
81
+ # request.
82
+ # @!attribute [rw] name
83
+ # @return [::String]
84
+ # Required. The name of the plugin to enable.
85
+ # Format: `projects/{project}/locations/{location}/plugins/{plugin}`.
86
+ class EnablePluginRequest
87
+ include ::Google::Protobuf::MessageExts
88
+ extend ::Google::Protobuf::MessageExts::ClassMethods
89
+ end
90
+
91
+ # The {::Google::Cloud::ApiHub::V1::ApiHubPlugin::Client#disable_plugin DisablePlugin}
92
+ # method's request.
93
+ # @!attribute [rw] name
94
+ # @return [::String]
95
+ # Required. The name of the plugin to disable.
96
+ # Format: `projects/{project}/locations/{location}/plugins/{plugin}`.
97
+ class DisablePluginRequest
98
+ include ::Google::Protobuf::MessageExts
99
+ extend ::Google::Protobuf::MessageExts::ClassMethods
100
+ end
101
+ end
102
+ end
103
+ end
104
+ end
@@ -0,0 +1,87 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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
25
+ # {::Google::Cloud::ApiHub::V1::Provisioning::Client#create_api_hub_instance CreateApiHubInstance}
26
+ # method's request.
27
+ # @!attribute [rw] parent
28
+ # @return [::String]
29
+ # Required. The parent resource for the Api Hub instance resource.
30
+ # Format: `projects/{project}/locations/{location}`
31
+ # @!attribute [rw] api_hub_instance_id
32
+ # @return [::String]
33
+ # Optional. Identifier to assign to the Api Hub instance. Must be unique
34
+ # within scope of the parent resource. If the field is not provided, system
35
+ # generated id will be used.
36
+ #
37
+ # This value should be 4-40 characters, and valid characters
38
+ # are `/[a-z][A-Z][0-9]-_/`.
39
+ # @!attribute [rw] api_hub_instance
40
+ # @return [::Google::Cloud::ApiHub::V1::ApiHubInstance]
41
+ # Required. The ApiHub instance.
42
+ class CreateApiHubInstanceRequest
43
+ include ::Google::Protobuf::MessageExts
44
+ extend ::Google::Protobuf::MessageExts::ClassMethods
45
+ end
46
+
47
+ # The
48
+ # {::Google::Cloud::ApiHub::V1::Provisioning::Client#get_api_hub_instance GetApiHubInstance}
49
+ # method's request.
50
+ # @!attribute [rw] name
51
+ # @return [::String]
52
+ # Required. The name of the Api Hub instance to retrieve.
53
+ # Format:
54
+ # `projects/{project}/locations/{location}/apiHubInstances/{apiHubInstance}`.
55
+ class GetApiHubInstanceRequest
56
+ include ::Google::Protobuf::MessageExts
57
+ extend ::Google::Protobuf::MessageExts::ClassMethods
58
+ end
59
+
60
+ # The
61
+ # {::Google::Cloud::ApiHub::V1::Provisioning::Client#lookup_api_hub_instance LookupApiHubInstance}
62
+ # method's request.
63
+ # @!attribute [rw] parent
64
+ # @return [::String]
65
+ # Required. There will always be only one Api Hub instance for a GCP project
66
+ # across all locations.
67
+ # The parent resource for the Api Hub instance resource.
68
+ # Format: `projects/{project}/locations/{location}`
69
+ class LookupApiHubInstanceRequest
70
+ include ::Google::Protobuf::MessageExts
71
+ extend ::Google::Protobuf::MessageExts::ClassMethods
72
+ end
73
+
74
+ # The
75
+ # {::Google::Cloud::ApiHub::V1::Provisioning::Client#lookup_api_hub_instance LookupApiHubInstance}
76
+ # method's response.`
77
+ # @!attribute [rw] api_hub_instance
78
+ # @return [::Google::Cloud::ApiHub::V1::ApiHubInstance]
79
+ # API Hub instance for a project if it exists, empty otherwise.
80
+ class LookupApiHubInstanceResponse
81
+ include ::Google::Protobuf::MessageExts
82
+ extend ::Google::Protobuf::MessageExts::ClassMethods
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
@@ -0,0 +1,182 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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
25
+ # {::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Client#create_runtime_project_attachment CreateRuntimeProjectAttachment}
26
+ # method's request.
27
+ # @!attribute [rw] parent
28
+ # @return [::String]
29
+ # Required. The parent resource for the Runtime Project Attachment.
30
+ # Format: `projects/{project}/locations/{location}`
31
+ # @!attribute [rw] runtime_project_attachment_id
32
+ # @return [::String]
33
+ # Required. The ID to use for the Runtime Project Attachment, which will
34
+ # become the final component of the Runtime Project Attachment's name. The ID
35
+ # must be the same as the project ID of the Google cloud project specified in
36
+ # the runtime_project_attachment.runtime_project field.
37
+ # @!attribute [rw] runtime_project_attachment
38
+ # @return [::Google::Cloud::ApiHub::V1::RuntimeProjectAttachment]
39
+ # Required. The Runtime Project Attachment to create.
40
+ class CreateRuntimeProjectAttachmentRequest
41
+ include ::Google::Protobuf::MessageExts
42
+ extend ::Google::Protobuf::MessageExts::ClassMethods
43
+ end
44
+
45
+ # The
46
+ # {::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Client#get_runtime_project_attachment GetRuntimeProjectAttachment}
47
+ # method's request.
48
+ # @!attribute [rw] name
49
+ # @return [::String]
50
+ # Required. The name of the API resource to retrieve.
51
+ # Format:
52
+ # `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}`
53
+ class GetRuntimeProjectAttachmentRequest
54
+ include ::Google::Protobuf::MessageExts
55
+ extend ::Google::Protobuf::MessageExts::ClassMethods
56
+ end
57
+
58
+ # The
59
+ # {::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Client#list_runtime_project_attachments ListRuntimeProjectAttachments}
60
+ # method's request.
61
+ # @!attribute [rw] parent
62
+ # @return [::String]
63
+ # Required. The parent, which owns this collection of runtime project
64
+ # attachments. Format: `projects/{project}/locations/{location}`
65
+ # @!attribute [rw] page_size
66
+ # @return [::Integer]
67
+ # Optional. The maximum number of runtime project attachments to return. The
68
+ # service may return fewer than this value. If unspecified, at most 50
69
+ # runtime project attachments will be returned. The maximum value is 1000;
70
+ # values above 1000 will be coerced to 1000.
71
+ # @!attribute [rw] page_token
72
+ # @return [::String]
73
+ # Optional. A page token, received from a previous
74
+ # `ListRuntimeProjectAttachments` call. Provide this to retrieve the
75
+ # subsequent page.
76
+ #
77
+ # When paginating, all other parameters (except page_size) provided to
78
+ # `ListRuntimeProjectAttachments` must match the call that provided the page
79
+ # token.
80
+ # @!attribute [rw] filter
81
+ # @return [::String]
82
+ # Optional. An expression that filters the list of RuntimeProjectAttachments.
83
+ #
84
+ # A filter expression consists of a field name, a comparison
85
+ # operator, and a value for filtering. The value must be a string. All
86
+ # standard operators as documented at https://google.aip.dev/160 are
87
+ # supported.
88
+ #
89
+ # The following fields in the `RuntimeProjectAttachment` are eligible for
90
+ # filtering:
91
+ #
92
+ # * `name` - The name of the RuntimeProjectAttachment.
93
+ # * `create_time` - The time at which the RuntimeProjectAttachment was
94
+ # created. The value should be in the
95
+ # (RFC3339)[https://tools.ietf.org/html/rfc3339] format.
96
+ # * `runtime_project` - The Google cloud project associated with the
97
+ # RuntimeProjectAttachment.
98
+ # @!attribute [rw] order_by
99
+ # @return [::String]
100
+ # Optional. Hint for how to order the results.
101
+ class ListRuntimeProjectAttachmentsRequest
102
+ include ::Google::Protobuf::MessageExts
103
+ extend ::Google::Protobuf::MessageExts::ClassMethods
104
+ end
105
+
106
+ # The
107
+ # {::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Client#list_runtime_project_attachments ListRuntimeProjectAttachments}
108
+ # method's response.
109
+ # @!attribute [rw] runtime_project_attachments
110
+ # @return [::Array<::Google::Cloud::ApiHub::V1::RuntimeProjectAttachment>]
111
+ # List of runtime project attachments.
112
+ # @!attribute [rw] next_page_token
113
+ # @return [::String]
114
+ # A token, which can be sent as `page_token` to retrieve the next page.
115
+ # If this field is omitted, there are no subsequent pages.
116
+ class ListRuntimeProjectAttachmentsResponse
117
+ include ::Google::Protobuf::MessageExts
118
+ extend ::Google::Protobuf::MessageExts::ClassMethods
119
+ end
120
+
121
+ # The
122
+ # {::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Client#delete_runtime_project_attachment DeleteRuntimeProjectAttachment}
123
+ # method's request.
124
+ # @!attribute [rw] name
125
+ # @return [::String]
126
+ # Required. The name of the Runtime Project Attachment to delete.
127
+ # Format:
128
+ # `projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}`
129
+ class DeleteRuntimeProjectAttachmentRequest
130
+ include ::Google::Protobuf::MessageExts
131
+ extend ::Google::Protobuf::MessageExts::ClassMethods
132
+ end
133
+
134
+ # The
135
+ # {::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Client#lookup_runtime_project_attachment LookupRuntimeProjectAttachment}
136
+ # method's request.
137
+ # @!attribute [rw] name
138
+ # @return [::String]
139
+ # Required. Runtime project ID to look up runtime project attachment for.
140
+ # Lookup happens across all regions. Expected format:
141
+ # `projects/{project}/locations/{location}`.
142
+ class LookupRuntimeProjectAttachmentRequest
143
+ include ::Google::Protobuf::MessageExts
144
+ extend ::Google::Protobuf::MessageExts::ClassMethods
145
+ end
146
+
147
+ # The
148
+ # {::Google::Cloud::ApiHub::V1::RuntimeProjectAttachmentService::Client#list_runtime_project_attachments ListRuntimeProjectAttachments}
149
+ # method's response.
150
+ # @!attribute [rw] runtime_project_attachment
151
+ # @return [::Google::Cloud::ApiHub::V1::RuntimeProjectAttachment]
152
+ # Runtime project attachment for a project if exists, empty otherwise.
153
+ class LookupRuntimeProjectAttachmentResponse
154
+ include ::Google::Protobuf::MessageExts
155
+ extend ::Google::Protobuf::MessageExts::ClassMethods
156
+ end
157
+
158
+ # Runtime project attachment represents an attachment from the runtime project
159
+ # to the host project. Api Hub looks for deployments in the attached runtime
160
+ # projects and creates corresponding resources in Api Hub for the discovered
161
+ # deployments.
162
+ # @!attribute [rw] name
163
+ # @return [::String]
164
+ # Identifier. The resource name of a runtime project attachment. Format:
165
+ # "projects/\\{project}/locations/\\{location}/runtimeProjectAttachments/\\{runtime_project_attachment}".
166
+ # @!attribute [rw] runtime_project
167
+ # @return [::String]
168
+ # Required. Immutable. Google cloud project name in the format:
169
+ # "projects/abc" or "projects/123". As input, project name with either
170
+ # project id or number are accepted. As output, this field will contain
171
+ # project number.
172
+ # @!attribute [r] create_time
173
+ # @return [::Google::Protobuf::Timestamp]
174
+ # Output only. Create time.
175
+ class RuntimeProjectAttachment
176
+ include ::Google::Protobuf::MessageExts
177
+ extend ::Google::Protobuf::MessageExts::ClassMethods
178
+ end
179
+ end
180
+ end
181
+ end
182
+ end