Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/google-cloud-config/.jsdoc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2025 Google LLC
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -40,7 +40,7 @@ module.exports = {
includePattern: '\\.js$'
},
templates: {
copyright: 'Copyright 2025 Google LLC',
copyright: 'Copyright 2026 Google LLC',
includeDate: false,
sourceFiles: false,
systemName: '@google-cloud/config',
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-config/.mocharc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2025 Google LLC
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-config/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2025 Google LLC
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 2 additions & 0 deletions packages/google-cloud-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ
| export lock info | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-config/samples/generated/v1/config.export_lock_info.js) |
| export preview result | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-config/samples/generated/v1/config.export_preview_result.js) |
| export revision statefile | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-config/samples/generated/v1/config.export_revision_statefile.js) |
| get auto migration config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-config/samples/generated/v1/config.get_auto_migration_config.js) |
| get deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-config/samples/generated/v1/config.get_deployment.js) |
| get preview | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-config/samples/generated/v1/config.get_preview.js) |
| get resource | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-config/samples/generated/v1/config.get_resource.js) |
Expand All @@ -84,6 +85,7 @@ Samples are in the [`samples/`][homepage_samples] directory. Each sample's `READ
| list terraform versions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-config/samples/generated/v1/config.list_terraform_versions.js) |
| lock deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-config/samples/generated/v1/config.lock_deployment.js) |
| unlock deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-config/samples/generated/v1/config.unlock_deployment.js) |
| update auto migration config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-config/samples/generated/v1/config.update_auto_migration_config.js) |
| update deployment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-config/samples/generated/v1/config.update_deployment.js) |
| cloud | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-config/samples/generated/v1/snippet_metadata_google.cloud.config.v1.json) |

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2025 Google LLC
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -322,6 +322,29 @@ service Config {
};
option (google.api.method_signature) = "name";
}

// Get the AutoMigrationConfig for a given project and location.
rpc GetAutoMigrationConfig(GetAutoMigrationConfigRequest)
returns (AutoMigrationConfig) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/autoMigrationConfig}"
};
option (google.api.method_signature) = "name";
}

// Updates the AutoMigrationConfig for a given project and location.
rpc UpdateAutoMigrationConfig(UpdateAutoMigrationConfigRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
patch: "/v1/{auto_migration_config.name=projects/*/locations/*/autoMigrationConfig}"
body: "auto_migration_config"
};
option (google.api.method_signature) = "auto_migration_config,update_mask";
option (google.longrunning.operation_info) = {
response_type: "AutoMigrationConfig"
metadata_type: "OperationMetadata"
};
}
}

// Enum values to control quota checks for resources in terraform
Expand Down Expand Up @@ -402,6 +425,9 @@ message Deployment {
// Cloud Storage bucket creation failed due to an issue unrelated to
// permissions.
BUCKET_CREATION_FAILED = 8;

// Failed to import values from an external source.
EXTERNAL_VALUE_SOURCE_IMPORT_FAILED = 10;
}

// Possible lock states of a deployment.
Expand Down Expand Up @@ -965,6 +991,9 @@ message Revision {
// quota validation failed for one or more resources in terraform
// configuration files.
QUOTA_VALIDATION_FAILED = 7;

// Failed to import values from an external source.
EXTERNAL_VALUE_SOURCE_IMPORT_FAILED = 8;
}

// Blueprint that was deployed.
Expand Down Expand Up @@ -1529,6 +1558,9 @@ message Preview {

// Preview created a build but build failed and logs were generated.
PREVIEW_BUILD_RUN_FAILED = 6;

// Failed to import values from an external source.
EXTERNAL_VALUE_SOURCE_IMPORT_FAILED = 7;
}

// Blueprint to preview.
Expand Down Expand Up @@ -2275,3 +2307,50 @@ message ProviderConfig {
optional ProviderSource source_type = 1
[(google.api.field_behavior) = OPTIONAL];
}

// The request message for the GetAutoMigrationConfig method.
message GetAutoMigrationConfigRequest {
// Required. The name of the AutoMigrationConfig.
// Format:
// 'projects/{project_id}/locations/{location}/AutoMigrationConfig'.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "config.googleapis.com/AutoMigrationConfig"
}
];
}

// AutoMigrationConfig contains the automigration configuration for a project.
message AutoMigrationConfig {
option (google.api.resource) = {
type: "config.googleapis.com/AutoMigrationConfig"
pattern: "projects/{project}/locations/{location}/autoMigrationConfig"
plural: "autoMigrationConfigs"
singular: "autoMigrationConfig"
};

// Identifier. The name of the AutoMigrationConfig.
// Format:
// 'projects/{project_id}/locations/{location}/AutoMigrationConfig'.
string name = 1 [(google.api.field_behavior) = IDENTIFIER];

// Output only. Time the AutoMigrationConfig was last updated.
google.protobuf.Timestamp update_time = 2
[(google.api.field_behavior) = OUTPUT_ONLY];

// Optional. Whether the auto migration is enabled for the project.
bool auto_migration_enabled = 3 [(google.api.field_behavior) = OPTIONAL];
}

// The request message for the UpdateAutoMigrationConfig method.
message UpdateAutoMigrationConfigRequest {
// Optional. The update mask applies to the resource. See
// [google.protobuf.FieldMask][google.protobuf.FieldMask].
google.protobuf.FieldMask update_mask = 1
[(google.api.field_behavior) = OPTIONAL];

// Required. The AutoMigrationConfig to update.
AutoMigrationConfig auto_migration_config = 2
[(google.api.field_behavior) = REQUIRED];
}
Loading