assisted-service-client 2.23.0.post15__py3-none-any.whl → 2.23.0.post17__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.
@@ -3048,6 +3048,105 @@ class InstallerApi(object):
3048
3048
  _request_timeout=params.get('_request_timeout'),
3049
3049
  collection_formats=collection_formats)
3050
3050
 
3051
+ def v2_get_cluster_ui_settings(self, cluster_id, **kwargs): # noqa: E501
3052
+ """v2_get_cluster_ui_settings # noqa: E501
3053
+
3054
+ Fetch cluster specific UI settings. # noqa: E501
3055
+ This method makes a synchronous HTTP request by default. To make an
3056
+ asynchronous HTTP request, please pass async_req=True
3057
+ >>> thread = api.v2_get_cluster_ui_settings(cluster_id, async_req=True)
3058
+ >>> result = thread.get()
3059
+
3060
+ :param async_req bool
3061
+ :param str cluster_id: The cluster for which UI settings should be retrieved. (required)
3062
+ :return: str
3063
+ If the method is called asynchronously,
3064
+ returns the request thread.
3065
+ """
3066
+ kwargs['_return_http_data_only'] = True
3067
+ if kwargs.get('async_req'):
3068
+ return self.v2_get_cluster_ui_settings_with_http_info(cluster_id, **kwargs) # noqa: E501
3069
+ else:
3070
+ (data) = self.v2_get_cluster_ui_settings_with_http_info(cluster_id, **kwargs) # noqa: E501
3071
+ return data
3072
+
3073
+ def v2_get_cluster_ui_settings_with_http_info(self, cluster_id, **kwargs): # noqa: E501
3074
+ """v2_get_cluster_ui_settings # noqa: E501
3075
+
3076
+ Fetch cluster specific UI settings. # noqa: E501
3077
+ This method makes a synchronous HTTP request by default. To make an
3078
+ asynchronous HTTP request, please pass async_req=True
3079
+ >>> thread = api.v2_get_cluster_ui_settings_with_http_info(cluster_id, async_req=True)
3080
+ >>> result = thread.get()
3081
+
3082
+ :param async_req bool
3083
+ :param str cluster_id: The cluster for which UI settings should be retrieved. (required)
3084
+ :return: str
3085
+ If the method is called asynchronously,
3086
+ returns the request thread.
3087
+ """
3088
+
3089
+ all_params = ['cluster_id'] # noqa: E501
3090
+ all_params.append('async_req')
3091
+ all_params.append('_return_http_data_only')
3092
+ all_params.append('_preload_content')
3093
+ all_params.append('_request_timeout')
3094
+
3095
+ params = locals()
3096
+ for key, val in six.iteritems(params['kwargs']):
3097
+ if key not in all_params:
3098
+ raise TypeError(
3099
+ "Got an unexpected keyword argument '%s'"
3100
+ " to method v2_get_cluster_ui_settings" % key
3101
+ )
3102
+ params[key] = val
3103
+ del params['kwargs']
3104
+ # verify the required parameter 'cluster_id' is set
3105
+ if ('cluster_id' not in params or
3106
+ params['cluster_id'] is None):
3107
+ raise ValueError("Missing the required parameter `cluster_id` when calling `v2_get_cluster_ui_settings`") # noqa: E501
3108
+
3109
+ collection_formats = {}
3110
+
3111
+ path_params = {}
3112
+ if 'cluster_id' in params:
3113
+ path_params['cluster_id'] = params['cluster_id'] # noqa: E501
3114
+
3115
+ query_params = []
3116
+
3117
+ header_params = {}
3118
+
3119
+ form_params = []
3120
+ local_var_files = {}
3121
+
3122
+ body_params = None
3123
+ # HTTP header `Accept`
3124
+ header_params['Accept'] = self.api_client.select_header_accept(
3125
+ ['application/json']) # noqa: E501
3126
+
3127
+ # HTTP header `Content-Type`
3128
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
3129
+ ['application/json']) # noqa: E501
3130
+
3131
+ # Authentication setting
3132
+ auth_settings = ['userAuth'] # noqa: E501
3133
+
3134
+ return self.api_client.call_api(
3135
+ '/v2/clusters/{cluster_id}/ui-settings', 'GET',
3136
+ path_params,
3137
+ query_params,
3138
+ header_params,
3139
+ body=body_params,
3140
+ post_params=form_params,
3141
+ files=local_var_files,
3142
+ response_type='str', # noqa: E501
3143
+ auth_settings=auth_settings,
3144
+ async_req=params.get('async_req'),
3145
+ _return_http_data_only=params.get('_return_http_data_only'),
3146
+ _preload_content=params.get('_preload_content', True),
3147
+ _request_timeout=params.get('_request_timeout'),
3148
+ collection_formats=collection_formats)
3149
+
3051
3150
  def v2_get_credentials(self, cluster_id, **kwargs): # noqa: E501
