databricks-sdk 0.38.0__py3-none-any.whl → 0.39.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of databricks-sdk might be problematic. Click here for more details.

Files changed (29) hide show
  1. databricks/sdk/__init__.py +21 -0
  2. databricks/sdk/mixins/open_ai_client.py +2 -2
  3. databricks/sdk/service/apps.py +175 -0
  4. databricks/sdk/service/billing.py +247 -0
  5. databricks/sdk/service/catalog.py +1794 -61
  6. databricks/sdk/service/cleanrooms.py +1281 -0
  7. databricks/sdk/service/compute.py +1486 -8
  8. databricks/sdk/service/dashboards.py +326 -1
  9. databricks/sdk/service/files.py +162 -2
  10. databricks/sdk/service/iam.py +351 -0
  11. databricks/sdk/service/jobs.py +1264 -8
  12. databricks/sdk/service/marketplace.py +688 -0
  13. databricks/sdk/service/ml.py +1038 -2
  14. databricks/sdk/service/oauth2.py +175 -0
  15. databricks/sdk/service/pipelines.py +520 -0
  16. databricks/sdk/service/provisioning.py +387 -0
  17. databricks/sdk/service/serving.py +615 -0
  18. databricks/sdk/service/settings.py +1186 -1
  19. databricks/sdk/service/sharing.py +326 -2
  20. databricks/sdk/service/sql.py +1186 -2
  21. databricks/sdk/service/vectorsearch.py +290 -0
  22. databricks/sdk/service/workspace.py +451 -0
  23. databricks/sdk/version.py +1 -1
  24. {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/METADATA +26 -26
  25. {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/RECORD +29 -28
  26. {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/WHEEL +1 -1
  27. {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/LICENSE +0 -0
  28. {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/NOTICE +0 -0
  29. {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/top_level.txt +0 -0
@@ -28,6 +28,12 @@ class AwsCredentials:
28
28
  if self.sts_role: body['sts_role'] = self.sts_role.as_dict()
29
29
  return body
30
30
 
31
+ def as_shallow_dict(self) -> dict:
32
+ """Serializes the AwsCredentials into a shallow dictionary of its immediate attributes."""
33
+ body = {}
34
+ if self.sts_role: body['sts_role'] = self.sts_role
35
+ return body
36
+
31
37
  @classmethod
32
38
  def from_dict(cls, d: Dict[str, any]) -> AwsCredentials:
33
39
  """Deserializes the AwsCredentials from a dictionary."""
@@ -60,6 +66,16 @@ class AwsKeyInfo:
60
66
  body['reuse_key_for_cluster_volumes'] = self.reuse_key_for_cluster_volumes
61
67
  return body
62
68
 
69
+ def as_shallow_dict(self) -> dict:
70
+ """Serializes the AwsKeyInfo into a shallow dictionary of its immediate attributes."""
71
+ body = {}
72
+ if self.key_alias is not None: body['key_alias'] = self.key_alias
73
+ if self.key_arn is not None: body['key_arn'] = self.key_arn
74
+ if self.key_region is not None: body['key_region'] = self.key_region
75
+ if self.reuse_key_for_cluster_volumes is not None:
76
+ body['reuse_key_for_cluster_volumes'] = self.reuse_key_for_cluster_volumes
77
+ return body
78
+
63
79
  @classmethod
64
80
  def from_dict(cls, d: Dict[str, any]) -> AwsKeyInfo:
65
81
  """Deserializes the AwsKeyInfo from a dictionary."""
@@ -84,6 +100,13 @@ class AzureWorkspaceInfo:
84
100
  if self.subscription_id is not None: body['subscription_id'] = self.subscription_id
85
101
  return body
86
102
 
103
+ def as_shallow_dict(self) -> dict:
104
+ """Serializes the AzureWorkspaceInfo into a shallow dictionary of its immediate attributes."""
105
+ body = {}
106
+ if self.resource_group is not None: body['resource_group'] = self.resource_group
107
+ if self.subscription_id is not None: body['subscription_id'] = self.subscription_id
108
+ return body
109
+
87
110
  @classmethod
88
111
  def from_dict(cls, d: Dict[str, any]) -> AzureWorkspaceInfo:
89
112
  """Deserializes the AzureWorkspaceInfo from a dictionary."""
@@ -104,6 +127,12 @@ class CloudResourceContainer:
104
127
  if self.gcp: body['gcp'] = self.gcp.as_dict()
105
128
  return body
106
129
 
130
+ def as_shallow_dict(self) -> dict:
131
+ """Serializes the CloudResourceContainer into a shallow dictionary of its immediate attributes."""
132
+ body = {}
133
+ if self.gcp: body['gcp'] = self.gcp
134
+ return body
135
+
107
136
  @classmethod
108
137
  def from_dict(cls, d: Dict[str, any]) -> CloudResourceContainer:
109
138
  """Deserializes the CloudResourceContainer from a dictionary."""
@@ -133,6 +162,15 @@ class CreateAwsKeyInfo:
133
162
  body['reuse_key_for_cluster_volumes'] = self.reuse_key_for_cluster_volumes
134
163
  return body
135
164
 
165
+ def as_shallow_dict(self) -> dict:
166
+ """Serializes the CreateAwsKeyInfo into a shallow dictionary of its immediate attributes."""
167
+ body = {}
168
+ if self.key_alias is not None: body['key_alias'] = self.key_alias
169
+ if self.key_arn is not None: body['key_arn'] = self.key_arn
170
+ if self.reuse_key_for_cluster_volumes is not None:
171
+ body['reuse_key_for_cluster_volumes'] = self.reuse_key_for_cluster_volumes
172
+ return body
173
+
136
174
  @classmethod
137
175
  def from_dict(cls, d: Dict[str, any]) -> CreateAwsKeyInfo:
138
176
  """Deserializes the CreateAwsKeyInfo from a dictionary."""
@@ -151,6 +189,12 @@ class CreateCredentialAwsCredentials:
151
189
  if self.sts_role: body['sts_role'] = self.sts_role.as_dict()
152
190
  return body
153
191
 
192
+ def as_shallow_dict(self) -> dict:
193
+ """Serializes the CreateCredentialAwsCredentials into a shallow dictionary of its immediate attributes."""
194
+ body = {}
195
+ if self.sts_role: body['sts_role'] = self.sts_role
196
+ return body
197
+
154
198
  @classmethod
155
199
  def from_dict(cls, d: Dict[str, any]) -> CreateCredentialAwsCredentials:
156
200
  """Deserializes the CreateCredentialAwsCredentials from a dictionary."""
@@ -171,6 +215,13 @@ class CreateCredentialRequest:
171
215
  if self.credentials_name is not None: body['credentials_name'] = self.credentials_name
172
216
  return body
173
217
 
218
+ def as_shallow_dict(self) -> dict:
219
+ """Serializes the CreateCredentialRequest into a shallow dictionary of its immediate attributes."""
220
+ body = {}
221
+ if self.aws_credentials: body['aws_credentials'] = self.aws_credentials
222
+ if self.credentials_name is not None: body['credentials_name'] = self.credentials_name
223
+ return body
224
+
174
225
  @classmethod
175
226
  def from_dict(cls, d: Dict[str, any]) -> CreateCredentialRequest:
176
227
  """Deserializes the CreateCredentialRequest from a dictionary."""
@@ -189,6 +240,12 @@ class CreateCredentialStsRole:
189
240
  if self.role_arn is not None: body['role_arn'] = self.role_arn
190
241
  return body
191
242
 
243
+ def as_shallow_dict(self) -> dict:
244
+ """Serializes the CreateCredentialStsRole into a shallow dictionary of its immediate attributes."""
245
+ body = {}
246
+ if self.role_arn is not None: body['role_arn'] = self.role_arn
247
+ return body
248
+
192
249
  @classmethod
193
250
  def from_dict(cls, d: Dict[str, any]) -> CreateCredentialStsRole:
194
251
  """Deserializes the CreateCredentialStsRole from a dictionary."""
@@ -212,6 +269,14 @@ class CreateCustomerManagedKeyRequest:
212
269
  if self.use_cases: body['use_cases'] = [v.value for v in self.use_cases]
213
270
  return body
214
271
 
272
+ def as_shallow_dict(self) -> dict:
273
+ """Serializes the CreateCustomerManagedKeyRequest into a shallow dictionary of its immediate attributes."""
274
+ body = {}
275
+ if self.aws_key_info: body['aws_key_info'] = self.aws_key_info
276
+ if self.gcp_key_info: body['gcp_key_info'] = self.gcp_key_info
277
+ if self.use_cases: body['use_cases'] = self.use_cases
278
+ return body
279
+
215
280
  @classmethod
216
281
  def from_dict(cls, d: Dict[str, any]) -> CreateCustomerManagedKeyRequest:
217
282
  """Deserializes the CreateCustomerManagedKeyRequest from a dictionary."""
@@ -231,6 +296,12 @@ class CreateGcpKeyInfo:
231
296
  if self.kms_key_id is not None: body['kms_key_id'] = self.kms_key_id
232
297
  return body
233
298
 
299
+ def as_shallow_dict(self) -> dict:
300
+ """Serializes the CreateGcpKeyInfo into a shallow dictionary of its immediate attributes."""
301
+ body = {}
302
+ if self.kms_key_id is not None: body['kms_key_id'] = self.kms_key_id
303
+ return body
304
+
234
305
  @classmethod
235
306
  def from_dict(cls, d: Dict[str, any]) -> CreateGcpKeyInfo:
236
307
  """Deserializes the CreateGcpKeyInfo from a dictionary."""
@@ -275,6 +346,17 @@ class CreateNetworkRequest:
275
346
  if self.vpc_id is not None: body['vpc_id'] = self.vpc_id
276
347
  return body
277
348
 
349
+ def as_shallow_dict(self) -> dict:
350
+ """Serializes the CreateNetworkRequest into a shallow dictionary of its immediate attributes."""
351
+ body = {}
352
+ if self.gcp_network_info: body['gcp_network_info'] = self.gcp_network_info
353
+ if self.network_name is not None: body['network_name'] = self.network_name
354
+ if self.security_group_ids: body['security_group_ids'] = self.security_group_ids
355
+ if self.subnet_ids: body['subnet_ids'] = self.subnet_ids
356
+ if self.vpc_endpoints: body['vpc_endpoints'] = self.vpc_endpoints
357
+ if self.vpc_id is not None: body['vpc_id'] = self.vpc_id
358
+ return body
359
+
278
360
  @classmethod
279
361
  def from_dict(cls, d: Dict[str, any]) -> CreateNetworkRequest:
280
362
  """Deserializes the CreateNetworkRequest from a dictionary."""
@@ -302,6 +384,14 @@ class CreateStorageConfigurationRequest:
302
384
  body['storage_configuration_name'] = self.storage_configuration_name
303
385
  return body
304
386
 
387
+ def as_shallow_dict(self) -> dict:
388
+ """Serializes the CreateStorageConfigurationRequest into a shallow dictionary of its immediate attributes."""
389
+ body = {}
390
+ if self.root_bucket_info: body['root_bucket_info'] = self.root_bucket_info
391
+ if self.storage_configuration_name is not None:
392
+ body['storage_configuration_name'] = self.storage_configuration_name
393
+ return body
394
+
305
395
  @classmethod
306
396
  def from_dict(cls, d: Dict[str, any]) -> CreateStorageConfigurationRequest:
307
397
  """Deserializes the CreateStorageConfigurationRequest from a dictionary."""
@@ -332,6 +422,15 @@ class CreateVpcEndpointRequest:
332
422
  if self.vpc_endpoint_name is not None: body['vpc_endpoint_name'] = self.vpc_endpoint_name
333
423
  return body
334
424
 
425
+ def as_shallow_dict(self) -> dict:
426
+ """Serializes the CreateVpcEndpointRequest into a shallow dictionary of its immediate attributes."""
427
+ body = {}
428
+ if self.aws_vpc_endpoint_id is not None: body['aws_vpc_endpoint_id'] = self.aws_vpc_endpoint_id
429
+ if self.gcp_vpc_endpoint_info: body['gcp_vpc_endpoint_info'] = self.gcp_vpc_endpoint_info
430
+ if self.region is not None: body['region'] = self.region
431
+ if self.vpc_endpoint_name is not None: body['vpc_endpoint_name'] = self.vpc_endpoint_name
432
+ return body
433
+
335
434
  @classmethod
336
435
  def from_dict(cls, d: Dict[str, any]) -> CreateVpcEndpointRequest:
337
436
  """Deserializes the CreateVpcEndpointRequest from a dictionary."""
@@ -479,6 +578,34 @@ class CreateWorkspaceRequest:
479
578
  if self.workspace_name is not None: body['workspace_name'] = self.workspace_name
480
579
  return body
481
580
 
581
+ def as_shallow_dict(self) -> dict:
582
+ """Serializes the CreateWorkspaceRequest into a shallow dictionary of its immediate attributes."""
583
+ body = {}
584
+ if self.aws_region is not None: body['aws_region'] = self.aws_region
585
+ if self.cloud is not None: body['cloud'] = self.cloud
586
+ if self.cloud_resource_container: body['cloud_resource_container'] = self.cloud_resource_container
587
+ if self.credentials_id is not None: body['credentials_id'] = self.credentials_id
588
+ if self.custom_tags: body['custom_tags'] = self.custom_tags
589
+ if self.deployment_name is not None: body['deployment_name'] = self.deployment_name
590
+ if self.gcp_managed_network_config:
591
+ body['gcp_managed_network_config'] = self.gcp_managed_network_config
592
+ if self.gke_config: body['gke_config'] = self.gke_config
593
+ if self.is_no_public_ip_enabled is not None:
594
+ body['is_no_public_ip_enabled'] = self.is_no_public_ip_enabled
595
+ if self.location is not None: body['location'] = self.location
596
+ if self.managed_services_customer_managed_key_id is not None:
597
+ body['managed_services_customer_managed_key_id'] = self.managed_services_customer_managed_key_id
598
+ if self.network_id is not None: body['network_id'] = self.network_id
599
+ if self.pricing_tier is not None: body['pricing_tier'] = self.pricing_tier
600
+ if self.private_access_settings_id is not None:
601
+ body['private_access_settings_id'] = self.private_access_settings_id
602
+ if self.storage_configuration_id is not None:
603
+ body['storage_configuration_id'] = self.storage_configuration_id
604
+ if self.storage_customer_managed_key_id is not None:
605
+ body['storage_customer_managed_key_id'] = self.storage_customer_managed_key_id
606
+ if self.workspace_name is not None: body['workspace_name'] = self.workspace_name
607
+ return body
608
+
482
609
  @classmethod
483
610
  def from_dict(cls, d: Dict[str, any]) -> CreateWorkspaceRequest:
484
611
  """Deserializes the CreateWorkspaceRequest from a dictionary."""
@@ -529,6 +656,16 @@ class Credential:
529
656
  if self.credentials_name is not None: body['credentials_name'] = self.credentials_name
530
657
  return body
531
658
 
659
+ def as_shallow_dict(self) -> dict:
660
+ """Serializes the Credential into a shallow dictionary of its immediate attributes."""
661
+ body = {}
662
+ if self.account_id is not None: body['account_id'] = self.account_id
663
+ if self.aws_credentials: body['aws_credentials'] = self.aws_credentials
664
+ if self.creation_time is not None: body['creation_time'] = self.creation_time
665
+ if self.credentials_id is not None: body['credentials_id'] = self.credentials_id
666
+ if self.credentials_name is not None: body['credentials_name'] = self.credentials_name
667
+ return body
668
+
532
669
  @classmethod
533
670
  def from_dict(cls, d: Dict[str, any]) -> Credential:
534
671
  """Deserializes the Credential from a dictionary."""
@@ -556,6 +693,12 @@ class CustomerFacingGcpCloudResourceContainer:
556
693
  if self.project_id is not None: body['project_id'] = self.project_id
557
694
  return body
558
695
 
696
+ def as_shallow_dict(self) -> dict:
697
+ """Serializes the CustomerFacingGcpCloudResourceContainer into a shallow dictionary of its immediate attributes."""
698
+ body = {}
699
+ if self.project_id is not None: body['project_id'] = self.project_id
700
+ return body
701
+
559
702
  @classmethod
560
703
  def from_dict(cls, d: Dict[str, any]) -> CustomerFacingGcpCloudResourceContainer:
561
704
  """Deserializes the CustomerFacingGcpCloudResourceContainer from a dictionary."""
@@ -592,6 +735,18 @@ class CustomerManagedKey:
592
735
  if self.use_cases: body['use_cases'] = [v.value for v in self.use_cases]
593
736
  return body
594
737
 
738
+ def as_shallow_dict(self) -> dict:
739
+ """Serializes the CustomerManagedKey into a shallow dictionary of its immediate attributes."""
740
+ body = {}
741
+ if self.account_id is not None: body['account_id'] = self.account_id
742
+ if self.aws_key_info: body['aws_key_info'] = self.aws_key_info
743
+ if self.creation_time is not None: body['creation_time'] = self.creation_time
744
+ if self.customer_managed_key_id is not None:
745
+ body['customer_managed_key_id'] = self.customer_managed_key_id
746
+ if self.gcp_key_info: body['gcp_key_info'] = self.gcp_key_info
747
+ if self.use_cases: body['use_cases'] = self.use_cases
748
+ return body
749
+
595
750
  @classmethod
596
751
  def from_dict(cls, d: Dict[str, any]) -> CustomerManagedKey:
597
752
  """Deserializes the CustomerManagedKey from a dictionary."""
@@ -611,6 +766,11 @@ class DeleteResponse:
611
766
  body = {}
612
767
  return body
613
768
 
769
+ def as_shallow_dict(self) -> dict:
770
+ """Serializes the DeleteResponse into a shallow dictionary of its immediate attributes."""
771
+ body = {}
772
+ return body
773
+
614
774
  @classmethod
615
775
  def from_dict(cls, d: Dict[str, any]) -> DeleteResponse:
616
776
  """Deserializes the DeleteResponse from a dictionary."""
@@ -659,6 +819,16 @@ class ExternalCustomerInfo:
659
819
  if self.customer_name is not None: body['customer_name'] = self.customer_name
660
820
  return body
661
821
 
822
+ def as_shallow_dict(self) -> dict:
823
+ """Serializes the ExternalCustomerInfo into a shallow dictionary of its immediate attributes."""
824
+ body = {}
825
+ if self.authoritative_user_email is not None:
826
+ body['authoritative_user_email'] = self.authoritative_user_email
827
+ if self.authoritative_user_full_name is not None:
828
+ body['authoritative_user_full_name'] = self.authoritative_user_full_name
829
+ if self.customer_name is not None: body['customer_name'] = self.customer_name
830
+ return body
831
+
662
832
  @classmethod
663
833
  def from_dict(cls, d: Dict[str, any]) -> ExternalCustomerInfo:
664
834
  """Deserializes the ExternalCustomerInfo from a dictionary."""
@@ -678,6 +848,12 @@ class GcpKeyInfo:
678
848
  if self.kms_key_id is not None: body['kms_key_id'] = self.kms_key_id
679
849
  return body
680
850
 
851
+ def as_shallow_dict(self) -> dict:
852
+ """Serializes the GcpKeyInfo into a shallow dictionary of its immediate attributes."""
853
+ body = {}
854
+ if self.kms_key_id is not None: body['kms_key_id'] = self.kms_key_id
855
+ return body
856
+
681
857
  @classmethod
682
858
  def from_dict(cls, d: Dict[str, any]) -> GcpKeyInfo:
683
859
  """Deserializes the GcpKeyInfo from a dictionary."""
@@ -727,6 +903,16 @@ class GcpManagedNetworkConfig:
727
903
  if self.subnet_cidr is not None: body['subnet_cidr'] = self.subnet_cidr
728
904
  return body
729
905
 
906
+ def as_shallow_dict(self) -> dict:
907
+ """Serializes the GcpManagedNetworkConfig into a shallow dictionary of its immediate attributes."""
908
+ body = {}
909
+ if self.gke_cluster_pod_ip_range is not None:
910
+ body['gke_cluster_pod_ip_range'] = self.gke_cluster_pod_ip_range
911
+ if self.gke_cluster_service_ip_range is not None:
912
+ body['gke_cluster_service_ip_range'] = self.gke_cluster_service_ip_range
913
+ if self.subnet_cidr is not None: body['subnet_cidr'] = self.subnet_cidr
914
+ return body
915
+
730
916
  @classmethod
731
917
  def from_dict(cls, d: Dict[str, any]) -> GcpManagedNetworkConfig:
732
918
  """Deserializes the GcpManagedNetworkConfig from a dictionary."""
@@ -772,6 +958,17 @@ class GcpNetworkInfo:
772
958
  if self.vpc_id is not None: body['vpc_id'] = self.vpc_id
773
959
  return body
774
960
 
961
+ def as_shallow_dict(self) -> dict:
962
+ """Serializes the GcpNetworkInfo into a shallow dictionary of its immediate attributes."""
963
+ body = {}
964
+ if self.network_project_id is not None: body['network_project_id'] = self.network_project_id
965
+ if self.pod_ip_range_name is not None: body['pod_ip_range_name'] = self.pod_ip_range_name
966
+ if self.service_ip_range_name is not None: body['service_ip_range_name'] = self.service_ip_range_name
967
+ if self.subnet_id is not None: body['subnet_id'] = self.subnet_id
968
+ if self.subnet_region is not None: body['subnet_region'] = self.subnet_region
969
+ if self.vpc_id is not None: body['vpc_id'] = self.vpc_id
970
+ return body
971
+
775
972
  @classmethod
776
973
  def from_dict(cls, d: Dict[str, any]) -> GcpNetworkInfo:
777
974
  """Deserializes the GcpNetworkInfo from a dictionary."""
@@ -812,6 +1009,16 @@ class GcpVpcEndpointInfo:
812
1009
  if self.service_attachment_id is not None: body['service_attachment_id'] = self.service_attachment_id
813
1010
  return body
814
1011
 
1012
+ def as_shallow_dict(self) -> dict:
1013
+ """Serializes the GcpVpcEndpointInfo into a shallow dictionary of its immediate attributes."""
1014
+ body = {}
1015
+ if self.endpoint_region is not None: body['endpoint_region'] = self.endpoint_region
1016
+ if self.project_id is not None: body['project_id'] = self.project_id
1017
+ if self.psc_connection_id is not None: body['psc_connection_id'] = self.psc_connection_id
1018
+ if self.psc_endpoint_name is not None: body['psc_endpoint_name'] = self.psc_endpoint_name
1019
+ if self.service_attachment_id is not None: body['service_attachment_id'] = self.service_attachment_id
1020
+ return body
1021
+
815
1022
  @classmethod
816
1023
  def from_dict(cls, d: Dict[str, any]) -> GcpVpcEndpointInfo:
817
1024
  """Deserializes the GcpVpcEndpointInfo from a dictionary."""
@@ -848,6 +1055,13 @@ class GkeConfig:
848
1055
  if self.master_ip_range is not None: body['master_ip_range'] = self.master_ip_range
849
1056
  return body
850
1057
 
1058
+ def as_shallow_dict(self) -> dict:
1059
+ """Serializes the GkeConfig into a shallow dictionary of its immediate attributes."""
1060
+ body = {}
1061
+ if self.connectivity_type is not None: body['connectivity_type'] = self.connectivity_type
1062
+ if self.master_ip_range is not None: body['master_ip_range'] = self.master_ip_range
1063
+ return body
1064
+
851
1065
  @classmethod
852
1066
  def from_dict(cls, d: Dict[str, any]) -> GkeConfig:
853
1067
  """Deserializes the GkeConfig from a dictionary."""
@@ -940,6 +1154,24 @@ class Network:
940
1154
  if self.workspace_id is not None: body['workspace_id'] = self.workspace_id
941
1155
  return body
942
1156
 
1157
+ def as_shallow_dict(self) -> dict:
1158
+ """Serializes the Network into a shallow dictionary of its immediate attributes."""
1159
+ body = {}
1160
+ if self.account_id is not None: body['account_id'] = self.account_id
1161
+ if self.creation_time is not None: body['creation_time'] = self.creation_time
1162
+ if self.error_messages: body['error_messages'] = self.error_messages
1163
+ if self.gcp_network_info: body['gcp_network_info'] = self.gcp_network_info
1164
+ if self.network_id is not None: body['network_id'] = self.network_id
1165
+ if self.network_name is not None: body['network_name'] = self.network_name
1166
+ if self.security_group_ids: body['security_group_ids'] = self.security_group_ids
1167
+ if self.subnet_ids: body['subnet_ids'] = self.subnet_ids
1168
+ if self.vpc_endpoints: body['vpc_endpoints'] = self.vpc_endpoints
1169
+ if self.vpc_id is not None: body['vpc_id'] = self.vpc_id
1170
+ if self.vpc_status is not None: body['vpc_status'] = self.vpc_status
1171
+ if self.warning_messages: body['warning_messages'] = self.warning_messages
1172
+ if self.workspace_id is not None: body['workspace_id'] = self.workspace_id
1173
+ return body
1174
+
943
1175
  @classmethod
944
1176
  def from_dict(cls, d: Dict[str, any]) -> Network:
945
1177
  """Deserializes the Network from a dictionary."""
@@ -974,6 +1206,13 @@ class NetworkHealth:
974
1206
  if self.error_type is not None: body['error_type'] = self.error_type.value
975
1207
  return body
976
1208
 
1209
+ def as_shallow_dict(self) -> dict:
1210
+ """Serializes the NetworkHealth into a shallow dictionary of its immediate attributes."""
1211
+ body = {}
1212
+ if self.error_message is not None: body['error_message'] = self.error_message
1213
+ if self.error_type is not None: body['error_type'] = self.error_type
1214
+ return body
1215
+
977
1216
  @classmethod
978
1217
  def from_dict(cls, d: Dict[str, any]) -> NetworkHealth:
979
1218
  """Deserializes the NetworkHealth from a dictionary."""
@@ -1001,6 +1240,13 @@ class NetworkVpcEndpoints:
1001
1240
  if self.rest_api: body['rest_api'] = [v for v in self.rest_api]
1002
1241
  return body
1003
1242
 
1243
+ def as_shallow_dict(self) -> dict:
1244
+ """Serializes the NetworkVpcEndpoints into a shallow dictionary of its immediate attributes."""
1245
+ body = {}
1246
+ if self.dataplane_relay: body['dataplane_relay'] = self.dataplane_relay
1247
+ if self.rest_api: body['rest_api'] = self.rest_api
1248
+ return body
1249
+
1004
1250
  @classmethod
1005
1251
  def from_dict(cls, d: Dict[str, any]) -> NetworkVpcEndpoints:
1006
1252
  """Deserializes the NetworkVpcEndpoints from a dictionary."""
@@ -1022,6 +1268,13 @@ class NetworkWarning:
1022
1268
  if self.warning_type is not None: body['warning_type'] = self.warning_type.value
1023
1269
  return body
1024
1270
 
1271
+ def as_shallow_dict(self) -> dict:
1272
+ """Serializes the NetworkWarning into a shallow dictionary of its immediate attributes."""
1273
+ body = {}
1274
+ if self.warning_message is not None: body['warning_message'] = self.warning_message
1275
+ if self.warning_type is not None: body['warning_type'] = self.warning_type
1276
+ return body
1277
+
1025
1278
  @classmethod
1026
1279
  def from_dict(cls, d: Dict[str, any]) -> NetworkWarning:
1027
1280
  """Deserializes the NetworkWarning from a dictionary."""
@@ -1099,6 +1352,20 @@ class PrivateAccessSettings:
1099
1352
  if self.region is not None: body['region'] = self.region
1100
1353
  return body
1101
1354
 
1355
+ def as_shallow_dict(self) -> dict:
1356
+ """Serializes the PrivateAccessSettings into a shallow dictionary of its immediate attributes."""
1357
+ body = {}
1358
+ if self.account_id is not None: body['account_id'] = self.account_id
1359
+ if self.allowed_vpc_endpoint_ids: body['allowed_vpc_endpoint_ids'] = self.allowed_vpc_endpoint_ids
1360
+ if self.private_access_level is not None: body['private_access_level'] = self.private_access_level
1361
+ if self.private_access_settings_id is not None:
1362
+ body['private_access_settings_id'] = self.private_access_settings_id
1363
+ if self.private_access_settings_name is not None:
1364
+ body['private_access_settings_name'] = self.private_access_settings_name
1365
+ if self.public_access_enabled is not None: body['public_access_enabled'] = self.public_access_enabled
1366
+ if self.region is not None: body['region'] = self.region
1367
+ return body
1368
+
1102
1369
  @classmethod
1103
1370
  def from_dict(cls, d: Dict[str, any]) -> PrivateAccessSettings:
1104
1371
  """Deserializes the PrivateAccessSettings from a dictionary."""
@@ -1119,6 +1386,11 @@ class ReplaceResponse:
1119
1386
  body = {}
1120
1387
  return body
1121
1388
 
1389
+ def as_shallow_dict(self) -> dict:
1390
+ """Serializes the ReplaceResponse into a shallow dictionary of its immediate attributes."""
1391
+ body = {}
1392
+ return body
1393
+
1122
1394
  @classmethod
1123
1395
  def from_dict(cls, d: Dict[str, any]) -> ReplaceResponse:
1124
1396
  """Deserializes the ReplaceResponse from a dictionary."""
@@ -1138,6 +1410,12 @@ class RootBucketInfo:
1138
1410
  if self.bucket_name is not None: body['bucket_name'] = self.bucket_name
1139
1411
  return body
1140
1412
 
1413
+ def as_shallow_dict(self) -> dict:
1414
+ """Serializes the RootBucketInfo into a shallow dictionary of its immediate attributes."""
1415
+ body = {}
1416
+ if self.bucket_name is not None: body['bucket_name'] = self.bucket_name
1417
+ return body
1418
+
1141
1419
  @classmethod
1142
1420
  def from_dict(cls, d: Dict[str, any]) -> RootBucketInfo:
1143
1421
  """Deserializes the RootBucketInfo from a dictionary."""
@@ -1173,6 +1451,18 @@ class StorageConfiguration:
1173
1451
  body['storage_configuration_name'] = self.storage_configuration_name
1174
1452
  return body
1175
1453
 
1454
+ def as_shallow_dict(self) -> dict:
1455
+ """Serializes the StorageConfiguration into a shallow dictionary of its immediate attributes."""
1456
+ body = {}
1457
+ if self.account_id is not None: body['account_id'] = self.account_id
1458
+ if self.creation_time is not None: body['creation_time'] = self.creation_time
1459
+ if self.root_bucket_info: body['root_bucket_info'] = self.root_bucket_info
1460
+ if self.storage_configuration_id is not None:
1461
+ body['storage_configuration_id'] = self.storage_configuration_id
1462
+ if self.storage_configuration_name is not None:
1463
+ body['storage_configuration_name'] = self.storage_configuration_name
1464
+ return body
1465
+
1176
1466
  @classmethod
1177
1467
  def from_dict(cls, d: Dict[str, any]) -> StorageConfiguration:
1178
1468
  """Deserializes the StorageConfiguration from a dictionary."""
@@ -1199,6 +1489,13 @@ class StsRole:
1199
1489
  if self.role_arn is not None: body['role_arn'] = self.role_arn
1200
1490
  return body
1201
1491
 
1492
+ def as_shallow_dict(self) -> dict:
1493
+ """Serializes the StsRole into a shallow dictionary of its immediate attributes."""
1494
+ body = {}
1495
+ if self.external_id is not None: body['external_id'] = self.external_id
1496
+ if self.role_arn is not None: body['role_arn'] = self.role_arn
1497
+ return body
1498
+
1202
1499
  @classmethod
1203
1500
  def from_dict(cls, d: Dict[str, any]) -> StsRole:
1204
1501
  """Deserializes the StsRole from a dictionary."""
@@ -1213,6 +1510,11 @@ class UpdateResponse:
1213
1510
  body = {}
1214
1511
  return body
1215
1512
 
1513
+ def as_shallow_dict(self) -> dict:
1514
+ """Serializes the UpdateResponse into a shallow dictionary of its immediate attributes."""
1515
+ body = {}
1516
+ return body
1517
+
1216
1518
  @classmethod
1217
1519
  def from_dict(cls, d: Dict[str, any]) -> UpdateResponse:
1218
1520
  """Deserializes the UpdateResponse from a dictionary."""
@@ -1280,6 +1582,26 @@ class UpdateWorkspaceRequest:
1280
1582
  if self.workspace_id is not None: body['workspace_id'] = self.workspace_id
1281
1583
  return body
1282
1584
 
1585
+ def as_shallow_dict(self) -> dict:
1586
+ """Serializes the UpdateWorkspaceRequest into a shallow dictionary of its immediate attributes."""
1587
+ body = {}
1588
+ if self.aws_region is not None: body['aws_region'] = self.aws_region
1589
+ if self.credentials_id is not None: body['credentials_id'] = self.credentials_id
1590
+ if self.custom_tags: body['custom_tags'] = self.custom_tags
1591
+ if self.managed_services_customer_managed_key_id is not None:
1592
+ body['managed_services_customer_managed_key_id'] = self.managed_services_customer_managed_key_id
1593
+ if self.network_connectivity_config_id is not None:
1594
+ body['network_connectivity_config_id'] = self.network_connectivity_config_id
1595
+ if self.network_id is not None: body['network_id'] = self.network_id
1596
+ if self.private_access_settings_id is not None:
1597
+ body['private_access_settings_id'] = self.private_access_settings_id
1598
+ if self.storage_configuration_id is not None:
1599
+ body['storage_configuration_id'] = self.storage_configuration_id
1600
+ if self.storage_customer_managed_key_id is not None:
1601
+ body['storage_customer_managed_key_id'] = self.storage_customer_managed_key_id
1602
+ if self.workspace_id is not None: body['workspace_id'] = self.workspace_id
1603
+ return body
1604
+
1283
1605
  @classmethod
1284
1606
  def from_dict(cls, d: Dict[str, any]) -> UpdateWorkspaceRequest:
1285
1607
  """Deserializes the UpdateWorkspaceRequest from a dictionary."""
@@ -1349,6 +1671,19 @@ class UpsertPrivateAccessSettingsRequest:
1349
1671
  if self.region is not None: body['region'] = self.region
1350
1672
  return body
1351
1673
 
1674
+ def as_shallow_dict(self) -> dict:
1675
+ """Serializes the UpsertPrivateAccessSettingsRequest into a shallow dictionary of its immediate attributes."""
1676
+ body = {}
1677
+ if self.allowed_vpc_endpoint_ids: body['allowed_vpc_endpoint_ids'] = self.allowed_vpc_endpoint_ids
1678
+ if self.private_access_level is not None: body['private_access_level'] = self.private_access_level
1679
+ if self.private_access_settings_id is not None:
1680
+ body['private_access_settings_id'] = self.private_access_settings_id
1681
+ if self.private_access_settings_name is not None:
1682
+ body['private_access_settings_name'] = self.private_access_settings_name
1683
+ if self.public_access_enabled is not None: body['public_access_enabled'] = self.public_access_enabled
1684
+ if self.region is not None: body['region'] = self.region
1685
+ return body
1686
+
1352
1687
  @classmethod
1353
1688
  def from_dict(cls, d: Dict[str, any]) -> UpsertPrivateAccessSettingsRequest:
1354
1689
  """Deserializes the UpsertPrivateAccessSettingsRequest from a dictionary."""
@@ -1420,6 +1755,22 @@ class VpcEndpoint:
1420
1755
  if self.vpc_endpoint_name is not None: body['vpc_endpoint_name'] = self.vpc_endpoint_name
1421
1756
  return body
1422
1757
 
1758
+ def as_shallow_dict(self) -> dict:
1759
+ """Serializes the VpcEndpoint into a shallow dictionary of its immediate attributes."""
1760
+ body = {}
1761
+ if self.account_id is not None: body['account_id'] = self.account_id
1762
+ if self.aws_account_id is not None: body['aws_account_id'] = self.aws_account_id
1763
+ if self.aws_endpoint_service_id is not None:
1764
+ body['aws_endpoint_service_id'] = self.aws_endpoint_service_id
1765
+ if self.aws_vpc_endpoint_id is not None: body['aws_vpc_endpoint_id'] = self.aws_vpc_endpoint_id
1766
+ if self.gcp_vpc_endpoint_info: body['gcp_vpc_endpoint_info'] = self.gcp_vpc_endpoint_info
1767
+ if self.region is not None: body['region'] = self.region
1768
+ if self.state is not None: body['state'] = self.state
1769
+ if self.use_case is not None: body['use_case'] = self.use_case
1770
+ if self.vpc_endpoint_id is not None: body['vpc_endpoint_id'] = self.vpc_endpoint_id
1771
+ if self.vpc_endpoint_name is not None: body['vpc_endpoint_name'] = self.vpc_endpoint_name
1772
+ return body
1773
+
1423
1774
  @classmethod
1424
1775
  def from_dict(cls, d: Dict[str, any]) -> VpcEndpoint:
1425
1776
  """Deserializes the VpcEndpoint from a dictionary."""
@@ -1597,6 +1948,42 @@ class Workspace:
1597
1948
  body['workspace_status_message'] = self.workspace_status_message
1598
1949
  return body
1599
1950
 
1951
+ def as_shallow_dict(self) -> dict:
1952
+ """Serializes the Workspace into a shallow dictionary of its immediate attributes."""
1953
+ body = {}
1954
+ if self.account_id is not None: body['account_id'] = self.account_id
1955
+ if self.aws_region is not None: body['aws_region'] = self.aws_region
1956
+ if self.azure_workspace_info: body['azure_workspace_info'] = self.azure_workspace_info
1957
+ if self.cloud is not None: body['cloud'] = self.cloud
1958
+ if self.cloud_resource_container: body['cloud_resource_container'] = self.cloud_resource_container
1959
+ if self.creation_time is not None: body['creation_time'] = self.creation_time
1960
+ if self.credentials_id is not None: body['credentials_id'] = self.credentials_id
1961
+ if self.custom_tags: body['custom_tags'] = self.custom_tags
1962
+ if self.deployment_name is not None: body['deployment_name'] = self.deployment_name
1963
+ if self.external_customer_info: body['external_customer_info'] = self.external_customer_info
1964
+ if self.gcp_managed_network_config:
1965
+ body['gcp_managed_network_config'] = self.gcp_managed_network_config
1966
+ if self.gke_config: body['gke_config'] = self.gke_config
1967
+ if self.is_no_public_ip_enabled is not None:
1968
+ body['is_no_public_ip_enabled'] = self.is_no_public_ip_enabled
1969
+ if self.location is not None: body['location'] = self.location
1970
+ if self.managed_services_customer_managed_key_id is not None:
1971
+ body['managed_services_customer_managed_key_id'] = self.managed_services_customer_managed_key_id
1972
+ if self.network_id is not None: body['network_id'] = self.network_id
1973
+ if self.pricing_tier is not None: body['pricing_tier'] = self.pricing_tier
1974
+ if self.private_access_settings_id is not None:
1975
+ body['private_access_settings_id'] = self.private_access_settings_id
1976
+ if self.storage_configuration_id is not None:
1977
+ body['storage_configuration_id'] = self.storage_configuration_id
1978
+ if self.storage_customer_managed_key_id is not None:
1979
+ body['storage_customer_managed_key_id'] = self.storage_customer_managed_key_id
1980
+ if self.workspace_id is not None: body['workspace_id'] = self.workspace_id
1981
+ if self.workspace_name is not None: body['workspace_name'] = self.workspace_name
1982
+ if self.workspace_status is not None: body['workspace_status'] = self.workspace_status
1983
+ if self.workspace_status_message is not None:
1984
+ body['workspace_status_message'] = self.workspace_status_message
1985
+ return body
1986
+
1600
1987
  @classmethod
1601
1988
  def from_dict(cls, d: Dict[str, any]) -> Workspace:
1602
1989
  """Deserializes the Workspace from a dictionary."""