@@ -80,12 +80,12 @@ def create(
8080 self ,
8181 * ,
8282 cname : str ,
83- origin : str ,
84- origin_group : int ,
8583 active : bool | Omit = omit ,
8684 description : str | Omit = omit ,
8785 name : Optional [str ] | Omit = omit ,
8886 options : cdn_resource_create_params .Options | Omit = omit ,
87+ origin : str | Omit = omit ,
88+ origin_group : int | Omit = omit ,
8989 origin_protocol : Literal ["HTTP" , "HTTPS" , "MATCH" ] | Omit = omit ,
9090 primary_resource : Optional [int ] | Omit = omit ,
9191 proxy_ssl_ca : Optional [int ] | Omit = omit ,
@@ -110,14 +110,6 @@ def create(
110110
111111 Delivery domains should be added to your DNS settings.
112112
113- origin: IP address or domain name of the origin and the port, if custom port is used.
114-
115- You can use either the `origin` or `originGroup` parameter in the request.
116-
117- origin_group: Origin group ID with which the CDN resource is associated.
118-
119- You can use either the `origin` or `originGroup` parameter in the request.
120-
121113 active: Enables or disables a CDN resource.
122114
123115 Possible values:
@@ -134,6 +126,16 @@ def create(
134126 In case of `null` value the option is not added to the CDN resource. Option may
135127 inherit its value from the global account settings.
136128
129+ origin: IP address or domain name of the origin and the port, if custom port is used.
130+
131+ Exactly one of `origin` or `originGroup` must be provided during resource
132+ creation.
133+
134+ origin_group: Origin group ID with which the CDN resource is associated.
135+
136+ Exactly one of `origin` or `originGroup` must be provided during resource
137+ creation.
138+
137139 origin_protocol: Protocol used by CDN servers to request content from an origin source.
138140
139141 Possible values:
@@ -204,12 +206,12 @@ def create(
204206 body = maybe_transform (
205207 {
206208 "cname" : cname ,
207- "origin" : origin ,
208- "origin_group" : origin_group ,
209209 "active" : active ,
210210 "description" : description ,
211211 "name" : name ,
212212 "options" : options ,
213+ "origin" : origin ,
214+ "origin_group" : origin_group ,
213215 "origin_protocol" : origin_protocol ,
214216 "primary_resource" : primary_resource ,
215217 "proxy_ssl_ca" : proxy_ssl_ca ,
@@ -273,8 +275,6 @@ def update(
273275
274276 origin_group: Origin group ID with which the CDN resource is associated.
275277
276- You can use either the `origin` or `originGroup` parameter in the request.
277-
278278 origin_protocol: Protocol used by CDN servers to request content from an origin source.
279279
280280 Possible values:
@@ -855,8 +855,6 @@ def replace(
855855 Args:
856856 origin_group: Origin group ID with which the CDN resource is associated.
857857
858- You can use either the `origin` or `originGroup` parameter in the request.
859-
860858 active: Enables or disables a CDN resource.
861859
862860 Possible values:
@@ -990,12 +988,12 @@ async def create(
990988 self ,
991989 * ,
992990 cname : str ,
993- origin : str ,
994- origin_group : int ,
995991 active : bool | Omit = omit ,
996992 description : str | Omit = omit ,
997993 name : Optional [str ] | Omit = omit ,
998994 options : cdn_resource_create_params .Options | Omit = omit ,
995+ origin : str | Omit = omit ,
996+ origin_group : int | Omit = omit ,
999997 origin_protocol : Literal ["HTTP" , "HTTPS" , "MATCH" ] | Omit = omit ,
1000998 primary_resource : Optional [int ] | Omit = omit ,
1001999 proxy_ssl_ca : Optional [int ] | Omit = omit ,
@@ -1020,14 +1018,6 @@ async def create(
10201018
10211019 Delivery domains should be added to your DNS settings.
10221020
1023- origin: IP address or domain name of the origin and the port, if custom port is used.
1024-
1025- You can use either the `origin` or `originGroup` parameter in the request.
1026-
1027- origin_group: Origin group ID with which the CDN resource is associated.
1028-
1029- You can use either the `origin` or `originGroup` parameter in the request.
1030-
10311021 active: Enables or disables a CDN resource.
10321022
10331023 Possible values:
@@ -1044,6 +1034,16 @@ async def create(
10441034 In case of `null` value the option is not added to the CDN resource. Option may
10451035 inherit its value from the global account settings.
10461036
1037+ origin: IP address or domain name of the origin and the port, if custom port is used.
1038+
1039+ Exactly one of `origin` or `originGroup` must be provided during resource
1040+ creation.
1041+
1042+ origin_group: Origin group ID with which the CDN resource is associated.
1043+
1044+ Exactly one of `origin` or `originGroup` must be provided during resource
1045+ creation.
1046+
10471047 origin_protocol: Protocol used by CDN servers to request content from an origin source.
10481048
10491049 Possible values:
@@ -1114,12 +1114,12 @@ async def create(
11141114 body = await async_maybe_transform (
11151115 {
11161116 "cname" : cname ,
1117- "origin" : origin ,
1118- "origin_group" : origin_group ,
11191117 "active" : active ,
11201118 "description" : description ,
11211119 "name" : name ,
11221120 "options" : options ,
1121+ "origin" : origin ,
1122+ "origin_group" : origin_group ,
11231123 "origin_protocol" : origin_protocol ,
11241124 "primary_resource" : primary_resource ,
11251125 "proxy_ssl_ca" : proxy_ssl_ca ,
@@ -1183,8 +1183,6 @@ async def update(
11831183
11841184 origin_group: Origin group ID with which the CDN resource is associated.
11851185
1186- You can use either the `origin` or `originGroup` parameter in the request.
1187-
11881186 origin_protocol: Protocol used by CDN servers to request content from an origin source.
11891187
11901188 Possible values:
@@ -1765,8 +1763,6 @@ async def replace(
17651763 Args:
17661764 origin_group: Origin group ID with which the CDN resource is associated.
17671765
1768- You can use either the `origin` or `originGroup` parameter in the request.
1769-
17701766 active: Enables or disables a CDN resource.
17711767
17721768 Possible values:
0 commit comments