lightning-sdk 0.2.9__py3-none-any.whl → 0.2.11__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.
Files changed (50) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/deployment_api.py +3 -0
  3. lightning_sdk/api/lit_container_api.py +19 -2
  4. lightning_sdk/api/teamspace_api.py +47 -18
  5. lightning_sdk/api/utils.py +1 -1
  6. lightning_sdk/cli/entrypoint.py +2 -2
  7. lightning_sdk/cli/serve.py +143 -16
  8. lightning_sdk/cli/upload.py +4 -1
  9. lightning_sdk/deployment/deployment.py +9 -3
  10. lightning_sdk/lightning_cloud/openapi/__init__.py +5 -0
  11. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +98 -1
  12. lightning_sdk/lightning_cloud/openapi/models/__init__.py +5 -0
  13. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityreservations_body.py +55 -3
  14. lightning_sdk/lightning_cloud/openapi/models/create.py +53 -1
  15. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +55 -3
  16. lightning_sdk/lightning_cloud/openapi/models/update.py +27 -1
  17. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +53 -1
  18. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics_stats.py +357 -0
  19. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +29 -3
  20. lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +227 -0
  21. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  22. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +55 -3
  23. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +53 -1
  24. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  25. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +29 -3
  26. lightning_sdk/lightning_cloud/openapi/models/v1_create_cluster_capacity_reservation_response.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_gcp_direct_vpc.py +149 -0
  29. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_cold_start_metrics_stats_response.py +123 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +53 -1
  31. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +17 -17
  32. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +55 -3
  33. lightning_sdk/lightning_cloud/openapi/models/v1_project_cluster_binding.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +253 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  36. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +50 -24
  37. lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +27 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_weka_data_connection.py +29 -55
  39. lightning_sdk/lightning_cloud/openapi/models/validate.py +27 -1
  40. lightning_sdk/lit_container.py +12 -2
  41. lightning_sdk/models.py +38 -9
  42. lightning_sdk/serve.py +6 -0
  43. lightning_sdk/teamspace.py +16 -2
  44. lightning_sdk/utils/resolve.py +11 -4
  45. {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.11.dist-info}/METADATA +1 -1
  46. {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.11.dist-info}/RECORD +50 -45
  47. {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.11.dist-info}/LICENSE +0 -0
  48. {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.11.dist-info}/WHEEL +0 -0
  49. {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.11.dist-info}/entry_points.txt +0 -0
  50. {lightning_sdk-0.2.9.dist-info → lightning_sdk-0.2.11.dist-info}/top_level.txt +0 -0
@@ -42,24 +42,29 @@ class V1CreateClusterCapacityReservationResponse(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'cloud_provider_capacity_reservation_id': 'str',
45
+ 'full_cloud_provider_reservation_string': 'str',
45
46
  'id': 'str',
46
47
  'match_pattern': 'str'
47
48
  }
48
49
 
49
50
  attribute_map = {
50
51
  'cloud_provider_capacity_reservation_id': 'cloudProviderCapacityReservationId',
52
+ 'full_cloud_provider_reservation_string': 'fullCloudProviderReservationString',
51
53
  'id': 'id',
52
54
  'match_pattern': 'matchPattern'
53
55
  }
54
56
 
55
- def __init__(self, cloud_provider_capacity_reservation_id: 'str' =None, id: 'str' =None, match_pattern: 'str' =None): # noqa: E501
57
+ def __init__(self, cloud_provider_capacity_reservation_id: 'str' =None, full_cloud_provider_reservation_string: 'str' =None, id: 'str' =None, match_pattern: 'str' =None): # noqa: E501
56
58
  """V1CreateClusterCapacityReservationResponse - a model defined in Swagger""" # noqa: E501
57
59
  self._cloud_provider_capacity_reservation_id = None
60
+ self._full_cloud_provider_reservation_string = None
58
61
  self._id = None
59
62
  self._match_pattern = None
60
63
  self.discriminator = None
61
64
  if cloud_provider_capacity_reservation_id is not None:
62
65
  self.cloud_provider_capacity_reservation_id = cloud_provider_capacity_reservation_id
66
+ if full_cloud_provider_reservation_string is not None:
67
+ self.full_cloud_provider_reservation_string = full_cloud_provider_reservation_string
63
68
  if id is not None:
64
69
  self.id = id
65
70
  if match_pattern is not None:
@@ -86,6 +91,27 @@ class V1CreateClusterCapacityReservationResponse(object):
86
91
 
