Skip to content

[Storage Files] Migrating to TypeSpec#46929

Draft
l0lawrence wants to merge 60 commits into
Azure:mainfrom
l0lawrence:storagefiles
Draft

[Storage Files] Migrating to TypeSpec#46929
l0lawrence wants to merge 60 commits into
Azure:mainfrom
l0lawrence:storagefiles

Conversation

@l0lawrence
Copy link
Copy Markdown
Member

@l0lawrence l0lawrence commented May 15, 2026

need to ensure content-validation is working as expected

@github-actions github-actions Bot added the Storage Storage Service (Queues, Blobs, Files) label May 15, 2026
if parallel and "modified_access_conditions" in kwargs:
# Access conditions do not work with parallelism
kwargs["modified_access_conditions"] = None
if parallel:
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

these changes are from storage-blob changes with typespec

@@ -53,18 +54,20 @@ class ShareLeaseClient: # pylint: disable=client-accepts-api-version-keyword
This will be `None` if no lease has yet been acquired or modified."""

def __init__( # pylint: disable=missing-client-constructor-parameter-credential, missing-client-constructor-parameter-kwargs
self, client: Union["ShareFileClient", "ShareClient"],
lease_id: Optional[str] = None
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

look at this fn

if isinstance(self._client, FileOperations) and lease_break_period:
raise TypeError("Setting a lease break period is only applicable to Share leases.")

if self._allow_trailing_dot is not None:
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

why does this have a if not none check

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - storage - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - storage - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - storage - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - storage - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - storage - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

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.

2 participants