google-cloud-design_center-v1 0.a → 0.1.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 (80) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +151 -8
  5. data/lib/google/cloud/design_center/v1/bindings_override.rb +108 -0
  6. data/lib/google/cloud/design_center/v1/design_center/client.rb +8904 -0
  7. data/lib/google/cloud/design_center/v1/design_center/credentials.rb +47 -0
  8. data/lib/google/cloud/design_center/v1/design_center/operations.rb +843 -0
  9. data/lib/google/cloud/design_center/v1/design_center/paths.rb +477 -0
  10. data/lib/google/cloud/design_center/v1/design_center/rest/client.rb +8308 -0
  11. data/lib/google/cloud/design_center/v1/design_center/rest/operations.rb +927 -0
  12. data/lib/google/cloud/design_center/v1/design_center/rest/service_stub.rb +5000 -0
  13. data/lib/google/cloud/design_center/v1/design_center/rest.rb +54 -0
  14. data/lib/google/cloud/design_center/v1/design_center.rb +56 -0
  15. data/lib/google/cloud/design_center/v1/rest.rb +38 -0
  16. data/lib/google/cloud/design_center/v1/version.rb +7 -2
  17. data/lib/google/cloud/design_center/v1.rb +45 -0
  18. data/lib/google/cloud/designcenter/v1/apphub_integration_messages_pb.rb +27 -0
  19. data/lib/google/cloud/designcenter/v1/apphub_integration_pb.rb +24 -0
  20. data/lib/google/cloud/designcenter/v1/assessment_pb.rb +48 -0
  21. data/lib/google/cloud/designcenter/v1/authoring_messages_pb.rb +73 -0
  22. data/lib/google/cloud/designcenter/v1/authoring_pb.rb +46 -0
  23. data/lib/google/cloud/designcenter/v1/best_practices_messages_pb.rb +45 -0
  24. data/lib/google/cloud/designcenter/v1/best_practices_pb.rb +29 -0
  25. data/lib/google/cloud/designcenter/v1/catalog_management_messages_pb.rb +54 -0
  26. data/lib/google/cloud/designcenter/v1/catalog_management_pb.rb +34 -0
  27. data/lib/google/cloud/designcenter/v1/deployment_messages_pb.rb +56 -0
  28. data/lib/google/cloud/designcenter/v1/deployment_pb.rb +50 -0
  29. data/lib/google/cloud/designcenter/v1/deployment_resources_pb.rb +35 -0
  30. data/lib/google/cloud/designcenter/v1/designcenter_pb.rb +50 -0
  31. data/lib/google/cloud/designcenter/v1/designcenter_services_pb.rb +229 -0
  32. data/lib/google/cloud/designcenter/v1/enums_pb.rb +31 -0
  33. data/lib/google/cloud/designcenter/v1/export_pb.rb +29 -0
  34. data/lib/google/cloud/designcenter/v1/iac_pb.rb +30 -0
  35. data/lib/google/cloud/designcenter/v1/ingestion_pb.rb +35 -0
  36. data/lib/google/cloud/designcenter/v1/metadata_pb.rb +74 -0
  37. data/lib/google/cloud/designcenter/v1/parameters_pb.rb +30 -0
  38. data/lib/google/cloud/designcenter/v1/sharing_messages_pb.rb +42 -0
  39. data/lib/google/cloud/designcenter/v1/sharing_pb.rb +33 -0
  40. data/lib/google-cloud-design_center-v1.rb +21 -0
  41. data/proto_docs/README.md +4 -0
  42. data/proto_docs/google/api/client.rb +593 -0
  43. data/proto_docs/google/api/field_behavior.rb +85 -0
  44. data/proto_docs/google/api/field_info.rb +88 -0
  45. data/proto_docs/google/api/launch_stage.rb +71 -0
  46. data/proto_docs/google/api/resource.rb +227 -0
  47. data/proto_docs/google/cloud/apphub/v1/application.rb +149 -0
  48. data/proto_docs/google/cloud/apphub/v1/attributes.rb +115 -0
  49. data/proto_docs/google/cloud/apphub/v1/properties.rb +94 -0
  50. data/proto_docs/google/cloud/config/v1/config.rb +2709 -0
  51. data/proto_docs/google/cloud/designcenter/v1/apphub_integration.rb +55 -0
  52. data/proto_docs/google/cloud/designcenter/v1/apphub_integration_messages.rb +81 -0
  53. data/proto_docs/google/cloud/designcenter/v1/assessment.rb +502 -0
  54. data/proto_docs/google/cloud/designcenter/v1/authoring.rb +492 -0
  55. data/proto_docs/google/cloud/designcenter/v1/authoring_messages.rb +779 -0
  56. data/proto_docs/google/cloud/designcenter/v1/best_practices.rb +123 -0
  57. data/proto_docs/google/cloud/designcenter/v1/best_practices_messages.rb +296 -0
  58. data/proto_docs/google/cloud/designcenter/v1/catalog_management.rb +258 -0
  59. data/proto_docs/google/cloud/designcenter/v1/catalog_management_messages.rb +438 -0
  60. data/proto_docs/google/cloud/designcenter/v1/deployment.rb +476 -0
  61. data/proto_docs/google/cloud/designcenter/v1/deployment_messages.rb +466 -0
  62. data/proto_docs/google/cloud/designcenter/v1/deployment_resources.rb +182 -0
  63. data/proto_docs/google/cloud/designcenter/v1/designcenter.rb +245 -0
  64. data/proto_docs/google/cloud/designcenter/v1/enums.rb +223 -0
  65. data/proto_docs/google/cloud/designcenter/v1/export.rb +112 -0
  66. data/proto_docs/google/cloud/designcenter/v1/iac.rb +138 -0
  67. data/proto_docs/google/cloud/designcenter/v1/ingestion.rb +276 -0
  68. data/proto_docs/google/cloud/designcenter/v1/metadata.rb +945 -0
  69. data/proto_docs/google/cloud/designcenter/v1/parameters.rb +112 -0
  70. data/proto_docs/google/cloud/designcenter/v1/sharing.rb +188 -0
  71. data/proto_docs/google/cloud/designcenter/v1/sharing_messages.rb +258 -0
  72. data/proto_docs/google/longrunning/operations.rb +191 -0
  73. data/proto_docs/google/protobuf/any.rb +145 -0
  74. data/proto_docs/google/protobuf/duration.rb +98 -0
  75. data/proto_docs/google/protobuf/empty.rb +34 -0
  76. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  77. data/proto_docs/google/protobuf/struct.rb +108 -0
  78. data/proto_docs/google/protobuf/timestamp.rb +128 -0
  79. data/proto_docs/google/rpc/status.rb +48 -0
  80. metadata +168 -9