87
92
  self._cloud_provider_capacity_reservation_id = cloud_provider_capacity_reservation_id
88
93
 
94
+ @property
95
+ def full_cloud_provider_reservation_string(self) -> 'str':
96
+ """Gets the full_cloud_provider_reservation_string of this V1CreateClusterCapacityReservationResponse. # noqa: E501
97
+
98
+
99
+ :return: The full_cloud_provider_reservation_string of this V1CreateClusterCapacityReservationResponse. # noqa: E501
100
+ :rtype: str
101
+ """
102
+ return self._full_cloud_provider_reservation_string
103
+
104
+ @full_cloud_provider_reservation_string.setter
105
+ def full_cloud_provider_reservation_string(self, full_cloud_provider_reservation_string: 'str'):
106
+ """Sets the full_cloud_provider_reservation_string of this V1CreateClusterCapacityReservationResponse.
107
+
108
+
109
+ :param full_cloud_provider_reservation_string: The full_cloud_provider_reservation_string of this V1CreateClusterCapacityReservationResponse. # noqa: E501
110
+ :type: str
111
+ """
112
+
113
+ self._full_cloud_provider_reservation_string = full_cloud_provider_reservation_string
114
+
89
115
  @property
90
116
  def id(self) -> 'str':
91
117
  """Gets the id of this V1CreateClusterCapacityReservationResponse. # noqa: E501
@@ -58,6 +58,7 @@ class V1DataConnection(object):
58
58
  'name': 'str',
59
59
  'number_of_files': 'str',
60
60
  'project_id': 'str',
61
+ 'r2': 'V1R2DataConnection',
61
62
  'run_cmds': 'list[str]',
62
63
  's3_folder': 'V1S3FolderDataConnection',
63
64
  'snowflake': 'V1SnowflakeDataConnection',
@@ -87,6 +88,7 @@ class V1DataConnection(object):
87
88
  'name': 'name',
88
89
  'number_of_files': 'numberOfFiles',
89
90
  'project_id': 'projectId',
91
+ 'r2': 'r2',
90
92
  'run_cmds': 'runCmds',
91
93
  's3_folder': 's3Folder',
92
94
  'snowflake': 'snowflake',
@@ -98,7 +100,7 @@ class V1DataConnection(object):
98
100
  'writable': 'writable'
99
101
  }
100
102
 
101
- def __init__(self, access_cluster_ids: 'list[str]' =None, accessible: 'bool' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, efs: 'V1EfsConfig' =None, error: 'str' =None, filestore: 'V1FilestoreDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, id: 'str' =None, index: 'V1Index' =None, is_managed: 'bool' =None, lock_out: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, state: 'V1DataConnectionState' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, weka: 'V1WekaDataConnection' =None, writable: 'bool' =None): # noqa: E501
103
+ def __init__(self, access_cluster_ids: 'list[str]' =None, accessible: 'bool' =None, aws: 'V1AwsDataConnection' =None, cluster_id: 'str' =None, created_at: 'datetime' =None, efs: 'V1EfsConfig' =None, error: 'str' =None, filestore: 'V1FilestoreDataConnection' =None, gcp: 'V1GcpDataConnection' =None, gcs_folder: 'V1GCSFolderDataConnection' =None, id: 'str' =None, index: 'V1Index' =None, is_managed: 'bool' =None, lock_out: 'bool' =None, name: 'str' =None, number_of_files: 'str' =None, project_id: 'str' =None, r2: 'V1R2DataConnection' =None, run_cmds: 'list[str]' =None, s3_folder: 'V1S3FolderDataConnection' =None, snowflake: 'V1SnowflakeDataConnection' =None, state: 'V1DataConnectionState' =None, total_size_bytes: 'str' =None, type: 'str' =None, updated_at: 'datetime' =None, weka: 'V1WekaDataConnection' =None, writable: 'bool' =None): # noqa: E501
102
104
  """V1DataConnection - a model defined in Swagger""" # noqa: E501
103
105
  self._access_cluster_ids = None
104
106
  self._accessible = None
@@ -117,6 +119,7 @@ class V1DataConnection(object):
117
119
  self._name = None
118
120
  self._number_of_files = None
119
121
  self._project_id = None
122
+ self._r2 = None
120
123
  self._run_cmds = None
121
124
  self._s3_folder = None
122
125
  self._snowflake = None
@@ -161,6 +164,8 @@ class V1DataConnection(object):
161
164
  self.number_of_files = number_of_files
162
165
  if project_id is not None:
163
166
  self.project_id = project_id
167
+ if r2 is not None:
168
+ self.r2 = r2
164
169
  if run_cmds is not None:
165
170
  self.run_cmds = run_cmds
166
171
  if s3_folder is not None:
@@ -537,6 +542,27 @@ class V1DataConnection(object):
537
542
 
538
543
  self._project_id = project_id
539
544
 
545
+ @property
546
+ def r2(self) -> 'V1R2DataConnection':
547
+ """Gets the r2 of this V1DataConnection. # noqa: E501
548
+
549
+
550
+ :return: The r2 of this V1DataConnection. # noqa: E501
551
+ :rtype: V1R2DataConnection
552
+ """
553
+ return self._r2
554
+
555
+ @r2.setter
556
+ def r2(self, r2: 'V1R2DataConnection'):
557
+ """Sets the r2 of this V1DataConnection.
558
+
559
+
560
+ :param r2: The r2 of this V1DataConnection. # noqa: E501
561
+ :type: V1R2DataConnection
562
+ """
563
+
564
+ self._r2 = r2
565
+
540
566
  @property
541
567
  def run_cmds(self) -> 'list[str]':
542
568
  """Gets the run_cmds of this V1DataConnection. # noqa: E501
