Skip to content

Commit

Permalink
feat: [netapp] Add ValidateDirectoryService API for testing AD connec…
Browse files Browse the repository at this point in the history
…tion 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]>
  • Loading branch information
3 people authored Jan 10, 2025
1 parent e14659f commit f058d7a
Show file tree
Hide file tree
Showing 15 changed files with 1,008 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/google-cloud-netapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
| 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) |
| 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) |
| 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) |
| 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) |
| 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) |
| 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) |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,20 @@ service NetApp {
};
}

// ValidateDirectoryService does a connectivity check for a directory service
// policy attached to the storage pool.
rpc ValidateDirectoryService(ValidateDirectoryServiceRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1/{name=projects/*/locations/*/storagePools/*}:validateDirectoryService"
body: "*"
};
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
metadata_type: "OperationMetadata"
};
}

// This operation will switch the active/replica zone for a regional
// storagePool.
rpc SwitchActiveReplicaZone(SwitchActiveReplicaZoneRequest)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ enum EncryptionType {
CLOUD_KMS = 2;
}

// Type of directory service
enum DirectoryServiceType {
// Directory service type is not specified.
DIRECTORY_SERVICE_TYPE_UNSPECIFIED = 0;

// Active directory policy attached to the storage pool.
ACTIVE_DIRECTORY = 1;
}

// Metadata for a given
// [google.cloud.location.Location][google.cloud.location.Location].
message LocationMetadata {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,3 +254,18 @@ message StoragePool {
// Optional. Specifies the active zone for regional storagePool.
string zone = 21 [(google.api.field_behavior) = OPTIONAL];
}

// ValidateDirectoryServiceRequest validates the directory service policy
// attached to the storage pool.
message ValidateDirectoryServiceRequest {
// Required. Name of the storage pool
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "netapp.googleapis.com/StoragePool"
}
];

// Type of directory service policy attached to the storage pool.
DirectoryServiceType directory_service_type = 2;
}
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,7 @@ message TieringPolicy {

// The Hybrid Replication parameters for the volume.
message HybridReplicationParameters {
// Required. Desired Identifier (name) of the replication which will be created for this volume.
// Format:
// `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`
// Required. Desired name for the replication of this volume.
string replication = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down
130 changes: 130 additions & 0 deletions packages/google-cloud-netapp/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f058d7a

Please sign in to comment.