4b7985384c
* Add test case * Fix tests * Add test dependencies correctly * Feed through error handling * Include test output * Get types to line up * Add remaining test files * Update changelog * Correctly find type paths * Handle transitive objects * Handle required fields * Add feature flag for go * Add required+default test case * Don't `<any>` cast known types. * Add more flags. I realize this should really wait for PR#8400 to merge. * Add plain object to env-helper test This test fails right now. My next problem is fixing it. * Handle plain types * Handle function inputs * Fix the indentation * Handle output types correctly * Remove unnecessary `!` * Add test case * Fix tests * Add test dependencies correctly * Feed through error handling * Include test output * Get types to line up * Add remaining test files * Update changelog * Correctly find type paths * Handle transitive objects * Handle required fields * Add required+default test case * Don't `<any>` cast known types. * Add plain object to env-helper test This test fails right now. My next problem is fixing it. * Handle plain types * Handle function inputs * Fix the indentation * Handle output types correctly * Remove unnecessary `!` * Start on `genPlainObjectDefaultFunc` * Add missing change to fix test * Run tests with merge * Refactor out assign * Merge in next _index.md diff * Change method name to `Defaults` * Handle enums correctly * Another attempt at _index.md * Make module generation deterministic * Add checks for old values * Insert defaults in resources * Fix docs generation Credit to @praneetloke * Progress on adding defaults to Resource arguments * Handle resource argument defaults * Don't create defaults if disableObjectDefaults * Rename test folder * Add test for disable flag * Fix disable test * Update docs * Abstract out nil comparisons * Use reflection to test for empty values * Simplify Ptr and pulumi.Any type handling * Remove unused function * Apply defaults to functions * Update new test with master codegen * Tests + nil check
80 lines
2.5 KiB
Python
80 lines
2.5 KiB
Python
# coding=utf-8
|
|
# *** WARNING: this file was generated by test. ***
|
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
|
|
import warnings
|
|
import pulumi
|
|
import pulumi.runtime
|
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
from . import _utilities
|
|
from . import outputs
|
|
|
|
__all__ = [
|
|
'KubeClientSettings',
|
|
]
|
|
|
|
@pulumi.output_type
|
|
class KubeClientSettings(dict):
|
|
"""
|
|
Options for tuning the Kubernetes client used by a Provider.
|
|
"""
|
|
@staticmethod
|
|
def __key_warning(key: str):
|
|
suggest = None
|
|
if key == "recTest":
|
|
suggest = "rec_test"
|
|
|
|
if suggest:
|
|
pulumi.log.warn(f"Key '{key}' not found in KubeClientSettings. Access the value via the '{suggest}' property getter instead.")
|
|
|
|
def __getitem__(self, key: str) -> Any:
|
|
KubeClientSettings.__key_warning(key)
|
|
return super().__getitem__(key)
|
|
|
|
def get(self, key: str, default = None) -> Any:
|
|
KubeClientSettings.__key_warning(key)
|
|
return super().get(key, default)
|
|
|
|
def __init__(__self__, *,
|
|
burst: Optional[int] = None,
|
|
qps: Optional[float] = None,
|
|
rec_test: Optional['outputs.KubeClientSettings'] = None):
|
|
"""
|
|
Options for tuning the Kubernetes client used by a Provider.
|
|
:param int burst: Maximum burst for throttle. Default value is 10.
|
|
:param float qps: Maximum queries per second (QPS) to the API server from this client. Default value is 5.
|
|
"""
|
|
if burst is None:
|
|
burst = _utilities.get_env_int('PULUMI_K8S_CLIENT_BURST')
|
|
if burst is not None:
|
|
pulumi.set(__self__, "burst", burst)
|
|
if qps is None:
|
|
qps = _utilities.get_env_float('PULUMI_K8S_CLIENT_QPS')
|
|
if qps is not None:
|
|
pulumi.set(__self__, "qps", qps)
|
|
if rec_test is not None:
|
|
pulumi.set(__self__, "rec_test", rec_test)
|
|
|
|
@property
|
|
@pulumi.getter
|
|
def burst(self) -> Optional[int]:
|
|
"""
|
|
Maximum burst for throttle. Default value is 10.
|
|
"""
|
|
return pulumi.get(self, "burst")
|
|
|
|
@property
|
|
@pulumi.getter
|
|
def qps(self) -> Optional[float]:
|
|
"""
|
|
Maximum queries per second (QPS) to the API server from this client. Default value is 5.
|
|
"""
|
|
return pulumi.get(self, "qps")
|
|
|
|
@property
|
|
@pulumi.getter(name="recTest")
|
|
def rec_test(self) -> Optional['outputs.KubeClientSettings']:
|
|
return pulumi.get(self, "rec_test")
|
|
|
|
|