@@ -0,0 +1,149 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1GCPDirectVPC(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ 'network_name': 'str',
45
+ 'subnet_name': 'str'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'network_name': 'networkName',
50
+ 'subnet_name': 'subnetName'
51
+ }
52
+
53
+ def __init__(self, network_name: 'str' =None, subnet_name: 'str' =None): # noqa: E501
54
+ """V1GCPDirectVPC - a model defined in Swagger""" # noqa: E501
55
+ self._network_name = None
56
+ self._subnet_name = None
57
+ self.discriminator = None
58
+ if network_name is not None:
59
+ self.network_name = network_name
60
+ if subnet_name is not None:
61
+ self.subnet_name = subnet_name
62
+
63
+ @property
64
+ def network_name(self) -> 'str':
65
+ """Gets the network_name of this V1GCPDirectVPC. # noqa: E501
66
+
67
+
68
+ :return: The network_name of this V1GCPDirectVPC. # noqa: E501
69
+ :rtype: str
70
+ """
71
+ return self._network_name
72
+
73
+ @network_name.setter
74
+ def network_name(self, network_name: 'str'):
75
+ """Sets the network_name of this V1GCPDirectVPC.
76
+
77
+
78
+ :param network_name: The network_name of this V1GCPDirectVPC. # noqa: E501
79
+ :type: str
80
+ """
81
+
82
+ self._network_name = network_name
83
+
84
+ @property
85
+ def subnet_name(self) -> 'str':
86
+ """Gets the subnet_name of this V1GCPDirectVPC. # noqa: E501
87
+
88
+
89
+ :return: The subnet_name of this V1GCPDirectVPC. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._subnet_name
93
+
94
+ @subnet_name.setter
95
+ def subnet_name(self, subnet_name: 'str'):
96
+ """Sets the subnet_name of this V1GCPDirectVPC.
97
+
98
+
99
+ :param subnet_name: The subnet_name of this V1GCPDirectVPC. # noqa: E501
100
+ :type: str
101
+ """
102
+
103
+ self._subnet_name = subnet_name
104
+
105
+ def to_dict(self) -> dict:
106
+ """Returns the model properties as a dict"""
107
+ result = {}
108
+
109
+ for attr, _ in six.iteritems(self.swagger_types):
110
+ value = getattr(self, attr)
111
+ if isinstance(value, list):
112
+ result[attr] = list(map(
113
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
114
+ value
115
+ ))
116
+ elif hasattr(value, "to_dict"):
117
+ result[attr] = value.to_dict()
118
+ elif isinstance(value, dict):
119
+ result[attr] = dict(map(
120
+ lambda item: (item[0], item[1].to_dict())
121
+ if hasattr(item[1], "to_dict") else item,
122
+ value.items()
123
+ ))
124
+ else:
125
+ result[attr] = value
126
+ if issubclass(V1GCPDirectVPC, dict):
127
+ for key, value in self.items():
128
+ result[key] = value
129
+
130
+ return result
131
+
132
+ def to_str(self) -> str:
133
+ """Returns the string representation of the model"""
134
+ return pprint.pformat(self.to_dict())
135
+
136
+ def __repr__(self) -> str:
137
+ """For `print` and `pprint`"""
138
+ return self.to_str()
139
+
140
+ def __eq__(self, other: 'V1GCPDirectVPC') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, V1GCPDirectVPC):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'V1GCPDirectVPC') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ return not self == other
@@ -0,0 +1,123 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1GetCloudSpaceColdStartMetricsStatsResponse(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ 'metrics': 'list[V1CloudSpaceColdStartMetricsStats]'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'metrics': 'metrics'
49
+ }
50
+
51
+ def __init__(self, metrics: 'list[V1CloudSpaceColdStartMetricsStats]' =None): # noqa: E501
52
+ """V1GetCloudSpaceColdStartMetricsStatsResponse - a model defined in Swagger""" # noqa: E501
53
+ self._metrics = None
54
+ self.discriminator = None
55
+ if metrics is not None:
56
+ self.metrics = metrics
57
+
58
+ @property
59
+ def metrics(self) -> 'list[V1CloudSpaceColdStartMetricsStats]':
60
+ """Gets the metrics of this V1GetCloudSpaceColdStartMetricsStatsResponse. # noqa: E501
61
+
62
+
63
+ :return: The metrics of this V1GetCloudSpaceColdStartMetricsStatsResponse. # noqa: E501
64
+ :rtype: list[V1CloudSpaceColdStartMetricsStats]
65
+ """
66
+ return self._metrics
67
+
68
+ @metrics.setter
69
+ def metrics(self, metrics: 'list[V1CloudSpaceColdStartMetricsStats]'):
70
+ """Sets the metrics of this V1GetCloudSpaceColdStartMetricsStatsResponse.
71
+
72
+
73
+ :param metrics: The metrics of this V1GetCloudSpaceColdStartMetricsStatsResponse. # noqa: E501
74
+ :type: list[V1CloudSpaceColdStartMetricsStats]
75
+ """
76
+
77
+ self._metrics = metrics
78
+
79
+ def to_dict(self) -> dict:
80
+ """Returns the model properties as a dict"""
81
+ result = {}
82
+
83
+ for attr, _ in six.iteritems(self.swagger_types):
84
+ value = getattr(self, attr)
85
+ if isinstance(value, list):
86
+ result[attr] = list(map(
87
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
88
+ value
89
+ ))
90
+ elif hasattr(value, "to_dict"):
91
+ result[attr] = value.to_dict()
92
+ elif isinstance(value, dict):
93
+ result[attr] = dict(map(
94
+ lambda item: (item[0], item[1].to_dict())
95
+ if hasattr(item[1], "to_dict") else item,
96
+ value.items()
97
+ ))
98
+ else:
99
+ result[attr] = value
100
+ if issubclass(V1GetCloudSpaceColdStartMetricsStatsResponse, dict):
101
+ for key, value in self.items():
102
+ result[key] = value
103
+
104
+ return result
105
+
106
+ def to_str(self) -> str:
107
+ """Returns the string representation of the model"""
108
+ return pprint.pformat(self.to_dict())
109
+
110
+ def __repr__(self) -> str:
111
+ """For `print` and `pprint`"""
112
+ return self.to_str()
113
+
114
+ def __eq__(self, other: 'V1GetCloudSpaceColdStartMetricsStatsResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1GetCloudSpaceColdStartMetricsStatsResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1GetCloudSpaceColdStartMetricsStatsResponse') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -50,8 +50,10 @@ class V1GetUserResponse(object):
50
50
  'features': 'V1UserFeatures',
51
51
  'first_name': 'str',
52
52
  'general_audience_mode': 'bool',
53
+ 'git_credentials_id': 'str',
53
54
  'id': 'str',
54
55
  'internal_docs_admin': 'bool',
56
+ 'invite_code': 'str',
55
57
  'is_internal': 'bool',
56
58
  'last_name': 'str',
57
59
  'non_developer_mode': 'bool',
@@ -87,8 +89,10 @@ class V1GetUserResponse(object):
87
89
  'features': 'features',
88
90
  'first_name': 'firstName',
89
91
  'general_audience_mode': 'generalAudienceMode',
92
+ 'git_credentials_id': 'gitCredentialsId',
90
93
  'id': 'id',
91
94
  'internal_docs_admin': 'internalDocsAdmin',
95
+ 'invite_code': 'inviteCode',
92
96
  'is_internal': 'isInternal',
93
97
  'last_name': 'lastName',
94
98
  'non_developer_mode': 'nonDeveloperMode',
@@ -114,7 +118,7 @@ class V1GetUserResponse(object):
114
118
  'website': 'website'
115
119
  }
116
120
 
117
- def __init__(self, agree_to_terms_and_conditions: 'bool' =None, api_key: 'str' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_docs_admin: 'bool' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
121
+ def __init__(self, agree_to_terms_and_conditions: 'bool' =None, api_key: 'str' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, git_credentials_id: 'str' =None, id: 'str' =None, internal_docs_admin: 'bool' =None, invite_code: 'str' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
118
122
  """V1GetUserResponse - a model defined in Swagger""" # noqa: E501
119
123
  self._agree_to_terms_and_conditions = None
120
124
  self._api_key = None
@@ -125,8 +129,10 @@ class V1GetUserResponse(object):
125
129
  self._features = None
126
130
  self._first_name = None
127
131
  self._general_audience_mode = None
132
+ self._git_credentials_id = None
128
133
  self._id = None
129
134
  self._internal_docs_admin = None
135
+ self._invite_code = None
130
136
  self._is_internal = None
131
137
  self._last_name = None
132
138
  self._non_developer_mode = None
@@ -169,10 +175,14 @@ class V1GetUserResponse(object):
169
175
  self.first_name = first_name
170
176
  if general_audience_mode is not None:
171
177
  self.general_audience_mode = general_audience_mode
178
+ if git_credentials_id is not None:
179
+ self.git_credentials_id = git_credentials_id
172
180
  if id is not None:
173
181
  self.id = id
174
182
  if internal_docs_admin is not None:
175
183
  self.internal_docs_admin = internal_docs_admin
184
+ if invite_code is not None:
185
+ self.invite_code = invite_code
176
186
  if is_internal is not None:
177
187
  self.is_internal = is_internal
178
188
  if last_name is not None:
@@ -409,6 +419,27 @@ class V1GetUserResponse(object):
409
419
 
410
420
  self._general_audience_mode = general_audience_mode
411
421
 
422
+ @property
423
+ def git_credentials_id(self) -> 'str':
424
+ """Gets the git_credentials_id of this V1GetUserResponse. # noqa: E501
425
+
426
+
427
+ :return: The git_credentials_id of this V1GetUserResponse. # noqa: E501
428
+ :rtype: str
429
+ """
430
+ return self._git_credentials_id
431
+
432
+ @git_credentials_id.setter
433
+ def git_credentials_id(self, git_credentials_id: 'str'):
434
+ """Sets the git_credentials_id of this V1GetUserResponse.
435
+
436
+
437
+ :param git_credentials_id: The git_credentials_id of this V1GetUserResponse. # noqa: E501
438
+ :type: str
439
+ """
440
+
441
+ self._git_credentials_id = git_credentials_id
442
+
412
443
  @property
413
444
  def id(self) -> 'str':
414
445
  """Gets the id of this V1GetUserResponse. # noqa: E501
