Optional. Specifies the "time-to-live" duration for an associated resource. The resource expires if it is not active for a period of ttl. The definition of "activity" depends on the type of the associated resource. The minimum and maximum allowed values for ttl depend on the type of the associated resource, as well. If ttl is not set, the associated resource never expires.
getTtl
Optional. Specifies the "time-to-live" duration for an associated resource.
The resource expires if it is not active for a period of ttl. The
definition of "activity" depends on the type of the associated resource.
The minimum and maximum allowed values for ttl depend on the type of the
associated resource, as well. If ttl is not set, the associated resource
never expires.
Optional. Specifies the "time-to-live" duration for an associated resource.
The resource expires if it is not active for a period of ttl. The
definition of "activity" depends on the type of the associated resource.
The minimum and maximum allowed values for ttl depend on the type of the
associated resource, as well. If ttl is not set, the associated resource
never expires.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud BigQuery Analytics Hub V1 Client - Class ExpirationPolicy (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-bigquery-analyticshub/latest/V1.ExpirationPolicy)\n- [1.2.0](/php/docs/reference/cloud-bigquery-analyticshub/1.2.0/V1.ExpirationPolicy)\n- [1.1.0](/php/docs/reference/cloud-bigquery-analyticshub/1.1.0/V1.ExpirationPolicy)\n- [1.0.4](/php/docs/reference/cloud-bigquery-analyticshub/1.0.4/V1.ExpirationPolicy)\n- [0.5.3](/php/docs/reference/cloud-bigquery-analyticshub/0.5.3/V1.ExpirationPolicy)\n- [0.4.0](/php/docs/reference/cloud-bigquery-analyticshub/0.4.0/V1.ExpirationPolicy)\n- [0.3.2](/php/docs/reference/cloud-bigquery-analyticshub/0.3.2/V1.ExpirationPolicy)\n- [0.2.2](/php/docs/reference/cloud-bigquery-analyticshub/0.2.2/V1.ExpirationPolicy)\n- [0.1.6](/php/docs/reference/cloud-bigquery-analyticshub/0.1.6/V1.ExpirationPolicy) \nReference documentation and code samples for the Google Cloud BigQuery Analytics Hub V1 Client class ExpirationPolicy.\n\nA policy that specifies the conditions for resource expiration (i.e.,\nautomatic resource deletion).\n\nGenerated from protobuf message `google.cloud.bigquery.analyticshub.v1.ExpirationPolicy`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BigQuery \\\\ AnalyticsHub \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTtl\n\nOptional. Specifies the \"time-to-live\" duration for an associated resource.\n\nThe resource expires if it is not active for a period of `ttl`. The\ndefinition of \"activity\" depends on the type of the associated resource.\nThe minimum and maximum allowed values for `ttl` depend on the type of the\nassociated resource, as well. If `ttl` is not set, the associated resource\nnever expires.\n\n### hasTtl\n\n### clearTtl\n\n### setTtl\n\nOptional. Specifies the \"time-to-live\" duration for an associated resource.\n\nThe resource expires if it is not active for a period of `ttl`. The\ndefinition of \"activity\" depends on the type of the associated resource.\nThe minimum and maximum allowed values for `ttl` depend on the type of the\nassociated resource, as well. If `ttl` is not set, the associated resource\nnever expires."]]