Class: Google::Cloud::ConfigService::V1::Preview
- Inherits:
-
Object
- Object
- Google::Cloud::ConfigService::V1::Preview
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/config/v1/config.rb
Overview
A preview represents a set of actions Infra Manager would perform to move the resources towards the desired state as specified in the configuration.
Defined Under Namespace
Modules: ErrorCode, PreviewMode, State Classes: LabelsEntry
Instance Attribute Summary collapse
-
#artifacts_gcs_bucket ⇒ ::String
Optional.
-
#build ⇒ ::String
readonly
Output only.
-
#create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#deployment ⇒ ::String
Optional.
-
#error_code ⇒ ::Google::Cloud::ConfigService::V1::Preview::ErrorCode
readonly
Output only.
-
#error_logs ⇒ ::String
readonly
Output only.
-
#error_status ⇒ ::Google::Rpc::Status
readonly
Output only.
-
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Optional.
-
#logs ⇒ ::String
readonly
Output only.
-
#name ⇒ ::String
Identifier.
-
#preview_artifacts ⇒ ::Google::Cloud::ConfigService::V1::PreviewArtifacts
readonly
Output only.
-
#preview_mode ⇒ ::Google::Cloud::ConfigService::V1::Preview::PreviewMode
Optional.
-
#service_account ⇒ ::String
Optional.
-
#state ⇒ ::Google::Cloud::ConfigService::V1::Preview::State
readonly
Output only.
-
#terraform_blueprint ⇒ ::Google::Cloud::ConfigService::V1::TerraformBlueprint
The terraform blueprint to preview.
-
#tf_errors ⇒ ::Array<::Google::Cloud::ConfigService::V1::TerraformError>
readonly
Output only.
-
#worker_pool ⇒ ::String
Optional.
Instance Attribute Details
#artifacts_gcs_bucket ⇒ ::String
Returns Optional. User-defined location of Cloud Build logs, artifacts, and
in Google Cloud Storage.
Format: gs://{bucket}/{folder}
A default bucket will be bootstrapped if the field is not set or empty
Default Bucket Format: gs://<project number>-<region>-blueprint-config
Constraints:
- The bucket needs to be in the same project as the deployment
- The path cannot be within the path of
gcs_source
If omitted and deployment resource ref provided has artifacts_gcs_bucket defined, that artifact bucket is used.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |
#build ⇒ ::String (readonly)
Returns Output only. Cloud Build instance UUID associated with this preview.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |
#create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. Time the preview was created.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |
#deployment ⇒ ::String
Returns Optional. Optional deployment reference. If specified, the preview will be performed using the provided deployment's current state and use any relevant fields from the deployment unless explicitly specified in the preview create request.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |
#error_code ⇒ ::Google::Cloud::ConfigService::V1::Preview::ErrorCode (readonly)
Returns Output only. Code describing any errors that may have occurred.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |
#error_logs ⇒ ::String (readonly)
Returns Output only. Link to tf-error.ndjson file, which contains the full list of
the errors encountered during a Terraform preview.
Format: gs://{bucket}/{object}
.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |
#error_status ⇒ ::Google::Rpc::Status (readonly)
Returns Output only. Additional information regarding the current state.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns Optional. User-defined labels for the preview.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |
#logs ⇒ ::String (readonly)
Returns Output only. Location of preview logs in gs://{bucket}/{object}
format.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |
#name ⇒ ::String
Returns Identifier. Resource name of the preview. Resource name can be user
provided or server generated ID if unspecified. Format:
projects/{project}/locations/{location}/previews/{preview}
.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |
#preview_artifacts ⇒ ::Google::Cloud::ConfigService::V1::PreviewArtifacts (readonly)
Returns Output only. Artifacts from preview.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |
#preview_mode ⇒ ::Google::Cloud::ConfigService::V1::Preview::PreviewMode
Returns Optional. Current mode of preview.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |
#service_account ⇒ ::String
Returns Optional. Optional service account. If omitted, the deployment resource reference must be provided, and the service account attached to the deployment will be used.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |
#state ⇒ ::Google::Cloud::ConfigService::V1::Preview::State (readonly)
Returns Output only. Current state of the preview.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |
#terraform_blueprint ⇒ ::Google::Cloud::ConfigService::V1::TerraformBlueprint
Returns The terraform blueprint to preview.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |
#tf_errors ⇒ ::Array<::Google::Cloud::ConfigService::V1::TerraformError> (readonly)
Returns Output only. Summary of errors encountered during Terraform preview. It has a size limit of 10, i.e. only top 10 errors will be summarized here.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |
#worker_pool ⇒ ::String
Returns Optional. The user-specified Worker Pool resource in which the Cloud Build job will execute. Format projects/{project}/locations/{location}/workerPools/{workerPoolId} If this field is unspecified, the default Cloud Build worker pool will be used. If omitted and deployment resource ref provided has worker_pool defined, that worker pool is used.
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 1161 class Preview include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible states of a preview. module State # The default value. This value is used if the state is unknown. STATE_UNSPECIFIED = 0 # The preview is being created. CREATING = 1 # The preview has succeeded. SUCCEEDED = 2 # The preview is being applied. APPLYING = 3 # The preview is stale. A preview can become stale if a revision has been # applied after this preview was created. STALE = 4 # The preview is being deleted. DELETING = 5 # The preview has encountered an unexpected error. FAILED = 6 # The preview has been deleted. DELETED = 7 end # Preview mode provides options for customizing preview operations. module PreviewMode # Unspecified policy, default mode will be used. PREVIEW_MODE_UNSPECIFIED = 0 # DEFAULT mode generates an execution plan for reconciling current resource # state into expected resource state. DEFAULT = 1 # DELETE mode generates as execution plan for destroying current resources. DELETE = 2 end # Possible errors that can occur with previews. module ErrorCode # No error code was specified. ERROR_CODE_UNSPECIFIED = 0 # Cloud Build failed due to a permissions issue. CLOUD_BUILD_PERMISSION_DENIED = 1 # Cloud Storage bucket failed to create due to a permissions issue. BUCKET_CREATION_PERMISSION_DENIED = 2 # Cloud Storage bucket failed for a non-permissions-related issue. BUCKET_CREATION_FAILED = 3 # Acquiring lock on provided deployment reference failed. DEPLOYMENT_LOCK_ACQUIRE_FAILED = 4 # Preview encountered an error when trying to access Cloud Build API. PREVIEW_BUILD_API_FAILED = 5 # Preview created a build but build failed and logs were generated. PREVIEW_BUILD_RUN_FAILED = 6 end end |