@@ -813,6 +813,32 @@ class ResourceOptions(google.protobuf.message.Message):
813813 ) -> None : ...
814814 def ClearField (self , field_name : typing .Literal ["enabled" , b"enabled" , "excepted_values" , b"excepted_values" , "policy_type" , b"policy_type" ]) -> None : ...
815815
816+ @typing .final
817+ class FollowRedirectsOption (google .protobuf .message .Message ):
818+ DESCRIPTOR : google .protobuf .descriptor .Descriptor
819+
820+ ENABLED_FIELD_NUMBER : builtins .int
821+ CODES_FIELD_NUMBER : builtins .int
822+ USE_CUSTOM_HOST_FIELD_NUMBER : builtins .int
823+ enabled : builtins .bool
824+ """True - the option is enabled and its [flag] is applied to the resource.
825+ False - the option is disabled and its default value of the [flag] is used for the resource.
826+ """
827+ use_custom_host : builtins .bool
828+ """Use the redirect target domain as a Host header, or leave it the same as the value of the Change Host header option."""
829+ @property
830+ def codes (self ) -> google .protobuf .internal .containers .RepeatedScalarFieldContainer [builtins .int ]:
831+ """Add the redirect HTTP status codes that the source returns."""
832+
833+ def __init__ (
834+ self ,
835+ * ,
836+ enabled : builtins .bool = ...,
837+ codes : collections .abc .Iterable [builtins .int ] | None = ...,
838+ use_custom_host : builtins .bool = ...,
839+ ) -> None : ...
840+ def ClearField (self , field_name : typing .Literal ["codes" , b"codes" , "enabled" , b"enabled" , "use_custom_host" , b"use_custom_host" ]) -> None : ...
841+
816842 DISABLE_CACHE_FIELD_NUMBER : builtins .int
817843 EDGE_CACHE_SETTINGS_FIELD_NUMBER : builtins .int
818844 BROWSER_CACHE_SETTINGS_FIELD_NUMBER : builtins .int
@@ -834,6 +860,7 @@ class ResourceOptions(google.protobuf.message.Message):
834860 REWRITE_FIELD_NUMBER : builtins .int
835861 SECURE_KEY_FIELD_NUMBER : builtins .int
836862 IP_ADDRESS_ACL_FIELD_NUMBER : builtins .int
863+ FOLLOW_REDIRECTS_FIELD_NUMBER : builtins .int
837864 @property
838865 def disable_cache (self ) -> global___ResourceOptions .BoolOption :
839866 """Set up a cache status."""
@@ -948,6 +975,12 @@ class ResourceOptions(google.protobuf.message.Message):
948975 The option controls access to content from the specified IP addresses.
949976 """
950977
978+ @property
979+ def follow_redirects (self ) -> global___ResourceOptions .FollowRedirectsOption :
980+ """Manage the state of the Redirection from origin option.
981+ If the source returns a redirect, the option lets CDN pull the requested content from the source that was returned in the redirect.
982+ """
983+
951984 def __init__ (
952985 self ,
953986 * ,
@@ -972,9 +1005,10 @@ class ResourceOptions(google.protobuf.message.Message):
9721005 rewrite : global___ResourceOptions .RewriteOption | None = ...,
9731006 secure_key : global___ResourceOptions .SecureKeyOption | None = ...,
9741007 ip_address_acl : global___ResourceOptions .IPAddressACLOption | None = ...,
1008+ follow_redirects : global___ResourceOptions .FollowRedirectsOption | None = ...,
9751009 ) -> None : ...
976- def HasField (self , field_name : typing .Literal ["allowed_http_methods" , b"allowed_http_methods" , "browser_cache_settings" , b"browser_cache_settings" , "cache_http_headers" , b"cache_http_headers" , "compression_options" , b"compression_options" , "cors" , b"cors" , "custom_server_name" , b"custom_server_name" , "disable_cache" , b"disable_cache" , "disable_proxy_force_ranges" , b"disable_proxy_force_ranges" , "edge_cache_settings" , b"edge_cache_settings" , "host_options" , b"host_options" , "ignore_cookie" , b"ignore_cookie" , "ip_address_acl" , b"ip_address_acl" , "proxy_cache_methods_set" , b"proxy_cache_methods_set" , "query_params_options" , b"query_params_options" , "redirect_options" , b"redirect_options" , "rewrite" , b"rewrite" , "secure_key" , b"secure_key" , "slice" , b"slice" , "stale" , b"stale" , "static_headers" , b"static_headers" , "static_request_headers" , b"static_request_headers" ]) -> builtins .bool : ...
977- def ClearField (self , field_name : typing .Literal ["allowed_http_methods" , b"allowed_http_methods" , "browser_cache_settings" , b"browser_cache_settings" , "cache_http_headers" , b"cache_http_headers" , "compression_options" , b"compression_options" , "cors" , b"cors" , "custom_server_name" , b"custom_server_name" , "disable_cache" , b"disable_cache" , "disable_proxy_force_ranges" , b"disable_proxy_force_ranges" , "edge_cache_settings" , b"edge_cache_settings" , "host_options" , b"host_options" , "ignore_cookie" , b"ignore_cookie" , "ip_address_acl" , b"ip_address_acl" , "proxy_cache_methods_set" , b"proxy_cache_methods_set" , "query_params_options" , b"query_params_options" , "redirect_options" , b"redirect_options" , "rewrite" , b"rewrite" , "secure_key" , b"secure_key" , "slice" , b"slice" , "stale" , b"stale" , "static_headers" , b"static_headers" , "static_request_headers" , b"static_request_headers" ]) -> None : ...
1010+ def HasField (self , field_name : typing .Literal ["allowed_http_methods" , b"allowed_http_methods" , "browser_cache_settings" , b"browser_cache_settings" , "cache_http_headers" , b"cache_http_headers" , "compression_options" , b"compression_options" , "cors" , b"cors" , "custom_server_name" , b"custom_server_name" , "disable_cache" , b"disable_cache" , "disable_proxy_force_ranges" , b"disable_proxy_force_ranges" , "edge_cache_settings" , b"edge_cache_settings" , "follow_redirects" , b"follow_redirects" , " host_options" , b"host_options" , "ignore_cookie" , b"ignore_cookie" , "ip_address_acl" , b"ip_address_acl" , "proxy_cache_methods_set" , b"proxy_cache_methods_set" , "query_params_options" , b"query_params_options" , "redirect_options" , b"redirect_options" , "rewrite" , b"rewrite" , "secure_key" , b"secure_key" , "slice" , b"slice" , "stale" , b"stale" , "static_headers" , b"static_headers" , "static_request_headers" , b"static_request_headers" ]) -> builtins .bool : ...
1011+ def ClearField (self , field_name : typing .Literal ["allowed_http_methods" , b"allowed_http_methods" , "browser_cache_settings" , b"browser_cache_settings" , "cache_http_headers" , b"cache_http_headers" , "compression_options" , b"compression_options" , "cors" , b"cors" , "custom_server_name" , b"custom_server_name" , "disable_cache" , b"disable_cache" , "disable_proxy_force_ranges" , b"disable_proxy_force_ranges" , "edge_cache_settings" , b"edge_cache_settings" , "follow_redirects" , b"follow_redirects" , " host_options" , b"host_options" , "ignore_cookie" , b"ignore_cookie" , "ip_address_acl" , b"ip_address_acl" , "proxy_cache_methods_set" , b"proxy_cache_methods_set" , "query_params_options" , b"query_params_options" , "redirect_options" , b"redirect_options" , "rewrite" , b"rewrite" , "secure_key" , b"secure_key" , "slice" , b"slice" , "stale" , b"stale" , "static_headers" , b"static_headers" , "static_request_headers" , b"static_request_headers" ]) -> None : ...
9781012
9791013global___ResourceOptions = ResourceOptions
9801014
0 commit comments