@@ -0,0 +1,138 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 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 DesignCenter
23
+ module V1
24
+ # Root modules metadata.
25
+ # @!attribute [rw] root_modules
26
+ # @return [::Array<::Google::Cloud::DesignCenter::V1::RootModule>]
27
+ # List of terraform root modules.
28
+ class RootModulesMetadata
29
+ include ::Google::Protobuf::MessageExts
30
+ extend ::Google::Protobuf::MessageExts::ClassMethods
31
+ end
32
+
33
+ # Metadata for a root module.
34
+ # @!attribute [rw] id
35
+ # @return [::String]
36
+ # Identifier of the root module. This is the directory name of the root
37
+ # module in the generated terraform which is also same as the corresponding
38
+ # component ID.
39
+ # @!attribute [rw] components
40
+ # @return [::Array<::String>]
41
+ # List of Application Design Center component names associated with this root
42
+ # module. For standard app template type components, this list will have a
43
+ # single element. For service / workload / asset components, this list will
44
+ # contain all such component names.
45
+ # @!attribute [rw] dependencies
46
+ # @return [::Array<::Google::Cloud::DesignCenter::V1::RootModuleDependency>]
47
+ # Dependencies of this root module. The dependency graph of root modules
48
+ # must be acyclic.
49
+ # @!attribute [rw] input_variables
50
+ # @return [::Array<::Google::Cloud::DesignCenter::V1::RootInputVariable>]
51
+ # List of input variables of this root module.
52
+ # @!attribute [rw] output_variables
53
+ # @return [::Array<::Google::Cloud::DesignCenter::V1::RootOutputVariable>]
54
+ # List of output variables of this root module.
55
+ class RootModule
56
+ include ::Google::Protobuf::MessageExts
57
+ extend ::Google::Protobuf::MessageExts::ClassMethods
58
+ end
59
+
60
+ # Root module dependency.
61
+ # @!attribute [rw] root_module_id
62
+ # @return [::String]
63
+ # Identifier of the root module.
64
+ # @!attribute [rw] parameters
65
+ # @return [::Array<::Google::Cloud::DesignCenter::V1::Parameter>]
66
+ # Parameters associated with this dependency.
67
+ class RootModuleDependency
68
+ include ::Google::Protobuf::MessageExts
69
+ extend ::Google::Protobuf::MessageExts::ClassMethods
70
+ end
71
+
72
+ # Input variable of a root module.
73
+ # @!attribute [rw] variable
74
+ # @return [::String]
75
+ # Name of the input variable.
76
+ # @!attribute [rw] variable_type
77
+ # @return [::String]
78
+ # Type of the input variable.
79
+ # @!attribute [rw] value
80
+ # @return [::Google::Protobuf::Value]
81
+ # Value for the input variable.
82
+ # @!attribute [rw] default_value
83
+ # @return [::Google::Protobuf::Value]
84
+ # Default value of the input variable.
85
+ # @!attribute [rw] alias
86
+ # @return [::String]
87
+ # Alias for the variable name.
88
+ class RootInputVariable
89
+ include ::Google::Protobuf::MessageExts
90
+ extend ::Google::Protobuf::MessageExts::ClassMethods
91
+ end
92
+
93
+ # Output variable of a root module.
94
+ # @!attribute [rw] variable
95
+ # @return [::String]
96
+ # Name of the output variable.
97
+ class RootOutputVariable
98
+ include ::Google::Protobuf::MessageExts
99
+ extend ::Google::Protobuf::MessageExts::ClassMethods
100
+ end
101
+
102
+ # Represents a Terraform module, which is a collection of Terraform files.
103
+ # Eg:
104
+ # {
105
+ # "source": "git::https://github.com/my-org/my-repo",
106
+ # "files": [
107
+ # {
108
+ # "path": "/path/to/file/main.tf",
109
+ # "content": "tf file content"
110
+ # }
111
+ # ]
112
+ # }
113
+ # @!attribute [rw] source
114
+ # @return [::String]
115
+ # The source of the Terraform module.
116
+ # @!attribute [rw] files
117
+ # @return [::Array<::Google::Cloud::DesignCenter::V1::TerraformFile>]
118
+ # The files within the Terraform module.
119
+ class TerraformModule
120
+ include ::Google::Protobuf::MessageExts
121
+ extend ::Google::Protobuf::MessageExts::ClassMethods
122
+ end
123
+
124
+ # Represents a single Terraform file.
125
+ # @!attribute [rw] path
126
+ # @return [::String]
127
+ # The path of the Terraform file.
128
+ # @!attribute [rw] content
129
+ # @return [::String]
130
+ # The content of the Terraform file.
131
+ class TerraformFile
132
+ include ::Google::Protobuf::MessageExts
133
+ extend ::Google::Protobuf::MessageExts::ClassMethods
134
+ end
135
+ end
136
+ end
137
+ end
138
+ end
@@ -0,0 +1,276 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 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 DesignCenter
23
+ module V1
24
+ # Defines how to access a Git source.
25
+ # @!attribute [rw] repo
26
+ # @return [::String]
27
+ # Required. Location of the git repo to build.
28
+ # @!attribute [rw] dir
29
+ # @return [::String]
30
+ # Optional. Directory, relative to the source root, in which to run the
31
+ # build. This must be a relative path. If a step's `dir` is specified and is
32
+ # an absolute path, this value is ignored for that step's execution.
33
+ # @!attribute [r] commit_sha
34
+ # @return [::String]
35
+ # Output only. The commit SHA of the git repo deduced from given ref_tag.
36
+ # @!attribute [rw] developer_connect_config
37
+ # @deprecated This field is deprecated and may be removed in the next major version update.
38
+ # @return [::Google::Cloud::DesignCenter::V1::DeveloperConnectConfig]
39
+ # Optional. This config defines the location of a source through Developer
40
+ # Connect. Used to access private git repos.
41
+ # @!attribute [rw] ref_tag
42
+ # @return [::String]
43
+ # Required. The reference tag of the git repo.
44
+ class GitSource
45
+ include ::Google::Protobuf::MessageExts
46
+ extend ::Google::Protobuf::MessageExts::ClassMethods
47
+ end
48
+
49
+ # This config defines the location of a source through Developer Connect.
50
+ # @!attribute [rw] git_repository_link
51
+ # @return [::String]
52
+ # Required. The Developer Connect Git repository link, formatted as
53
+ # `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
54
+ class DeveloperConnectConfig
55
+ include ::Google::Protobuf::MessageExts
56
+ extend ::Google::Protobuf::MessageExts::ClassMethods
57
+ end
58
+
59
+ # This config specifies the location of a source (such as GitHub or Bitbucket)
60
+ # through Developer Connect.
61
+ # @!attribute [rw] developer_connect_repo_uri
62
+ # @return [::String]
63
+ # Required. The Developer Connect Git repository link, formatted as
64
+ # `projects/*/locations/*/connections/*/gitRepositoryLinks/*`.
65
+ # @!attribute [rw] reference
66
+ # @return [::Google::Cloud::DesignCenter::V1::GitReference]
67
+ # Required. The reference (for example, a branch, tag, or commit SHA) from
68
+ # which the content should be read.
69
+ # @!attribute [rw] dir
70
+ # @return [::String]
71
+ # Required. The sub-directory within the repository from which to read
72
+ # content. The path must be relative to the repository's root such as
73
+ # dir1/dir2. To read content from the root dir, provide "/" as the value of
74
+ # the field.
75
+ # @!attribute [r] fetched_commit_sha
76
+ # @return [::String]
77
+ # Output only. The SHA of the commit deduced from GitReference.
78
+ class DeveloperConnectSourceConfig
79
+ include ::Google::Protobuf::MessageExts
80
+ extend ::Google::Protobuf::MessageExts::ClassMethods
81
+ end
82
+
83
+ # The Git reference. Can be a commit SHA, branch name, or tag name.
84
+ # @!attribute [rw] branch
85
+ # @return [::String]
86
+ # Optional. The name of the branch from which content should be read.
87
+ # For example: "main"
88
+ #
89
+ # Note: The following fields are mutually exclusive: `branch`, `ref_tag`, `commit_sha`. If a field in that set is populated, all other fields in the set will automatically be cleared.
90
+ # @!attribute [rw] ref_tag
91
+ # @return [::String]
92
+ # Optional. The reference tag from which content should be read.
93
+ # For example: "v1.2.3"
94
+ #
95
+ # Note: The following fields are mutually exclusive: `ref_tag`, `branch`, `commit_sha`. If a field in that set is populated, all other fields in the set will automatically be cleared.
96
+ # @!attribute [rw] commit_sha
97
+ # @return [::String]
98
+ # Optional. The full SHA hash of a specific commit from which content
99
+ # should be read.
100
+ #
101
+ # Note: The following fields are mutually exclusive: `commit_sha`, `branch`, `ref_tag`. If a field in that set is populated, all other fields in the set will automatically be cleared.
102
+ class GitReference
103
+ include ::Google::Protobuf::MessageExts
104
+ extend ::Google::Protobuf::MessageExts::ClassMethods
105
+ end
106
+
107
+ # Open Container Initiative (OCI) repo.
108
+ # @!attribute [rw] uri
109
+ # @return [::String]
110
+ # Required. Path to Open Container Initiative (OCI) repo.
111
+ # Example: oci://us-west1-docker.pkg.dev/nyap-test/helm-repo/my-chart
112
+ # @!attribute [rw] version
113
+ # @return [::String]
114
+ # Optional. The version of the helm chart.
115
+ # @!attribute [rw] module_source_uri
116
+ # @return [::String]
117
+ # Optional. Field for containing the references to the source from which the
118
+ # OCI repo was created.
119
+ class OciRepo
120
+ include ::Google::Protobuf::MessageExts
121
+ extend ::Google::Protobuf::MessageExts::ClassMethods
122
+ end
123
+
124
+ # IaCModule represents a single infrastructure as code module.
125
+ # @!attribute [rw] files
126
+ # @return [::Array<::Google::Cloud::DesignCenter::V1::IaCFile>]
127
+ # Optional. The files in the module.
128
+ class IaCModule
129
+ include ::Google::Protobuf::MessageExts
130
+ extend ::Google::Protobuf::MessageExts::ClassMethods
131
+ end
132
+
133
+ # IaCFile represents a single infrastructure as code file.
134
+ # @!attribute [rw] name
135
+ # @return [::String]
136
+ # Required. The name of the file.
137
+ # @!attribute [rw] content
138
+ # @return [::String]
139
+ # Optional. The content of the file. The content of the file can be read and
140
+ # passed as a string. For example, for a Terraform file, the content is the
141
+ # HCL content of the file.
142
+ class IaCFile
143
+ include ::Google::Protobuf::MessageExts
144
+ extend ::Google::Protobuf::MessageExts::ClassMethods
145
+ end
146
+
147
+ # Message representing the error encountered during import.
148
+ # Example: A variable with name "name" is expected to be of type string, but is
149
+ # provided as number, inside a module named "my_module".
150
+ # {
151
+ # resource_address: "module.my_module.name"
152
+ # file: "gs://my_bucket/main.tf"
153
+ # range: {
154
+ # start: {
155
+ # line: 2
156
+ # byte_offset: 1
157
+ # column: 2
158
+ # }
159
+ # end: {
160
+ # line: 2
161
+ # byte_offset: 10
162
+ # column: 10
163
+ # }
164
+ # }
165
+ # description: "Error parsing field: \"name\". Expected type \"string\" but got
166
+ # \"number\"."
167
+ # type: INVALID
168
+ # }
169
+ # @!attribute [r] resource_address
170
+ # @return [::String]
171
+ # Output only. The resource address of the error.
172
+ # @!attribute [r] file
173
+ # @return [::String]
174
+ # Output only. The file where the error has occurred.
175
+ # @!attribute [r] range
176
+ # @return [::Google::Cloud::DesignCenter::V1::CodeRange]
177
+ # Output only. The code portion where this error occurs.
178
+ # @!attribute [r] description
179
+ # @return [::String]
180
+ # Output only. The description of the error.
181
+ # @!attribute [r] type
182
+ # @return [::Google::Cloud::DesignCenter::V1::ImportIaCError::Type]
183
+ # Output only. The type of error.
184
+ # @!attribute [r] error_code
185
+ # @return [::Google::Cloud::DesignCenter::V1::ImportIaCError::ErrorCode]
186
+ # Output only. Specific error code for the import error.
187
+ class ImportIaCError
188
+ include ::Google::Protobuf::MessageExts
189
+ extend ::Google::Protobuf::MessageExts::ClassMethods
190
+
191
+ # The type of error.
192
+ module Type
193
+ # Default.
194
+ TYPE_UNSPECIFIED = 0
195
+
196
+ # The change is invalid.
197
+ # Example: a string value provided for a number input parameter type,
198
+ # which would be caught by Terraform validation.
199
+ INVALID = 1
200
+
201
+ # The change is not supported.
202
+ # Example: a user directly adding a Terraform resource in main.tf
203
+ # that Design Center does not support importing.
204
+ NOT_SUPPORTED = 2
205
+ end
206
+
207
+ # Specific error code for UI and programmatic handling.
208
+ module ErrorCode
209
+ # Default.
210
+ ERROR_CODE_UNSPECIFIED = 0
211
+
212
+ # HCL Syntax errors (e.g. unclosed blocks, bad characters)
213
+ ERROR_CODE_SYNTAX_ERROR = 1
214
+
215
+ # Top-level block is e.g. "resource", "data", "locals"
216
+ ERROR_CODE_UNSUPPORTED_BLOCK_TYPE = 2
217
+
218
+ # Attributes defined outside of allowed blocks
219
+ ERROR_CODE_TOP_LEVEL_ATTRIBUTE = 3
220
+
221
+ # Module not present in catalog
222
+ ERROR_CODE_UNSUPPORTED_MODULE = 4
223
+
224
+ # Attribute defined inside module that is not in the shared template
225
+ ERROR_CODE_MODULE_UNSUPPORTED_ATTRIBUTE_ADDED = 5
226
+
227
+ # Mandatory attribute of shared template is missing in module block
228
+ ERROR_CODE_MODULE_REQUIRED_ATTRIBUTE_REMOVED = 6
229
+
230
+ # Value fails shared template schema checks (regex, range, etc.)
231
+ ERROR_CODE_PARAMETER_VALUE_INVALID = 7
232
+
233
+ # Variable in variables.tf is added, removed or schema changed
234
+ ERROR_CODE_UNSUPPORTED_VARIABLE_CHANGE = 8
235
+
236
+ # Output in outputs.tf is added, removed or schema changed
237
+ ERROR_CODE_UNSUPPORTED_OUTPUT_CHANGE = 9
238
+
239
+ # Provider in providers.tf has added blocks or modified attributes
240
+ ERROR_CODE_UNSUPPORTED_PROVIDER_CHANGE = 10
241
+
242
+ # Value modified for variables defined in terraform.tfvars
243
+ ERROR_CODE_UNSUPPORTED_TFVAR_CHANGE = 11
244
+ end
245
+ end
246
+
247
+ # CodeRange represents a portion of code.
248
+ # @!attribute [r] start
249
+ # @return [::Google::Cloud::DesignCenter::V1::CodePosition]
250
+ # Output only. Start position.
251
+ # @!attribute [r] end
252
+ # @return [::Google::Cloud::DesignCenter::V1::CodePosition]
253
+ # Output only. End position.
254
+ class CodeRange
255
+ include ::Google::Protobuf::MessageExts
256
+ extend ::Google::Protobuf::MessageExts::ClassMethods
257
+ end
258
+
259
+ # CodePosition represents a code location.
260
+ # @!attribute [r] line
261
+ # @return [::Integer]
262
+ # Output only. One-based line count of the relevant position.
263
+ # @!attribute [r] byte_offset
264
+ # @return [::Integer]
265
+ # Output only. Byte offset in the content.
266
+ # @!attribute [r] column
267
+ # @return [::Integer]
268
+ # Output only. One-based column count of the relevant position.
269
+ class CodePosition
270
+ include ::Google::Protobuf::MessageExts
271
+ extend ::Google::Protobuf::MessageExts::ClassMethods
272
+ end
273
+ end
274
+ end
275
+ end
276
+ end