|
38 | 38 | CustomizedAcceleratorsOperations, |
39 | 39 | DeploymentsOperations, |
40 | 40 | DevToolPortalsOperations, |
| 41 | + EurekaServersOperations, |
41 | 42 | GatewayCustomDomainsOperations, |
42 | 43 | GatewayRouteConfigsOperations, |
43 | 44 | GatewaysOperations, |
| 45 | + JobExecutionOperations, |
| 46 | + JobExecutionsOperations, |
| 47 | + JobOperations, |
| 48 | + JobsOperations, |
44 | 49 | MonitoringSettingsOperations, |
45 | 50 | Operations, |
46 | 51 | PredefinedAcceleratorsOperations, |
|
52 | 57 | ) |
53 | 58 |
|
54 | 59 | if TYPE_CHECKING: |
55 | | - # pylint: disable=unused-import,ungrouped-imports |
56 | 60 | from azure.core.credentials import TokenCredential |
57 | 61 |
|
58 | 62 |
|
59 | | -class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes |
| 63 | +class AppPlatformManagementClient: # pylint: disable=too-many-instance-attributes |
60 | 64 | """REST API for Azure Spring Apps. |
61 | 65 |
|
62 | 66 | :ivar services: ServicesOperations operations |
63 | 67 | :vartype services: azure.mgmt.appplatform.operations.ServicesOperations |
64 | 68 | :ivar apms: ApmsOperations operations |
65 | 69 | :vartype apms: azure.mgmt.appplatform.operations.ApmsOperations |
| 70 | + :ivar eureka_servers: EurekaServersOperations operations |
| 71 | + :vartype eureka_servers: azure.mgmt.appplatform.operations.EurekaServersOperations |
66 | 72 | :ivar config_servers: ConfigServersOperations operations |
67 | 73 | :vartype config_servers: azure.mgmt.appplatform.operations.ConfigServersOperations |
68 | 74 | :ivar configuration_services: ConfigurationServicesOperations operations |
@@ -127,15 +133,23 @@ class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version |
127 | 133 | :ivar predefined_accelerators: PredefinedAcceleratorsOperations operations |
128 | 134 | :vartype predefined_accelerators: |
129 | 135 | azure.mgmt.appplatform.operations.PredefinedAcceleratorsOperations |
| 136 | + :ivar jobs: JobsOperations operations |
| 137 | + :vartype jobs: azure.mgmt.appplatform.operations.JobsOperations |
| 138 | + :ivar job: JobOperations operations |
| 139 | + :vartype job: azure.mgmt.appplatform.operations.JobOperations |
| 140 | + :ivar job_execution: JobExecutionOperations operations |
| 141 | + :vartype job_execution: azure.mgmt.appplatform.operations.JobExecutionOperations |
| 142 | + :ivar job_executions: JobExecutionsOperations operations |
| 143 | + :vartype job_executions: azure.mgmt.appplatform.operations.JobExecutionsOperations |
130 | 144 | :param credential: Credential needed for the client to connect to Azure. Required. |
131 | 145 | :type credential: ~azure.core.credentials.TokenCredential |
132 | 146 | :param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure |
133 | 147 | subscription. The subscription ID forms part of the URI for every service call. Required. |
134 | 148 | :type subscription_id: str |
135 | 149 | :param base_url: Service URL. Default value is "https://management.azure.com". |
136 | 150 | :type base_url: str |
137 | | - :keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this |
138 | | - default value may result in unsupported behavior. |
| 151 | + :keyword api_version: Api Version. Default value is "2024-05-01-preview". Note that overriding |
| 152 | + this default value may result in unsupported behavior. |
139 | 153 | :paramtype api_version: str |
140 | 154 | :keyword int polling_interval: Default waiting time between two polls for LRO operations if no |
141 | 155 | Retry-After header is present. |
@@ -177,6 +191,7 @@ def __init__( |
177 | 191 | self._serialize.client_side_validation = False |
178 | 192 | self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize) |
179 | 193 | self.apms = ApmsOperations(self._client, self._config, self._serialize, self._deserialize) |
| 194 | + self.eureka_servers = EurekaServersOperations(self._client, self._config, self._serialize, self._deserialize) |
180 | 195 | self.config_servers = ConfigServersOperations(self._client, self._config, self._serialize, self._deserialize) |
181 | 196 | self.configuration_services = ConfigurationServicesOperations( |
182 | 197 | self._client, self._config, self._serialize, self._deserialize |
@@ -235,6 +250,10 @@ def __init__( |
235 | 250 | self.predefined_accelerators = PredefinedAcceleratorsOperations( |
236 | 251 | self._client, self._config, self._serialize, self._deserialize |
237 | 252 | ) |
| 253 | + self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize) |
| 254 | + self.job = JobOperations(self._client, self._config, self._serialize, self._deserialize) |
| 255 | + self.job_execution = JobExecutionOperations(self._client, self._config, self._serialize, self._deserialize) |
| 256 | + self.job_executions = JobExecutionsOperations(self._client, self._config, self._serialize, self._deserialize) |
238 | 257 |
|
239 | 258 | def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: |
240 | 259 | """Runs the network request through the client's chained policies. |
|
0 commit comments