3052
3151
  """v2_get_credentials # noqa: E501
3053
3152
 
@@ -5791,6 +5890,113 @@ class InstallerApi(object):
5791
5890
  _request_timeout=params.get('_request_timeout'),
5792
5891
  collection_formats=collection_formats)
5793
5892
 
5893
+ def v2_update_cluster_ui_settings(self, cluster_id, ui_settings, **kwargs): # noqa: E501
5894
+ """v2_update_cluster_ui_settings # noqa: E501
5895
+
5896
+ Update cluster specific UI settings. # noqa: E501
5897
+ This method makes a synchronous HTTP request by default. To make an
5898
+ asynchronous HTTP request, please pass async_req=True
5899
+ >>> thread = api.v2_update_cluster_ui_settings(cluster_id, ui_settings, async_req=True)
5900
+ >>> result = thread.get()
5901
+
5902
+ :param async_req bool
5903
+ :param str cluster_id: The cluster for which UI settings should be updated. (required)
5904
+ :param str ui_settings: Settings for the installer UI. (required)
5905
+ :return: str
5906
+ If the method is called asynchronously,
5907
+ returns the request thread.
5908
+ """
5909
+ kwargs['_return_http_data_only'] = True
5910
+ if kwargs.get('async_req'):
5911
+ return self.v2_update_cluster_ui_settings_with_http_info(cluster_id, ui_settings, **kwargs) # noqa: E501
5912
+ else:
5913
+ (data) = self.v2_update_cluster_ui_settings_with_http_info(cluster_id, ui_settings, **kwargs) # noqa: E501
5914
+ return data
5915
+
5916
+ def v2_update_cluster_ui_settings_with_http_info(self, cluster_id, ui_settings, **kwargs): # noqa: E501
5917
+ """v2_update_cluster_ui_settings # noqa: E501
5918
+
5919
+ Update cluster specific UI settings. # noqa: E501
5920
+ This method makes a synchronous HTTP request by default. To make an
5921
+ asynchronous HTTP request, please pass async_req=True
5922
+ >>> thread = api.v2_update_cluster_ui_settings_with_http_info(cluster_id, ui_settings, async_req=True)
5923
+ >>> result = thread.get()
5924
+
5925
+ :param async_req bool
5926
+ :param str cluster_id: The cluster for which UI settings should be updated. (required)
5927
+ :param str ui_settings: Settings for the installer UI. (required)
5928
+ :return: str
5929
+ If the method is called asynchronously,
5930
+ returns the request thread.
5931
+ """
5932
+
5933
+ all_params = ['cluster_id', 'ui_settings'] # noqa: E501
5934
+ all_params.append('async_req')
5935
+ all_params.append('_return_http_data_only')
5936
+ all_params.append('_preload_content')
5937
+ all_params.append('_request_timeout')
5938
+
5939
+ params = locals()
5940
+ for key, val in six.iteritems(params['kwargs']):
5941
+ if key not in all_params:
5942
+ raise TypeError(
5943
+ "Got an unexpected keyword argument '%s'"
5944
+ " to method v2_update_cluster_ui_settings" % key
5945
+ )
5946
+ params[key] = val
5947
+ del params['kwargs']
5948
+ # verify the required parameter 'cluster_id' is set
5949
+ if ('cluster_id' not in params or
5950
+ params['cluster_id'] is None):
5951
+ raise ValueError("Missing the required parameter `cluster_id` when calling `v2_update_cluster_ui_settings`") # noqa: E501
5952
+ # verify the required parameter 'ui_settings' is set
5953
+ if ('ui_settings' not in params or
5954
+ params['ui_settings'] is None):
5955
+ raise ValueError("Missing the required parameter `ui_settings` when calling `v2_update_cluster_ui_settings`") # noqa: E501
5956
+
5957
+ collection_formats = {}
5958
+
5959
+ path_params = {}
5960
+ if 'cluster_id' in params:
5961
+ path_params['cluster_id'] = params['cluster_id'] # noqa: E501
5962
+
5963
+ query_params = []
5964
+
5965
+ header_params = {}
5966
+
5967
+ form_params = []
5968
+ local_var_files = {}
5969
+
5970
+ body_params = None
5971
+ if 'ui_settings' in params:
5972
+ body_params = params['ui_settings']
5973
+ # HTTP header `Accept`
5974
+ header_params['Accept'] = self.api_client.select_header_accept(
5975
+ ['application/json']) # noqa: E501
5976
+
5977
+ # HTTP header `Content-Type`
5978
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
5979
+ ['application/json']) # noqa: E501
5980
+
5981
+ # Authentication setting
5982
+ auth_settings = ['userAuth'] # noqa: E501
5983
+
5984
+ return self.api_client.call_api(
5985
+ '/v2/clusters/{cluster_id}/ui-settings', 'PUT',
5986
+ path_params,
5987
+ query_params,
5988
+ header_params,
5989
+ body=body_params,
5990
+ post_params=form_params,
5991
+ files=local_var_files,
5992
+ response_type='str', # noqa: E501
5993
+ auth_settings=auth_settings,
5994
+ async_req=params.get('async_req'),
5995
+ _return_http_data_only=params.get('_return_http_data_only'),
5996
+ _preload_content=params.get('_preload_content', True),
5997
+ _request_timeout=params.get('_request_timeout'),
5998
+ collection_formats=collection_formats)
5999
+
5794
6000
  def v2_update_host(self, infra_env_id, host_id, host_update_params, **kwargs): # noqa: E501
5795
6001
  """v2_update_host # noqa: E501