@@ -451,6 +482,27 @@ class V1GetUserResponse(object):
451
482
 
452
483
  self._internal_docs_admin = internal_docs_admin
453
484
 
485
+ @property
486
+ def invite_code(self) -> 'str':
487
+ """Gets the invite_code of this V1GetUserResponse. # noqa: E501
488
+
489
+
490
+ :return: The invite_code of this V1GetUserResponse. # noqa: E501
491
+ :rtype: str
492
+ """
493
+ return self._invite_code
494
+
495
+ @invite_code.setter
496
+ def invite_code(self, invite_code: 'str'):
497
+ """Sets the invite_code of this V1GetUserResponse.
498
+
499
+
500
+ :param invite_code: The invite_code of this V1GetUserResponse. # noqa: E501
501
+ :type: str
502
+ """
503
+
504
+ self._invite_code = invite_code
505
+
454
506
  @property
455
507
  def is_internal(self) -> 'bool':
456
508
  """Gets the is_internal of this V1GetUserResponse. # noqa: E501
@@ -54,7 +54,7 @@ class V1GoogleCloudDirectV1(object):
54
54
  'service_account_email': 'str',
55
55
  'source_cidr_ips': 'list[str]',
56
56
  'subnets': 'list[V1SubnetSpec]',
57
- 'vpc_networks': 'list[str]'
57
+ 'vpcs': 'list[V1GCPDirectVPC]'
58
58
  }
59
59
 
60
60
  attribute_map = {
@@ -71,10 +71,10 @@ class V1GoogleCloudDirectV1(object):
71
71
  'service_account_email': 'serviceAccountEmail',
72
72
  'source_cidr_ips': 'sourceCidrIps',
73
73
  'subnets': 'subnets',
74
- 'vpc_networks': 'vpcNetworks'
74
+ 'vpcs': 'vpcs'
75
75
  }
76
76
 
77
- def __init__(self, bucket_name: 'str' =None, compute_project_role: 'str' =None, compute_service_account_email: 'str' =None, credentials_secret_id: 'str' =None, credentials_service_account_email: 'str' =None, custom_subnet_mode: 'bool' =None, primary_region: 'str' =None, project_id: 'str' =None, project_sa_enabled: 'bool' =None, regions: 'list[str]' =None, service_account_email: 'str' =None, source_cidr_ips: 'list[str]' =None, subnets: 'list[V1SubnetSpec]' =None, vpc_networks: 'list[str]' =None): # noqa: E501
77
+ def __init__(self, bucket_name: 'str' =None, compute_project_role: 'str' =None, compute_service_account_email: 'str' =None, credentials_secret_id: 'str' =None, credentials_service_account_email: 'str' =None, custom_subnet_mode: 'bool' =None, primary_region: 'str' =None, project_id: 'str' =None, project_sa_enabled: 'bool' =None, regions: 'list[str]' =None, service_account_email: 'str' =None, source_cidr_ips: 'list[str]' =None, subnets: 'list[V1SubnetSpec]' =None, vpcs: 'list[V1GCPDirectVPC]' =None): # noqa: E501
78
78
  """V1GoogleCloudDirectV1 - a model defined in Swagger""" # noqa: E501
79
79
  self._bucket_name = None
80
80
  self._compute_project_role = None
@@ -89,7 +89,7 @@ class V1GoogleCloudDirectV1(object):
89
89
  self._service_account_email = None
90
90
  self._source_cidr_ips = None
91
91
  self._subnets = None
92
- self._vpc_networks = None
92
+ self._vpcs = None
93
93
  self.discriminator = None
94
94
  if bucket_name is not None:
95
95
  self.bucket_name = bucket_name
@@ -117,8 +117,8 @@ class V1GoogleCloudDirectV1(object):
117
117
  self.source_cidr_ips = source_cidr_ips
118
118
  if subnets is not None:
119
119
  self.subnets = subnets
120
- if vpc_networks is not None:
121
- self.vpc_networks = vpc_networks
120
+ if vpcs is not None:
121
+ self.vpcs = vpcs
122
122
 
123
123
  @property
124
124
  def bucket_name(self) -> 'str':
@@ -400,25 +400,25 @@ class V1GoogleCloudDirectV1(object):
400
400
  self._subnets = subnets
401
401
 
402
402
  @property
403
- def vpc_networks(self) -> 'list[str]':
404
- """Gets the vpc_networks of this V1GoogleCloudDirectV1. # noqa: E501
403
+ def vpcs(self) -> 'list[V1GCPDirectVPC]':
404
+ """Gets the vpcs of this V1GoogleCloudDirectV1. # noqa: E501
405
405
 
406
406
 
407
- :return: The vpc_networks of this V1GoogleCloudDirectV1. # noqa: E501
408
- :rtype: list[str]
407
+ :return: The vpcs of this V1GoogleCloudDirectV1. # noqa: E501
408
+ :rtype: list[V1GCPDirectVPC]
409
409
  """
410
- return self._vpc_networks
410
+ return self._vpcs
411
411
 
412
- @vpc_networks.setter
413
- def vpc_networks(self, vpc_networks: 'list[str]'):
414
- """Sets the vpc_networks of this V1GoogleCloudDirectV1.
412
+ @vpcs.setter
413
+ def vpcs(self, vpcs: 'list[V1GCPDirectVPC]'):
414
+ """Sets the vpcs of this V1GoogleCloudDirectV1.
415
415
 
416
416
 
417
- :param vpc_networks: The vpc_networks of this V1GoogleCloudDirectV1. # noqa: E501
418
- :type: list[str]
417
+ :param vpcs: The vpcs of this V1GoogleCloudDirectV1. # noqa: E501
418
+ :type: list[V1GCPDirectVPC]
419
419
  """
420
420
 
421
- self._vpc_networks = vpc_networks
421
+ self._vpcs = vpcs
422
422
 
423
423
  def to_dict(self) -> dict:
424
424
  """Returns the model properties as a dict"""