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

Set Container default TTL via CosmosSDK v3 #5445

Closed
dkroehan opened this issue Sep 20, 2019 · 4 comments
Closed

Set Container default TTL via CosmosSDK v3 #5445

dkroehan opened this issue Sep 20, 2019 · 4 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. cosmos:v4-item Indicates this feature will be shipped as part of V4 release train Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.
Milestone

Comments

@dkroehan
Copy link

In the CosmosSDK v2 it was possible to set the default TimeToLive when creating a new DocumentCollection, by using: DocumentCollection#setDefaultTimeToLive

I couldn't find a possibility how to do that with the new CosmosSDK v3.

@loarabia loarabia added Client This issue points to a problem in the data-plane of the library. Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention Workflow: This issue is responsible by Azure service team. labels Sep 20, 2019
@ghost
Copy link

ghost commented Sep 20, 2019

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shurd

1 similar comment
@ghost
Copy link

ghost commented Sep 20, 2019

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shurd

@shurd shurd added the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Sep 20, 2019
@shurd
Copy link

shurd commented Sep 25, 2019

Hi @dkroehan thank you for opening this issue. Looking through the V3 code, it does not look like you can currently set the default TTL when creating a container. Based on the implementation of the .NET v3 SDK, the property would likely be in the "CosmosContainerProperties.java" class. @christopheranderson would know more about this issue.

@kushagraThapar
Copy link
Member

This API has been exposed in all SDK versions now.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. cosmos:v4-item Indicates this feature will be shipped as part of V4 release train Cosmos customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

6 participants