Skip to content

Commit fe80b58

Browse files
authored
feat: update http redirection status code (#31)
1 parent 9f87359 commit fe80b58

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

scaleway-async/scaleway_async/container/v1beta1/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ async def create_container(
577577
:param port:
578578
:param secret_environment_variables:
579579
:param http_option: possible values:
580-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
580+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
581581
- enabled: Serve both HTTP and HTTPS traffic.
582582
583583
:return: :class:`Container <Container>`
@@ -664,7 +664,7 @@ async def update_container(
664664
:param port:
665665
:param secret_environment_variables:
666666
:param http_option: possible values:
667-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
667+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
668668
- enabled: Serve both HTTP and HTTPS traffic.
669669
670670
:return: :class:`Container <Container>`

scaleway-async/scaleway_async/container/v1beta1/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class Container:
219219
http_option: ContainerHttpOption
220220
"""
221221
possible values:
222-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
222+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
223223
- enabled: Serve both HTTP and HTTPS traffic.
224224
225225
"""
@@ -576,7 +576,7 @@ class CreateContainerRequest:
576576
http_option: ContainerHttpOption
577577
"""
578578
possible values:
579-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
579+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
580580
- enabled: Serve both HTTP and HTTPS traffic.
581581
582582
"""
@@ -620,7 +620,7 @@ class UpdateContainerRequest:
620620
http_option: ContainerHttpOption
621621
"""
622622
possible values:
623-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
623+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
624624
- enabled: Serve both HTTP and HTTPS traffic.
625625
626626
"""

scaleway-async/scaleway_async/function/v1beta1/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ async def create_function(
612612
:param description:
613613
:param secret_environment_variables:
614614
:param http_option: possible values:
615-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
615+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
616616
- enabled: Serve both HTTP and HTTPS traffic.
617617
618618
:return: :class:`Function <Function>`
@@ -693,7 +693,7 @@ async def update_function(
693693
:param description:
694694
:param secret_environment_variables:
695695
:param http_option: possible values:
696-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
696+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
697697
- enabled: Serve both HTTP and HTTPS traffic.
698698
699699
:return: :class:`Function <Function>`

scaleway-async/scaleway_async/function/v1beta1/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ class Function:
396396
http_option: FunctionHttpOption
397397
"""
398398
possible values:
399-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
399+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
400400
- enabled: Serve both HTTP and HTTPS traffic.
401401
402402
"""
@@ -892,7 +892,7 @@ class CreateFunctionRequest:
892892
http_option: FunctionHttpOption
893893
"""
894894
possible values:
895-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
895+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
896896
- enabled: Serve both HTTP and HTTPS traffic.
897897
898898
"""
@@ -932,7 +932,7 @@ class UpdateFunctionRequest:
932932
http_option: FunctionHttpOption
933933
"""
934934
possible values:
935-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
935+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
936936
- enabled: Serve both HTTP and HTTPS traffic.
937937
938938
"""

scaleway/scaleway/container/v1beta1/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def create_container(
573573
:param port:
574574
:param secret_environment_variables:
575575
:param http_option: possible values:
576-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
576+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
577577
- enabled: Serve both HTTP and HTTPS traffic.
578578
579579
:return: :class:`Container <Container>`
@@ -660,7 +660,7 @@ def update_container(
660660
:param port:
661661
:param secret_environment_variables:
662662
:param http_option: possible values:
663-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
663+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
664664
- enabled: Serve both HTTP and HTTPS traffic.
665665
666666
:return: :class:`Container <Container>`

scaleway/scaleway/container/v1beta1/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class Container:
219219
http_option: ContainerHttpOption
220220
"""
221221
possible values:
222-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
222+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
223223
- enabled: Serve both HTTP and HTTPS traffic.
224224
225225
"""
@@ -576,7 +576,7 @@ class CreateContainerRequest:
576576
http_option: ContainerHttpOption
577577
"""
578578
possible values:
579-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
579+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
580580
- enabled: Serve both HTTP and HTTPS traffic.
581581
582582
"""
@@ -620,7 +620,7 @@ class UpdateContainerRequest:
620620
http_option: ContainerHttpOption
621621
"""
622622
possible values:
623-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
623+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
624624
- enabled: Serve both HTTP and HTTPS traffic.
625625
626626
"""

scaleway/scaleway/function/v1beta1/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ def create_function(
608608
:param description:
609609
:param secret_environment_variables:
610610
:param http_option: possible values:
611-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
611+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
612612
- enabled: Serve both HTTP and HTTPS traffic.
613613
614614
:return: :class:`Function <Function>`
@@ -689,7 +689,7 @@ def update_function(
689689
:param description:
690690
:param secret_environment_variables:
691691
:param http_option: possible values:
692-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
692+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
693693
- enabled: Serve both HTTP and HTTPS traffic.
694694
695695
:return: :class:`Function <Function>`

scaleway/scaleway/function/v1beta1/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ class Function:
396396
http_option: FunctionHttpOption
397397
"""
398398
possible values:
399-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
399+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
400400
- enabled: Serve both HTTP and HTTPS traffic.
401401
402402
"""
@@ -892,7 +892,7 @@ class CreateFunctionRequest:
892892
http_option: FunctionHttpOption
893893
"""
894894
possible values:
895-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
895+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
896896
- enabled: Serve both HTTP and HTTPS traffic.
897897
898898
"""
@@ -932,7 +932,7 @@ class UpdateFunctionRequest:
932932
http_option: FunctionHttpOption
933933
"""
934934
possible values:
935-
- redirected: Responds to HTTP request with a 302 redirect to ask the clients to use HTTPS.
935+
- redirected: Responds to HTTP request with a 301 redirect to ask the clients to use HTTPS.
936936
- enabled: Serve both HTTP and HTTPS traffic.
937937
938938
"""

0 commit comments

Comments
 (0)