google-cloud-config_service-v1 0.2.1 → 0.3.1

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.
@@ -537,6 +537,9 @@ module Google
537
537
  # @!attribute [r] deployment_metadata
538
538
  # @return [::Google::Cloud::ConfigService::V1::DeploymentOperationMetadata]
539
539
  # Output only. Metadata about the deployment operation state.
540
+ # @!attribute [r] preview_metadata
541
+ # @return [::Google::Cloud::ConfigService::V1::PreviewOperationMetadata]
542
+ # Output only. Metadata about the preview operation state.
540
543
  # @!attribute [r] create_time
541
544
  # @return [::Google::Protobuf::Timestamp]
542
545
  # Output only. Time when the operation was created.
@@ -1076,6 +1079,389 @@ module Google
1076
1079
  include ::Google::Protobuf::MessageExts
1077
1080
  extend ::Google::Protobuf::MessageExts::ClassMethods
1078
1081
  end
1082
+
1083
+ # A preview represents a set of actions Infra Manager would perform
1084
+ # to move the resources towards the desired state as specified in the
1085
+ # configuration.
1086
+ # @!attribute [rw] terraform_blueprint
1087
+ # @return [::Google::Cloud::ConfigService::V1::TerraformBlueprint]
1088
+ # The terraform blueprint to preview.
1089
+ # @!attribute [rw] name
1090
+ # @return [::String]
1091
+ # Identifier. Resource name of the preview. Resource name can be user
1092
+ # provided or server generated ID if unspecified. Format:
1093
+ # `projects/{project}/locations/{location}/previews/{preview}`
1094
+ # @!attribute [r] create_time
1095
+ # @return [::Google::Protobuf::Timestamp]
1096
+ # Output only. Time the preview was created.
1097
+ # @!attribute [rw] labels
1098
+ # @return [::Google::Protobuf::Map{::String => ::String}]
1099
+ # Optional. User-defined labels for the preview.
1100
+ # @!attribute [r] state
1101
+ # @return [::Google::Cloud::ConfigService::V1::Preview::State]
1102
+ # Output only. Current state of the preview.
1103
+ # @!attribute [rw] deployment
1104
+ # @return [::String]
1105
+ # Optional. Optional deployment reference. If specified, the preview will be
1106
+ # performed using the provided deployment's current state and use any
1107
+ # relevant fields from the deployment unless explicitly specified in the
1108
+ # preview create request.
1109
+ # @!attribute [rw] preview_mode
1110
+ # @return [::Google::Cloud::ConfigService::V1::Preview::PreviewMode]
1111
+ # Optional. Current mode of preview.
1112
+ # @!attribute [rw] service_account
1113
+ # @return [::String]
1114
+ # Optional. Optional service account. If omitted, the deployment resource
1115
+ # reference must be provided, and the service account attached to the
1116
+ # deployment will be used.
1117
+ # @!attribute [rw] artifacts_gcs_bucket
1118
+ # @return [::String]
1119
+ # Optional. User-defined location of Cloud Build logs, artifacts, and
1120
+ # in Google Cloud Storage.
1121
+ # Format: `gs://{bucket}/{folder}`
1122
+ # A default bucket will be bootstrapped if the field is not set or empty
1123
+ # Default Bucket Format: `gs://<project number>-<region>-blueprint-config`
1124
+ # Constraints:
1125
+ # - The bucket needs to be in the same project as the deployment
1126
+ # - The path cannot be within the path of `gcs_source`
1127
+ # If omitted and deployment resource ref provided has artifacts_gcs_bucket
1128
+ # defined, that artifact bucket is used.
1129
+ # @!attribute [rw] worker_pool
1130
+ # @return [::String]
1131
+ # Optional. The user-specified Worker Pool resource in which the Cloud Build
1132
+ # job will execute. Format
1133
+ # projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} If this
1134
+ # field is unspecified, the default Cloud Build worker pool will be used. If
1135
+ # omitted and deployment resource ref provided has worker_pool defined, that
1136
+ # worker pool is used.
1137
+ # @!attribute [r] error_code
1138
+ # @return [::Google::Cloud::ConfigService::V1::Preview::ErrorCode]
1139
+ # Output only. Code describing any errors that may have occurred.
1140
+ # @!attribute [r] error_status
1141
+ # @return [::Google::Rpc::Status]
1142
+ # Output only. Additional information regarding the current state.
1143
+ # @!attribute [r] build
1144
+ # @return [::String]
1145
+ # Output only. Cloud Build instance UUID associated with this preview.
1146
+ # @!attribute [r] tf_errors
1147
+ # @return [::Array<::Google::Cloud::ConfigService::V1::TerraformError>]
1148
+ # Output only. Summary of errors encountered during Terraform preview.
1149
+ # It has a size limit of 10, i.e. only top 10 errors will be summarized here.
1150
+ # @!attribute [r] error_logs
1151
+ # @return [::String]
1152
+ # Output only. Link to tf-error.ndjson file, which contains the full list of
1153
+ # the errors encountered during a Terraform preview.
1154
+ # Format: `gs://{bucket}/{object}`.
1155
+ # @!attribute [r] preview_artifacts
1156
+ # @return [::Google::Cloud::ConfigService::V1::PreviewArtifacts]
1157
+ # Output only. Artifacts from preview.
1158
+ # @!attribute [r] logs
1159
+ # @return [::String]
1160
+ # Output only. Location of preview logs in `gs://{bucket}/{object}` format.
1161
+ class Preview
1162
+ include ::Google::Protobuf::MessageExts
1163
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1164
+
1165
+ # @!attribute [rw] key
1166
+ # @return [::String]
1167
+ # @!attribute [rw] value
1168
+ # @return [::String]
1169
+ class LabelsEntry
1170
+ include ::Google::Protobuf::MessageExts
1171
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1172
+ end
1173
+
1174
+ # Possible states of a preview.
1175
+ module State
1176
+ # The default value. This value is used if the state is unknown.
1177
+ STATE_UNSPECIFIED = 0
1178
+
1179
+ # The preview is being created.
1180
+ CREATING = 1
1181
+
1182
+ # The preview has succeeded.
1183
+ SUCCEEDED = 2
1184
+
1185
+ # The preview is being applied.
1186
+ APPLYING = 3
1187
+
1188
+ # The preview is stale. A preview can become stale if a revision has been
1189
+ # applied after this preview was created.
1190
+ STALE = 4
1191
+
1192
+ # The preview is being deleted.
1193
+ DELETING = 5
1194
+
1195
+ # The preview has encountered an unexpected error.
1196
+ FAILED = 6
1197
+
1198
+ # The preview has been deleted.
1199
+ DELETED = 7
1200
+ end
1201
+
1202
+ # Preview mode provides options for customizing preview operations.
1203
+ module PreviewMode
1204
+ # Unspecified policy, default mode will be used.
1205
+ PREVIEW_MODE_UNSPECIFIED = 0
1206
+
1207
+ # DEFAULT mode generates an execution plan for reconciling current resource
1208
+ # state into expected resource state.
1209
+ DEFAULT = 1
1210
+
1211
+ # DELETE mode generates as execution plan for destroying current resources.
1212
+ DELETE = 2
1213
+ end
1214
+
1215
+ # Possible errors that can occur with previews.
1216
+ module ErrorCode
1217
+ # No error code was specified.
1218
+ ERROR_CODE_UNSPECIFIED = 0
1219
+
1220
+ # Cloud Build failed due to a permissions issue.
1221
+ CLOUD_BUILD_PERMISSION_DENIED = 1
1222
+
1223
+ # Cloud Storage bucket failed to create due to a permissions issue.
1224
+ BUCKET_CREATION_PERMISSION_DENIED = 2
1225
+
1226
+ # Cloud Storage bucket failed for a non-permissions-related issue.
1227
+ BUCKET_CREATION_FAILED = 3
1228
+
1229
+ # Acquiring lock on provided deployment reference failed.
1230
+ DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4
1231
+
1232
+ # Preview encountered an error when trying to access Cloud Build API.
1233
+ PREVIEW_BUILD_API_FAILED = 5
1234
+
1235
+ # Preview created a build but build failed and logs were generated.
1236
+ PREVIEW_BUILD_RUN_FAILED = 6
1237
+ end
1238
+ end
1239
+
1240
+ # Ephemeral metadata content describing the state of a preview operation.
1241
+ # @!attribute [rw] step
1242
+ # @return [::Google::Cloud::ConfigService::V1::PreviewOperationMetadata::PreviewStep]
1243
+ # The current step the preview operation is running.
1244
+ # @!attribute [rw] preview_artifacts
1245
+ # @return [::Google::Cloud::ConfigService::V1::PreviewArtifacts]
1246
+ # Artifacts from preview.
1247
+ # @!attribute [r] logs
1248
+ # @return [::String]
1249
+ # Output only. Location of preview logs in `gs://{bucket}/{object}` format.
1250
+ # @!attribute [r] build
1251
+ # @return [::String]
1252
+ # Output only. Cloud Build instance UUID associated with this preview.
1253
+ class PreviewOperationMetadata
1254
+ include ::Google::Protobuf::MessageExts
1255
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1256
+
1257
+ # The possible steps a preview may be running.
1258
+ module PreviewStep
1259
+ # Unspecified preview step.
1260
+ PREVIEW_STEP_UNSPECIFIED = 0
1261
+
1262
+ # Infra Manager is creating a Google Cloud Storage bucket to store
1263
+ # artifacts and metadata about the preview.
1264
+ PREPARING_STORAGE_BUCKET = 1
1265
+
1266
+ # Downloading the blueprint onto the Google Cloud Storage bucket.
1267
+ DOWNLOADING_BLUEPRINT = 2
1268
+
1269
+ # Initializing Terraform using `terraform init`.
1270
+ RUNNING_TF_INIT = 3
1271
+
1272
+ # Running `terraform plan`.
1273
+ RUNNING_TF_PLAN = 4
1274
+
1275
+ # Fetching a deployment.
1276
+ FETCHING_DEPLOYMENT = 5
1277
+
1278
+ # Locking a deployment.
1279
+ LOCKING_DEPLOYMENT = 6
1280
+
1281
+ # Unlocking a deployment.
1282
+ UNLOCKING_DEPLOYMENT = 7
1283
+
1284
+ # Operation was successful.
1285
+ SUCCEEDED = 8
1286
+
1287
+ # Operation failed.
1288
+ FAILED = 9
1289
+ end
1290
+ end
1291
+
1292
+ # Artifacts created by preview.
1293
+ # @!attribute [r] content
1294
+ # @return [::String]
1295
+ # Output only. Location of a blueprint copy and other content in Google Cloud
1296
+ # Storage. Format: `gs://{bucket}/{object}`
1297
+ # @!attribute [r] artifacts
1298
+ # @return [::String]
1299
+ # Output only. Location of artifacts in Google Cloud Storage.
1300
+ # Format: `gs://{bucket}/{object}`
1301
+ class PreviewArtifacts
1302
+ include ::Google::Protobuf::MessageExts
1303
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1304
+ end
1305
+
1306
+ # A request to create a preview.
1307
+ # @!attribute [rw] parent
1308
+ # @return [::String]
1309
+ # Required. The parent in whose context the Preview is created. The parent
1310
+ # value is in the format: 'projects/\\{project_id}/locations/\\{location}'.
1311
+ # @!attribute [rw] preview_id
1312
+ # @return [::String]
1313
+ # Optional. The preview ID.
1314
+ # @!attribute [rw] preview
1315
+ # @return [::Google::Cloud::ConfigService::V1::Preview]
1316
+ # Required. {::Google::Cloud::ConfigService::V1::Preview Preview} resource to be created.
1317
+ # @!attribute [rw] request_id
1318
+ # @return [::String]
1319
+ # Optional. An optional request ID to identify requests. Specify a unique
1320
+ # request ID so that if you must retry your request, the server will know to
1321
+ # ignore the request if it has already been completed. The server will
1322
+ # guarantee that for at least 60 minutes since the first request.
1323
+ #
1324
+ # For example, consider a situation where you make an initial request and the
1325
+ # request times out. If you make the request again with the same request ID,
1326
+ # the server can check if original operation with the same request ID was
1327
+ # received, and if so, will ignore the second request. This prevents clients
1328
+ # from accidentally creating duplicate commitments.
1329
+ #
1330
+ # The request ID must be a valid UUID with the exception that zero UUID is
1331
+ # not supported (00000000-0000-0000-0000-000000000000).
1332
+ class CreatePreviewRequest
1333
+ include ::Google::Protobuf::MessageExts
1334
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1335
+ end
1336
+
1337
+ # A request to get details about a preview.
1338
+ # @!attribute [rw] name
1339
+ # @return [::String]
1340
+ # Required. The name of the preview. Format:
1341
+ # 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}'.
1342
+ class GetPreviewRequest
1343
+ include ::Google::Protobuf::MessageExts
1344
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1345
+ end
1346
+
1347
+ # A request to list all previews for a given project and location.
1348
+ # @!attribute [rw] parent
1349
+ # @return [::String]
1350
+ # Required. The parent in whose context the Previews are listed. The parent
1351
+ # value is in the format: 'projects/\\{project_id}/locations/\\{location}'.
1352
+ # @!attribute [rw] page_size
1353
+ # @return [::Integer]
1354
+ # Optional. When requesting a page of resources, 'page_size' specifies number
1355
+ # of resources to return. If unspecified or set to 0, all resources will be
1356
+ # returned.
1357
+ # @!attribute [rw] page_token
1358
+ # @return [::String]
1359
+ # Optional. Token returned by previous call to 'ListDeployments' which
1360
+ # specifies the position in the list from where to continue listing the
1361
+ # resources.
1362
+ # @!attribute [rw] filter
1363
+ # @return [::String]
1364
+ # Optional. Lists the Deployments that match the filter expression. A filter
1365
+ # expression filters the resources listed in the response. The expression
1366
+ # must be of the form '\\{field} \\{operator} \\{value}' where operators: '<', '>',
1367
+ # '<=', '>=', '!=', '=', ':' are supported (colon ':' represents a HAS
1368
+ # operator which is roughly synonymous with equality). \\{field} can refer to a
1369
+ # proto or JSON field, or a synthetic field. Field names can be camelCase or
1370
+ # snake_case.
1371
+ #
1372
+ # Examples:
1373
+ # - Filter by name:
1374
+ # name = "projects/foo/locations/us-central1/deployments/bar
1375
+ #
1376
+ # - Filter by labels:
1377
+ # - Resources that have a key called 'foo'
1378
+ # labels.foo:*
1379
+ # - Resources that have a key called 'foo' whose value is 'bar'
1380
+ # labels.foo = bar
1381
+ #
1382
+ # - Filter by state:
1383
+ # - Deployments in CREATING state.
1384
+ # state=CREATING
1385
+ # @!attribute [rw] order_by
1386
+ # @return [::String]
1387
+ # Optional. Field to use to sort the list.
1388
+ class ListPreviewsRequest
1389
+ include ::Google::Protobuf::MessageExts
1390
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1391
+ end
1392
+
1393
+ # A response to a `ListPreviews` call. Contains a list of Previews.
1394
+ # @!attribute [rw] previews
1395
+ # @return [::Array<::Google::Cloud::ConfigService::V1::Preview>]
1396
+ # List of [Previews][]s.
1397
+ # @!attribute [rw] next_page_token
1398
+ # @return [::String]
1399
+ # Token to be supplied to the next ListPreviews request via `page_token`
1400
+ # to obtain the next set of results.
1401
+ # @!attribute [rw] unreachable
1402
+ # @return [::Array<::String>]
1403
+ # Locations that could not be reached.
1404
+ class ListPreviewsResponse
1405
+ include ::Google::Protobuf::MessageExts
1406
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1407
+ end
1408
+
1409
+ # A request to delete a preview.
1410
+ # @!attribute [rw] name
1411
+ # @return [::String]
1412
+ # Required. The name of the Preview in the format:
1413
+ # 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}'.
1414
+ # @!attribute [rw] request_id
1415
+ # @return [::String]
1416
+ # Optional. An optional request ID to identify requests. Specify a unique
1417
+ # request ID so that if you must retry your request, the server will know to
1418
+ # ignore the request if it has already been completed. The server will
1419
+ # guarantee that for at least 60 minutes after the first request.
1420
+ #
1421
+ # For example, consider a situation where you make an initial request and the
1422
+ # request times out. If you make the request again with the same request ID,
1423
+ # the server can check if original operation with the same request ID was
1424
+ # received, and if so, will ignore the second request. This prevents clients
1425
+ # from accidentally creating duplicate commitments.
1426
+ #
1427
+ # The request ID must be a valid UUID with the exception that zero UUID is
1428
+ # not supported (00000000-0000-0000-0000-000000000000).
1429
+ class DeletePreviewRequest
1430
+ include ::Google::Protobuf::MessageExts
1431
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1432
+ end
1433
+
1434
+ # A request to export preview results.
1435
+ # @!attribute [rw] parent
1436
+ # @return [::String]
1437
+ # Required. The preview whose results should be exported. The preview value
1438
+ # is in the format:
1439
+ # 'projects/\\{project_id}/locations/\\{location}/previews/\\{preview}'.
1440
+ class ExportPreviewResultRequest
1441
+ include ::Google::Protobuf::MessageExts
1442
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1443
+ end
1444
+
1445
+ # A response to `ExportPreviewResult` call. Contains preview results.
1446
+ # @!attribute [r] result
1447
+ # @return [::Google::Cloud::ConfigService::V1::PreviewResult]
1448
+ # Output only. Signed URLs for accessing the plan files.
1449
+ class ExportPreviewResultResponse
1450
+ include ::Google::Protobuf::MessageExts
1451
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1452
+ end
1453
+
1454
+ # Contains a signed Cloud Storage URLs.
1455
+ # @!attribute [r] binary_signed_uri
1456
+ # @return [::String]
1457
+ # Output only. Plan binary signed URL
1458
+ # @!attribute [r] json_signed_uri
1459
+ # @return [::String]
1460
+ # Output only. Plan JSON signed URL
1461
+ class PreviewResult
1462
+ include ::Google::Protobuf::MessageExts
1463
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1464
+ end
1079
1465
  end
1080
1466
  end
1081
1467
  end
@@ -129,7 +129,8 @@ module Google
129
129
  #
130
130
  # Note: this functionality is not currently available in the official
131
131
  # protobuf release, and it is not used for type URLs beginning with
132
- # type.googleapis.com.
132
+ # type.googleapis.com. As of May 2023, there are no widely used type server
133
+ # implementations and no plans to implement one.
133
134
  #
134
135
  # Schemes other than `http`, `https` (or the empty scheme) might be
135
136
  # used with implementation specific semantics.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-config_service-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-12 00:00:00.000000000 Z
11
+ date: 2024-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -228,6 +228,7 @@ files:
228
228
  - proto_docs/README.md
229
229
  - proto_docs/google/api/client.rb
230
230
  - proto_docs/google/api/field_behavior.rb
231
+ - proto_docs/google/api/field_info.rb
231
232
  - proto_docs/google/api/launch_stage.rb
232
233
  - proto_docs/google/api/resource.rb
233
234
  - proto_docs/google/cloud/config/v1/config.rb