Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructuring of NFSProperties #24238

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

ashruti-msft
Copy link
Member

Restructured all NFS Properties together.

  • The purpose of this PR is explained in this or a referenced issue.
  • The PR does not update generated files.
  • Tests are included and/or updated for code changes.
  • Updates to module CHANGELOG.md are included.
  • MIT license headers are included in each file.

@Copilot Copilot bot review requested due to automatic review settings March 11, 2025 11:39
@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Mar 11, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR restructures the handling of NFS properties in the Azure SDK for Go by introducing a new NFSProperties type and updating related models, examples, and tests. Key changes include:

  • Introduction of a new NFSProperties type and associated formatting functions in the internal/exported package.
  • Updates to directory and file models to use the new NFSProperties in creation, property setting, and HTTP header operations.
  • Updates to examples and tests to demonstrate usage of NFSProperties.

Reviewed Changes

File Description
sdk/storage/azfile/internal/exported/nfs_property.go Added new NFSProperties type and formatting functions
sdk/storage/azfile/directory/models.go Updated CreateOptions and SetPropertiesOptions to include NFSProperties
sdk/storage/azfile/file/models.go Added NFSProperties alias and updated create, header, and start-copy options
sdk/storage/azfile/file/examples_test.go Updated examples to showcase NFSProperties usage
sdk/storage/azfile/directory/examples_test.go Updated examples to showcase NFSProperties usage
sdk/storage/azfile/directory/client_test.go Updated tests to include NFSProperties in directory operations
sdk/storage/azfile/file/client_test.go Updated tests to include NFSProperties in file operations

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

sdk/storage/azfile

Comment on lines +365 to +366
FileModeCopyMode: o.FileModeCopyMode,
FileOwnerCopyMode: o.FileOwnerCopyMode,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this in case of NFS?
@vibhansa-msft ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants