def __init__(__self__, *, enable: Optional[pulumi.Input[bool]]=None, sample_rate: Optional[pulumi.Input[float]]=None):
    '\n        The available logging options for the load balancer traffic served by this backend service.\n        :param pulumi.Input[bool] enable: This field denotes whether to enable logging for the load balancer traffic served by this backend service.\n        :param pulumi.Input[float] sample_rate: This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0.\n        '
    if (enable is not None):
        pulumi.set(__self__, 'enable', enable)
    if (sample_rate is not None):
        pulumi.set(__self__, 'sample_rate', sample_rate)
The available logging options for the load balancer traffic served by this backend service.
:param pulumi.Input[bool] enable: This field denotes whether to enable logging for the load balancer traffic served by this backend service.
:param pulumi.Input[float] sample_rate: This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0.
def __init__(__self__, *, enable: Optional[pulumi.Input[bool]]=None, sample_rate: Optional[pulumi.Input[float]]=None):
    '\n        The available logging options for the load balancer traffic served by this backend service.\n        :param pulumi.Input[bool] enable: This field denotes whether to enable logging for the load balancer traffic served by this backend service.\n        :param pulumi.Input[float] sample_rate: This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0.\n        '
    if (enable is not None):
        pulumi.set(__self__, 'enable', enable)
    if (sample_rate is not None):
        pulumi.set(__self__, 'sample_rate', sample_rate)