Skip to content

Commit f058d7a

Browse files
feat: [netapp] Add ValidateDirectoryService API for testing AD connection of a storage pool (#5931)
* feat: Add ValidateDirectoryService API for testing AD connection of a storage pool docs: Removed the format for `replication` in message `google.cloud.netapp.v1.HybridReplicationParameters` PiperOrigin-RevId: 713157619 Source-Link: googleapis/googleapis@7f2db36 Source-Link: googleapis/googleapis-gen@33068cc Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5ldGFwcC8uT3dsQm90LnlhbWwiLCJoIjoiMzMwNjhjYzUwYjM5Y2IwMWVjYzZkMTc1ZjQ2NGUxMzg0OTE3MTFmMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: d-goog <[email protected]>
1 parent e14659f commit f058d7a

15 files changed

Lines changed: 1008 additions & 3 deletions

packages/google-cloud-netapp/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
169169
| Net_app.update_snapshot | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.update_snapshot.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.update_snapshot.js,packages/google-cloud-netapp/samples/README.md) |
170170
| Net_app.update_storage_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.update_storage_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.update_storage_pool.js,packages/google-cloud-netapp/samples/README.md) |
171171
| Net_app.update_volume | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.update_volume.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.update_volume.js,packages/google-cloud-netapp/samples/README.md) |
172+
| Net_app.validate_directory_service | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.validate_directory_service.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.validate_directory_service.js,packages/google-cloud-netapp/samples/README.md) |
172173
| Net_app.verify_kms_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/generated/v1/net_app.verify_kms_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/generated/v1/net_app.verify_kms_config.js,packages/google-cloud-netapp/samples/README.md) |
173174
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-netapp/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-netapp/samples/quickstart.js,packages/google-cloud-netapp/samples/README.md) |
174175

packages/google-cloud-netapp/protos/google/cloud/netapp/v1/cloud_netapp_service.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,20 @@ service NetApp {
110110
};
111111
}
112112

113+
// ValidateDirectoryService does a connectivity check for a directory service
114+
// policy attached to the storage pool.
115+
rpc ValidateDirectoryService(ValidateDirectoryServiceRequest)
116+
returns (google.longrunning.Operation) {
117+
option (google.api.http) = {
118+
post: "/v1/{name=projects/*/locations/*/storagePools/*}:validateDirectoryService"
119+
body: "*"
120+
};
121+
option (google.longrunning.operation_info) = {
122+
response_type: "google.protobuf.Empty"
123+
metadata_type: "OperationMetadata"
124+
};
125+
}
126+
113127
// This operation will switch the active/replica zone for a regional
114128
// storagePool.
115129
rpc SwitchActiveReplicaZone(SwitchActiveReplicaZoneRequest)

packages/google-cloud-netapp/protos/google/cloud/netapp/v1/common.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ enum EncryptionType {
5656
CLOUD_KMS = 2;
5757
}
5858

59+
// Type of directory service
60+
enum DirectoryServiceType {
61+
// Directory service type is not specified.
62+
DIRECTORY_SERVICE_TYPE_UNSPECIFIED = 0;
63+
64+
// Active directory policy attached to the storage pool.
65+
ACTIVE_DIRECTORY = 1;
66+
}
67+
5968
// Metadata for a given
6069
// [google.cloud.location.Location][google.cloud.location.Location].
6170
message LocationMetadata {

packages/google-cloud-netapp/protos/google/cloud/netapp/v1/storage_pool.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,3 +254,18 @@ message StoragePool {
254254
// Optional. Specifies the active zone for regional storagePool.
255255
string zone = 21 [(google.api.field_behavior) = OPTIONAL];
256256
}
257+
258+
// ValidateDirectoryServiceRequest validates the directory service policy
259+
// attached to the storage pool.
260+
message ValidateDirectoryServiceRequest {
261+
// Required. Name of the storage pool
262+
string name = 1 [
263+
(google.api.field_behavior) = REQUIRED,
264+
(google.api.resource_reference) = {
265+
type: "netapp.googleapis.com/StoragePool"
266+
}
267+
];
268+
269+
// Type of directory service policy attached to the storage pool.
270+
DirectoryServiceType directory_service_type = 2;
271+
}

packages/google-cloud-netapp/protos/google/cloud/netapp/v1/volume.proto

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,9 +645,7 @@ message TieringPolicy {
645645

646646
// The Hybrid Replication parameters for the volume.
647647
message HybridReplicationParameters {
648-
// Required. Desired Identifier (name) of the replication which will be created for this volume.
649-
// Format:
650-
// `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`
648+
// Required. Desired name for the replication of this volume.
651649
string replication = 1 [
652650
(google.api.field_behavior) = REQUIRED,
653651
(google.api.resource_reference) = {

packages/google-cloud-netapp/protos/protos.d.ts

Lines changed: 130 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)