5796
6002
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: assisted-service-client
3
- Version: 2.23.0.post15
3
+ Version: 2.23.0.post17
4
4
  Summary: AssistedInstall
5
5
  Home-page: https://github.com/openshift/assisted-service
6
6
  Author: RedHat
@@ -149,6 +149,7 @@ Class | Method | HTTP request | Description
149
149
  *InstallerApi* | [**v2_get_cluster**](docs/InstallerApi.md#v2_get_cluster) | **GET** /v2/clusters/{cluster_id} |
150
150
  *InstallerApi* | [**v2_get_cluster_default_config**](docs/InstallerApi.md#v2_get_cluster_default_config) | **GET** /v2/clusters/default-config |
151
151
  *InstallerApi* | [**v2_get_cluster_install_config**](docs/InstallerApi.md#v2_get_cluster_install_config) | **GET** /v2/clusters/{cluster_id}/install-config |
152
+ *InstallerApi* | [**v2_get_cluster_ui_settings**](docs/InstallerApi.md#v2_get_cluster_ui_settings) | **GET** /v2/clusters/{cluster_id}/ui-settings |
152
153
  *InstallerApi* | [**v2_get_credentials**](docs/InstallerApi.md#v2_get_credentials) | **GET** /v2/clusters/{cluster_id}/credentials |
153
154
  *InstallerApi* | [**v2_get_host**](docs/InstallerApi.md#v2_get_host) | **GET** /v2/infra-envs/{infra_env_id}/hosts/{host_id} |
154
155
  *InstallerApi* | [**v2_get_host_ignition**](docs/InstallerApi.md#v2_get_host_ignition) | **GET** /v2/infra-envs/{infra_env_id}/hosts/{host_id}/ignition |
@@ -175,6 +176,7 @@ Class | Method | HTTP request | Description
175
176
  *InstallerApi* | [**v2_update_cluster**](docs/InstallerApi.md#v2_update_cluster) | **PATCH** /v2/clusters/{cluster_id} |
176
177
  *InstallerApi* | [**v2_update_cluster_install_config**](docs/InstallerApi.md#v2_update_cluster_install_config) | **PATCH** /v2/clusters/{cluster_id}/install-config |
177
178
  *InstallerApi* | [**v2_update_cluster_logs_progress**](docs/InstallerApi.md#v2_update_cluster_logs_progress) | **PUT** /v2/clusters/{cluster_id}/logs-progress |
179
+ *InstallerApi* | [**v2_update_cluster_ui_settings**](docs/InstallerApi.md#v2_update_cluster_ui_settings) | **PUT** /v2/clusters/{cluster_id}/ui-settings |
178
180
  *InstallerApi* | [**v2_update_host**](docs/InstallerApi.md#v2_update_host) | **PATCH** /v2/infra-envs/{infra_env_id}/hosts/{host_id} |
179
181
  *InstallerApi* | [**v2_update_host_ignition**](docs/InstallerApi.md#v2_update_host_ignition) | **PATCH** /v2/infra-envs/{infra_env_id}/hosts/{host_id}/ignition |
180
182
  *InstallerApi* | [**v2_update_host_install_progress**](docs/InstallerApi.md#v2_update_host_install_progress) | **PUT** /v2/infra-envs/{infra_env_id}/hosts/{host_id}/progress |
@@ -4,7 +4,7 @@ assisted_service_client/configuration.py,sha256=cnW5aIc2HR6HqBv7LXhMfoJTdfPhBed_
4
4
  assisted_service_client/rest.py,sha256=fLcY2m9yxpqJW4agxf3yCJyiz486qPLgqw8CbCuftZw,13123
5
5
  assisted_service_client/api/__init__.py,sha256=PblMXYK6UKW4rSdDx3F7SA-M1xpjo4rzTBZOx0_cotA,492
6
6
  assisted_service_client/api/events_api.py,sha256=g4ZLrqrShqtco1y1rPKnbgeHELSylH4-Q_H4QxxnlEE,7506
7
- assisted_service_client/api/installer_api.py,sha256=bJnmh8m_WMfu8D7gJc5mZk1ZpDtVeHWfTnV1F5VHpoo,289003
7
+ assisted_service_client/api/installer_api.py,sha256=xzX0JbtdJAQScfh_hnS0iLleFpMa03XUuCrZcp1pHRc,297722
8
8
  assisted_service_client/api/managed_domains_api.py,sha256=rTPj3IVxrECtMc_-acZ14u6WydVqHVw6VaM7I8Zvu3g,4087
9
9
  assisted_service_client/api/manifests_api.py,sha256=9did1gt88HY879X7B2Wgh4Wmg6JDQERPnFQUsLvsNkA,24735
10
10
  assisted_service_client/api/operators_api.py,sha256=d-QpJNPGcrAKlE2zG7K160zWrQ7_Wig4osid_92zSTQ,17473
@@ -276,7 +276,7 @@ test/test_ingress_vip.py,sha256=FIInh8SktPadK_JmC5twjDAIaMnHxyxFMtsaDU30eJk,861
276
276
  test/test_inline_response200.py,sha256=ma3jwgrH-LwlcXU_njUUGcNRaP73VFf-RCq5BGLDv9k,917
277
277
  test/test_inline_response2001.py,sha256=kIUutSpuCGh0GHQOuACqeoZecLqBNZxFLPpjH9XPE4g,925
278
278
  test/test_install_cmd_request.py,sha256=2SMQgHeJknXJwXq8LDD6D5My3QF7Z_ox29rRtQ6TnmY,919
279
- test/test_installer_api.py,sha256=0QnjPMWaf1Y-oKfs3K19U7CUbjQeqZHjk3Ne59GXeig,8157
279
+ test/test_installer_api.py,sha256=qWLNSaB_eiCAN9nFUQ2ZCAIgyiNCaIAGEcLZkF20qYQ,8415
280
280
  test/test_installer_args_params.py,sha256=5DLOVk1UexAfQBSOHbBILrYGrXXN0GeV2lsTuSddMHw,935
281
281
  test/test_interface.py,sha256=aKMlQAzR68c2sit6Lqcc6py07tqoRyX0j8z-j91HK7A,851
282
282
  test/test_inventory.py,sha256=9aK7xDNHZbTLYWDdRmEKTCtiOLlgyRgS7Qw4OAO5NMw,851
@@ -361,7 +361,7 @@ test/test_versions.py,sha256=n-4xIBBiEuExya4yfHjxHbsRinb_vccUxwIrMxyEvfk,843
361
361
  test/test_versions_api.py,sha256=1I1X8zO7RRpqgvWhuV05bK2PnSQfYjN7_d4eBYkum1s,967
362
362
  test/test_vip_type.py,sha256=MAse7Cn2PT8pBELxmmAa4X9K_fZ-jtvNTmrqQ0Hvc-o,837
363
363
  test/test_vip_verification.py,sha256=DwaHdagiOxRAPQ8TN541xSPn--MJEbRATBm1h3OmmZ4,901
364
- assisted_service_client-2.23.0.post15.dist-info/METADATA,sha256=qflZ0E4JSE86Xg52Om8EDN1Ztue0cBqHZOKPtV6pyHA,24800
365
- assisted_service_client-2.23.0.post15.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
366
- assisted_service_client-2.23.0.post15.dist-info/top_level.txt,sha256=4hfKi9CMXGm1B8Tohp02sqpWY8GTFoD38UbGI8duAD4,29
367
- assisted_service_client-2.23.0.post15.dist-info/RECORD,,
364
+ assisted_service_client-2.23.0.post17.dist-info/METADATA,sha256=PZnjWfhGprx6bs7MPBHdTFgqZ7awW0RA_kOMIINHsDM,25106
365
+ assisted_service_client-2.23.0.post17.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
366
+ assisted_service_client-2.23.0.post17.dist-info/top_level.txt,sha256=4hfKi9CMXGm1B8Tohp02sqpWY8GTFoD38UbGI8duAD4,29
367
+ assisted_service_client-2.23.0.post17.dist-info/RECORD,,
@@ -203,6 +203,12 @@ class TestInstallerApi(unittest.TestCase):
203
203
  """
204
204
  pass
205
205
 
206
+ def test_v2_get_cluster_ui_settings(self):
207
+ """Test case for v2_get_cluster_ui_settings
208
+
209
+ """
210
+ pass
211
+
206
212
  def test_v2_get_credentials(self):
207
213
  """Test case for v2_get_credentials
208
214
 
@@ -360,6 +366,12 @@ class TestInstallerApi(unittest.TestCase):
360
366
  """
361
367
  pass
362
368
 
369
+ def test_v2_update_cluster_ui_settings(self):
370
+ """Test case for v2_update_cluster_ui_settings
371
+
372
+ """
373
+ pass
374
+
363
375
  def test_v2_update_host(self):
364
376
  """Test case for v2_update_host
365
377