forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApplication.yaml
210 lines (209 loc) · 6.92 KB
/
Application.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
# Copyright 2024 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
name: 'Application'
description: 'Application is a functional grouping of Services and Workloads that helps achieve a desired end-to-end business functionality.
Services and Workloads are owned by the Application.'
docs:
id_format: 'projects/{{project}}/locations/{{location}}/applications/{{application_id}}'
base_url: 'projects/{{project}}/locations/{{location}}/applications'
self_link: 'projects/{{project}}/locations/{{location}}/applications/{{application_id}}'
create_url: 'projects/{{project}}/locations/{{location}}/applications?applicationId={{application_id}}'
update_verb: 'PATCH'
update_mask: true
import_format:
- 'projects/{{project}}/locations/{{location}}/applications/{{application_id}}'
timeouts:
insert_minutes: 20
update_minutes: 20
delete_minutes: 20
autogen_async: true
async:
actions: ['create', 'delete', 'update']
type: 'OpAsync'
operation:
base_url: '{{op_id}}'
path: 'name'
wait_ms: 1000
result:
path: 'response'
resource_inside_response: true
error:
path: 'error'
message: 'message'
custom_code:
constants: 'templates/terraform/constants/apphub_application.go.tmpl'
custom_diff:
- 'apphubApplicationCustomizeDiff'
examples:
- name: 'application_basic'
config_path: 'templates/terraform/examples/apphub_application_basic.tf.tmpl'
primary_resource_id: 'example'
vars:
application_id: 'example-application'
location: 'us-east1'
scope_type: 'REGIONAL'
test_vars_overrides:
'location': '"us-east1"'
'scope_type': '"REGIONAL"'
- name: 'application_global_basic'
config_path: 'templates/terraform/examples/apphub_application_basic.tf.tmpl'
primary_resource_id: 'example'
vars:
application_id: 'example-application'
location: 'global'
scope_type: 'GLOBAL'
test_vars_overrides:
'location': '"global"'
'scope_type': '"GLOBAL"'
- name: 'application_full'
config_path: 'templates/terraform/examples/apphub_application_full.tf.tmpl'
primary_resource_id: 'example2'
vars:
application_id: 'example-application'
display_name: 'Application Full'
desc: 'Application for testing'
business_name: 'Alice'
business_email: '[email protected]'
developer_name: 'Bob'
developer_email: '[email protected]'
operator_name: 'Charlie'
operator_email: '[email protected]'
parameters:
- name: 'location'
type: String
description: 'Part of `parent`. See documentation of `projectsId`.'
url_param_only: true
required: true
immutable: true
- name: 'applicationId'
type: String
description: 'Required. The Application identifier.'
url_param_only: true
required: true
immutable: true
properties:
- name: 'name'
type: String
description: "Identifier. The resource name of an Application. Format:\n\"projects/{host-project-id}/locations/{location}/applications/{application-id}\""
output: true
- name: 'displayName'
type: String
description: 'Optional. User-defined name for the Application.'
- name: 'description'
type: String
description: 'Optional. User-defined description of an Application.'
- name: 'attributes'
type: NestedObject
description: 'Consumer provided attributes.'
properties:
- name: 'criticality'
type: NestedObject
description: 'Criticality of the Application, Service, or Workload'
properties:
- name: 'type'
type: Enum
description: 'Criticality type.'
required: true
enum_values:
- 'MISSION_CRITICAL'
- 'HIGH'
- 'MEDIUM'
- 'LOW'
- name: 'environment'
type: NestedObject
description: 'Environment of the Application, Service, or Workload'
properties:
- name: 'type'
type: Enum
description: 'Environment type.'
required: true
enum_values:
- 'PRODUCTION'
- 'STAGING'
- 'TEST'
- 'DEVELOPMENT'
- name: 'developerOwners'
type: Array
description: 'Optional. Developer team that owns development and coding.'
item_type:
type: NestedObject
properties:
- name: 'displayName'
type: String
description: 'Optional. Contact''s name.'
- name: 'email'
type: String
description: 'Required. Email address of the contacts.'
required: true
- name: 'operatorOwners'
type: Array
description: 'Optional. Operator team that ensures runtime and operations.'
item_type:
type: NestedObject
properties:
- name: 'displayName'
type: String
description: 'Optional. Contact''s name.'
- name: 'email'
type: String
description: 'Required. Email address of the contacts.'
required: true
- name: 'businessOwners'
type: Array
description: 'Optional. Business team that ensures user needs are met and value
is delivered'
item_type:
type: NestedObject
properties:
- name: 'displayName'
type: String
description: 'Optional. Contact''s name.'
- name: 'email'
type: String
description: 'Required. Email address of the contacts.'
required: true
- name: 'createTime'
type: String
description: 'Output only. Create time.'
output: true
- name: 'updateTime'
type: String
description: 'Output only. Update time.'
output: true
- name: 'scope'
type: NestedObject
description: 'Scope of an application.'
required: true
properties:
- name: 'type'
type: Enum
description: "Required. Scope Type. \n Possible values:\nREGIONAL\nGLOBAL"
required: true
enum_values:
- 'REGIONAL'
- 'GLOBAL'
- name: 'uid'
type: String
description: 'Output only. A universally unique identifier (in UUID4 format) for
the `Application`.'
output: true
- name: 'state'
type: Enum
description: "Output only. Application state. \n Possible values:\n STATE_UNSPECIFIED\nCREATING\nACTIVE\nDELETING"
output: true
enum_values:
- 'STATE_UNSPECIFIED'
- 'CREATING'
- 'ACTIVE'
- 'DELETING'