uid stringlengths 24 24 | split stringclasses 1
value | category stringclasses 2
values | content stringlengths 5 482k | signature stringlengths 1 14k | suffix stringlengths 1 482k | prefix stringlengths 9 14k | prefix_token_count int64 3 5.01k | prefix_token_budget int64 64 256 | element_token_count int64 1 292k | signature_token_count int64 1 5.01k | prefix_context_token_count int64 0 255 | repo stringlengths 7 112 | path stringlengths 4 208 | language stringclasses 1
value | name stringlengths 1 218 | qualname stringlengths 1 218 | start_line int64 1 26.7k | end_line int64 1 26.7k | signature_start_line int64 1 26.7k | signature_end_line int64 1 26.7k | source_hash stringlengths 40 40 | source_dataset stringclasses 1
value | source_split stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e12d97c62fc3e15ad3876b0b | train | class | @pulumi.input_type
class ClusterNodeConfigShieldedInstanceConfigArgs:
def __init__(__self__, *,
enable_integrity_monitoring: Optional[pulumi.Input[bool]] = None,
enable_secure_boot: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[bool] enable_integrity... | @pulumi.input_type
class ClusterNodeConfigShieldedInstanceConfigArgs:
| def __init__(__self__, *,
enable_integrity_monitoring: Optional[pulumi.Input[bool]] = None,
enable_secure_boot: Optional[pulumi.Input[bool]] = None):
"""
:param pulumi.Input[bool] enable_integrity_monitoring: Defines if the instance has integrity monitoring enabled.... | ", sandbox_type)
@property
@pulumi.getter(name="sandboxType")
def sandbox_type(self) -> pulumi.Input[str]:
"""
Which sandbox to use for pods in the node pool.
Accepted values are:
"""
return pulumi.get(self, "sandbox_type")
@sandbox_type.setter
def sandbox_t... | 110 | 110 | 367 | 16 | 94 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterNodeConfigShieldedInstanceConfigArgs | ClusterNodeConfigShieldedInstanceConfigArgs | 3,860 | 3,896 | 3,860 | 3,861 | 793f94aa3083c050348ec15b46981e82729cc7a9 | bigcode/the-stack | train |
e550c5689bcb2fe74840bbd3 | train | class | @pulumi.input_type
class AwsClusterControlPlaneAwsServicesAuthenticationArgs:
def __init__(__self__, *,
role_arn: pulumi.Input[str],
role_session_name: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] role_arn: Required. The Amazon Resource Name (AR... | @pulumi.input_type
class AwsClusterControlPlaneAwsServicesAuthenticationArgs:
| def __init__(__self__, *,
role_arn: pulumi.Input[str],
role_session_name: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] role_arn: Required. The Amazon Resource Name (ARN) of the role that the Anthos Multi-Cloud API will assume when managing AWS r... | all underlying managed AWS resources. Specify at most 50 pairs containing alphanumerics, spaces, and symbols (.+-=_:@/). Keys can be up to 127 Unicode characters. Values can be up to 255 Unicode characters.
"""
return pulumi.get(self, "tags")
@tags.setter
def tags(self, value: Optional[pulumi.... | 116 | 116 | 387 | 16 | 100 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AwsClusterControlPlaneAwsServicesAuthenticationArgs | AwsClusterControlPlaneAwsServicesAuthenticationArgs | 384 | 419 | 384 | 385 | 80489569a2904b4fc86fdb9669e367ee947ba723 | bigcode/the-stack | train |
7157331118a722eaeaf241d4 | train | class | @pulumi.input_type
class AwsClusterControlPlaneRootVolumeArgs:
def __init__(__self__, *,
iops: Optional[pulumi.Input[int]] = None,
kms_key_arn: Optional[pulumi.Input[str]] = None,
size_gib: Optional[pulumi.Input[int]] = None,
volume_type: Optional[... | @pulumi.input_type
class AwsClusterControlPlaneRootVolumeArgs:
| def __init__(__self__, *,
iops: Optional[pulumi.Input[int]] = None,
kms_key_arn: Optional[pulumi.Input[str]] = None,
size_gib: Optional[pulumi.Input[int]] = None,
volume_type: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.I... | AWS Secret Manager secret that contains the HTTP(S) proxy configuration.
"""
pulumi.set(__self__, "secret_arn", secret_arn)
pulumi.set(__self__, "secret_version", secret_version)
@property
@pulumi.getter(name="secretArn")
def secret_arn(self) -> pulumi.Input[str]:
"""
... | 248 | 248 | 828 | 15 | 233 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AwsClusterControlPlaneRootVolumeArgs | AwsClusterControlPlaneRootVolumeArgs | 574 | 642 | 574 | 575 | 98ad6e67177fa6e4cd341f25c9d940ed80a5620d | bigcode/the-stack | train |
c4d2d49b644baa4be7501b3d | train | class | @pulumi.input_type
class ClusterNodePoolNetworkConfigArgs:
def __init__(__self__, *,
pod_range: pulumi.Input[str],
create_pod_range: Optional[pulumi.Input[bool]] = None,
pod_ipv4_cidr_block: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Inp... | @pulumi.input_type
class ClusterNodePoolNetworkConfigArgs:
| def __init__(__self__, *,
pod_range: pulumi.Input[str],
create_pod_range: Optional[pulumi.Input[bool]] = None,
pod_ipv4_cidr_block: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] pod_range: The ID of the secondary range for pod IP... | umi.Input[bool]] = None,
auto_upgrade: Optional[pulumi.Input[bool]] = None):
if auto_repair is not None:
pulumi.set(__self__, "auto_repair", auto_repair)
if auto_upgrade is not None:
pulumi.set(__self__, "auto_upgrade", auto_upgrade)
@property
@pulumi.ge... | 241 | 241 | 804 | 14 | 227 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterNodePoolNetworkConfigArgs | ClusterNodePoolNetworkConfigArgs | 4,260 | 4,311 | 4,260 | 4,261 | 3ba06ca9d78cf695e33c763f035b7edc146e4f15 | bigcode/the-stack | train |
c0727a77f786f5f3e5921746 | train | class | @pulumi.input_type
class AwsClusterNetworkingArgs:
def __init__(__self__, *,
pod_address_cidr_blocks: pulumi.Input[Sequence[pulumi.Input[str]]],
service_address_cidr_blocks: pulumi.Input[Sequence[pulumi.Input[str]]],
vpc_id: pulumi.Input[str]):
"""
... | @pulumi.input_type
class AwsClusterNetworkingArgs:
| def __init__(__self__, *,
pod_address_cidr_blocks: pulumi.Input[Sequence[pulumi.Input[str]]],
service_address_cidr_blocks: pulumi.Input[Sequence[pulumi.Input[str]]],
vpc_id: pulumi.Input[str]):
"""
:param pulumi.Input[Sequence[pulumi.Input[str]]] po... | not None:
pulumi.set(__self__, "project", project)
@property
@pulumi.getter
def membership(self) -> Optional[pulumi.Input[str]]:
"""
-
The name of the managed Hub Membership resource associated to this cluster. Membership names are formatted as projects/<project-number>... | 206 | 206 | 689 | 12 | 194 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AwsClusterNetworkingArgs | AwsClusterNetworkingArgs | 708 | 757 | 708 | 709 | 737d55d5ffeba7ea5466527592bbf61c1d752b76 | bigcode/the-stack | train |
58d2ee12a0d9fb377006b36f | train | class | @pulumi.input_type
class ClusterIpAllocationPolicyArgs:
def __init__(__self__, *,
cluster_ipv4_cidr_block: Optional[pulumi.Input[str]] = None,
cluster_secondary_range_name: Optional[pulumi.Input[str]] = None,
services_ipv4_cidr_block: Optional[pulumi.Input[str]] = ... | @pulumi.input_type
class ClusterIpAllocationPolicyArgs:
| def __init__(__self__, *,
cluster_ipv4_cidr_block: Optional[pulumi.Input[str]] = None,
cluster_secondary_range_name: Optional[pulumi.Input[str]] = None,
services_ipv4_cidr_block: Optional[pulumi.Input[str]] = None,
services_secondary_range_name: Op... | @cluster_dns.setter
def cluster_dns(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "cluster_dns", value)
@property
@pulumi.getter(name="clusterDnsDomain")
def cluster_dns_domain(self) -> Optional[pulumi.Input[str]]:
"""
The suffix used for all cluster service recor... | 256 | 256 | 1,358 | 13 | 243 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterIpAllocationPolicyArgs | ClusterIpAllocationPolicyArgs | 2,689 | 2,783 | 2,689 | 2,690 | 8db9fda1ef326a8a69e6468c6dec119a56638cf1 | bigcode/the-stack | train |
c161285301d1012eac2468bb | train | class | @pulumi.input_type
class NodePoolAutoscalingArgs:
def __init__(__self__, *,
max_node_count: pulumi.Input[int],
min_node_count: pulumi.Input[int]):
"""
:param pulumi.Input[int] max_node_count: Maximum number of nodes in the NodePool. Must be >= min_node_count.
... | @pulumi.input_type
class NodePoolAutoscalingArgs:
| def __init__(__self__, *,
max_node_count: pulumi.Input[int],
min_node_count: pulumi.Input[int]):
"""
:param pulumi.Input[int] max_node_count: Maximum number of nodes in the NodePool. Must be >= min_node_count.
:param pulumi.Input[int] min_node_count: Minimum... | (self) -> Optional[pulumi.Input[str]]:
"""
The workload pool to attach all Kubernetes service accounts to. Currently, the only supported identity namespace is the project of the cluster.
"""
return pulumi.get(self, "workload_pool")
@workload_pool.setter
def workload_pool(self, v... | 101 | 101 | 338 | 13 | 88 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | NodePoolAutoscalingArgs | NodePoolAutoscalingArgs | 5,565 | 5,601 | 5,565 | 5,566 | e1750a72322dbba85895c2326176f88e0c7ef5f2 | bigcode/the-stack | train |
8c7eac941edf78423298f4ef | train | class | @pulumi.input_type
class AwsClusterControlPlaneMainVolumeArgs:
def __init__(__self__, *,
iops: Optional[pulumi.Input[int]] = None,
kms_key_arn: Optional[pulumi.Input[str]] = None,
size_gib: Optional[pulumi.Input[int]] = None,
volume_type: Optional[... | @pulumi.input_type
class AwsClusterControlPlaneMainVolumeArgs:
| def __init__(__self__, *,
iops: Optional[pulumi.Input[int]] = None,
kms_key_arn: Optional[pulumi.Input[str]] = None,
size_gib: Optional[pulumi.Input[int]] = None,
volume_type: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.I... | init__(__self__, *,
kms_key_arn: pulumi.Input[str]):
"""
:param pulumi.Input[str] kms_key_arn: Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS region where ... | 248 | 248 | 828 | 15 | 233 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AwsClusterControlPlaneMainVolumeArgs | AwsClusterControlPlaneMainVolumeArgs | 466 | 534 | 466 | 467 | ceb696f311cd47bb6a935ab3c919616c53649d7c | bigcode/the-stack | train |
592763fbe673dea3661018d6 | train | class | @pulumi.input_type
class AzureClusterNetworkingArgs:
def __init__(__self__, *,
pod_address_cidr_blocks: pulumi.Input[Sequence[pulumi.Input[str]]],
service_address_cidr_blocks: pulumi.Input[Sequence[pulumi.Input[str]]],
virtual_network_id: pulumi.Input[str]):
... | @pulumi.input_type
class AzureClusterNetworkingArgs:
| def __init__(__self__, *,
pod_address_cidr_blocks: pulumi.Input[Sequence[pulumi.Input[str]]],
service_address_cidr_blocks: pulumi.Input[Sequence[pulumi.Input[str]]],
virtual_network_id: pulumi.Input[str]):
"""
:param pulumi.Input[Sequence[pulumi.Inp... | >/locations/global/membership/<cluster-id>.
:param pulumi.Input[str] project: The project for the resource
"""
if membership is not None:
pulumi.set(__self__, "membership", membership)
if project is not None:
pulumi.set(__self__, "project", project)
@property... | 256 | 256 | 875 | 12 | 244 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AzureClusterNetworkingArgs | AzureClusterNetworkingArgs | 1,589 | 1,638 | 1,589 | 1,590 | a54b98faaa8651eafaa1da43c6a3c4d0bf773f8b | bigcode/the-stack | train |
d85f6229a7b719e28712b078 | train | class | @pulumi.input_type
class ClusterDnsConfigArgs:
def __init__(__self__, *,
cluster_dns: Optional[pulumi.Input[str]] = None,
cluster_dns_domain: Optional[pulumi.Input[str]] = None,
cluster_dns_scope: Optional[pulumi.Input[str]] = None):
"""
:param pulu... | @pulumi.input_type
class ClusterDnsConfigArgs:
| def __init__(__self__, *,
cluster_dns: Optional[pulumi.Input[str]] = None,
cluster_dns_domain: Optional[pulumi.Input[str]] = None,
cluster_dns_scope: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] cluster_dns: Which in-cluster DNS... | of the Istio addon, which makes it easy to set up Istio for services in a
cluster. It is disabled by default. Set `disabled = false` to enable.
"""
pulumi.set(__self__, "disabled", disabled)
@property
@pulumi.getter
def disabled(self) -> pulumi.Input[bool]:
"""
... | 171 | 171 | 571 | 12 | 159 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterDnsConfigArgs | ClusterDnsConfigArgs | 2,634 | 2,686 | 2,634 | 2,635 | 63193831beff731d0e62962a086d0a2abbd34543 | bigcode/the-stack | train |
3719392f471ae523213e988a | train | class | @pulumi.input_type
class AzureClusterControlPlaneArgs:
def __init__(__self__, *,
ssh_config: pulumi.Input['AzureClusterControlPlaneSshConfigArgs'],
subnet_id: pulumi.Input[str],
version: pulumi.Input[str],
database_encryption: Optional[pulumi.Input... | @pulumi.input_type
class AzureClusterControlPlaneArgs:
| def __init__(__self__, *,
ssh_config: pulumi.Input['AzureClusterControlPlaneSshConfigArgs'],
subnet_id: pulumi.Input[str],
version: pulumi.Input[str],
database_encryption: Optional[pulumi.Input['AzureClusterControlPlaneDatabaseEncryptionArgs']] = N... | on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
"""
return pulumi.get(self, "admin_users")
@admin_users.setter
def admin_users(self, value: pulumi.Input[Sequence[pulumi.Input['AzureClusterAuthorizationAdminUserArgs']]]):
pulumi.set(self, "ad... | 256 | 256 | 2,086 | 13 | 243 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AzureClusterControlPlaneArgs | AzureClusterControlPlaneArgs | 1,220 | 1,381 | 1,220 | 1,221 | 1aa382172cf84ebb65affcb63901fcd303b94da3 | bigcode/the-stack | train |
e11c2bf3b11b372a78df21bd | train | class | @pulumi.input_type
class ClusterDefaultSnatStatusArgs:
def __init__(__self__, *,
disabled: pulumi.Input[bool]):
"""
:param pulumi.Input[bool] disabled: The status of the Istio addon, which makes it easy to set up Istio for services in a
cluster. It is disabled by defa... | @pulumi.input_type
class ClusterDefaultSnatStatusArgs:
| def __init__(__self__, *,
disabled: pulumi.Input[bool]):
"""
:param pulumi.Input[bool] disabled: The status of the Istio addon, which makes it easy to set up Istio for services in a
cluster. It is disabled by default. Set `disabled = false` to enable.
"""
... | more information.
"""
return pulumi.get(self, "key_name")
@key_name.setter
def key_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "key_name", value)
@pulumi.input_type
class ClusterDefaultSnatStatusArgs:
| 64 | 64 | 206 | 14 | 50 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterDefaultSnatStatusArgs | ClusterDefaultSnatStatusArgs | 2,610 | 2,631 | 2,610 | 2,611 | 8e8b90aae3f6481c7bf11affb801965a10a33def | bigcode/the-stack | train |
9fd2ffcf6c3b70271636734f | train | class | @pulumi.input_type
class AwsClusterControlPlaneConfigEncryptionArgs:
def __init__(__self__, *,
kms_key_arn: pulumi.Input[str]):
"""
:param pulumi.Input[str] kms_key_arn: Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If no... | @pulumi.input_type
class AwsClusterControlPlaneConfigEncryptionArgs:
| def __init__(__self__, *,
kms_key_arn: pulumi.Input[str]):
"""
:param pulumi.Input[str] kms_key_arn: Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS reg... | it defaults to `multicloud-service-agent`.
"""
return pulumi.get(self, "role_session_name")
@role_session_name.setter
def role_session_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "role_session_name", value)
@pulumi.input_type
class AwsClusterControlPlaneConfigEncry... | 75 | 75 | 251 | 15 | 60 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AwsClusterControlPlaneConfigEncryptionArgs | AwsClusterControlPlaneConfigEncryptionArgs | 422 | 441 | 422 | 423 | 691fe26222ee05c708c416395e34a1489d491711 | bigcode/the-stack | train |
9828239f6835de251ed0a120 | train | class | @pulumi.input_type
class AwsClusterWorkloadIdentityConfigArgs:
def __init__(__self__, *,
identity_provider: Optional[pulumi.Input[str]] = None,
issuer_uri: Optional[pulumi.Input[str]] = None,
workload_pool: Optional[pulumi.Input[str]] = None):
if identity_p... | @pulumi.input_type
class AwsClusterWorkloadIdentityConfigArgs:
| def __init__(__self__, *,
identity_provider: Optional[pulumi.Input[str]] = None,
issuer_uri: Optional[pulumi.Input[str]] = None,
workload_pool: Optional[pulumi.Input[str]] = None):
if identity_provider is not None:
pulumi.set(__self__, "identity... | .Input[str]:
"""
Required. The VPC associated with the cluster. All component clusters (i.e. control plane and node pools) run on a single VPC. This field cannot be changed after creation.
"""
return pulumi.get(self, "vpc_id")
@vpc_id.setter
def vpc_id(self, value: pulumi.Input[... | 107 | 107 | 359 | 15 | 92 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AwsClusterWorkloadIdentityConfigArgs | AwsClusterWorkloadIdentityConfigArgs | 760 | 798 | 760 | 761 | 60daba942a0c25c991c6f4fc99dda18278fee6dd | bigcode/the-stack | train |
6495445783ac79a489593b85 | train | class | @pulumi.input_type
class ClusterNodeConfigTaintArgs:
def __init__(__self__, *,
effect: pulumi.Input[str],
key: pulumi.Input[str],
value: pulumi.Input[str]):
"""
:param pulumi.Input[str] effect: Effect for taint. Accepted values are `NO_SCHEDULE`, `P... | @pulumi.input_type
class ClusterNodeConfigTaintArgs:
| def __init__(__self__, *,
effect: pulumi.Input[str],
key: pulumi.Input[str],
value: pulumi.Input[str]):
"""
:param pulumi.Input[str] effect: Effect for taint. Accepted values are `NO_SCHEDULE`, `PREFER_NO_SCHEDULE`, and `NO_EXECUTE`.
:param ... | _monitoring", value)
@property
@pulumi.getter(name="enableSecureBoot")
def enable_secure_boot(self) -> Optional[pulumi.Input[bool]]:
"""
Defines if the instance has Secure Boot enabled.
"""
return pulumi.get(self, "enable_secure_boot")
@enable_secure_boot.setter
def... | 115 | 115 | 384 | 14 | 101 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterNodeConfigTaintArgs | ClusterNodeConfigTaintArgs | 3,899 | 3,948 | 3,899 | 3,900 | 81185f604d593e1a3b2dfd70fc6e0a675d9c9651 | bigcode/the-stack | train |
7277da491128bd32cb6b6599 | train | class | @pulumi.input_type
class NodePoolNodeConfigEphemeralStorageConfigArgs:
def __init__(__self__, *,
local_ssd_count: pulumi.Input[int]):
pulumi.set(__self__, "local_ssd_count", local_ssd_count)
@property
@pulumi.getter(name="localSsdCount")
def local_ssd_count(self) -> pulumi.Inpu... | @pulumi.input_type
class NodePoolNodeConfigEphemeralStorageConfigArgs:
| def __init__(__self__, *,
local_ssd_count: pulumi.Input[int]):
pulumi.set(__self__, "local_ssd_count", local_ssd_count)
@property
@pulumi.getter(name="localSsdCount")
def local_ssd_count(self) -> pulumi.Input[int]:
return pulumi.get(self, "local_ssd_count")
@local_... | @workload_metadata_config.setter
def workload_metadata_config(self, value: Optional[pulumi.Input['NodePoolNodeConfigWorkloadMetadataConfigArgs']]):
pulumi.set(self, "workload_metadata_config", value)
@pulumi.input_type
class NodePoolNodeConfigEphemeralStorageConfigArgs:
| 64 | 64 | 136 | 17 | 47 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | NodePoolNodeConfigEphemeralStorageConfigArgs | NodePoolNodeConfigEphemeralStorageConfigArgs | 5,976 | 5,989 | 5,976 | 5,977 | 1ee618c9c318838ab1b864aae1323bca622a6763 | bigcode/the-stack | train |
faa6e792022512a9e6dc21ef | train | class | @pulumi.input_type
class ClusterNotificationConfigArgs:
def __init__(__self__, *,
pubsub: pulumi.Input['ClusterNotificationConfigPubsubArgs']):
"""
:param pulumi.Input['ClusterNotificationConfigPubsubArgs'] pubsub: The pubsub config for the cluster's upgrade notifications.
"... | @pulumi.input_type
class ClusterNotificationConfigArgs:
| def __init__(__self__, *,
pubsub: pulumi.Input['ClusterNotificationConfigPubsubArgs']):
"""
:param pulumi.Input['ClusterNotificationConfigPubsubArgs'] pubsub: The pubsub config for the cluster's upgrade notifications.
"""
pulumi.set(__self__, "pubsub", pubsub)
@... | -> pulumi.Input[int]:
return pulumi.get(self, "max_unavailable")
@max_unavailable.setter
def max_unavailable(self, value: pulumi.Input[int]):
pulumi.set(self, "max_unavailable", value)
@pulumi.input_type
class ClusterNotificationConfigArgs:
| 64 | 64 | 175 | 12 | 52 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterNotificationConfigArgs | ClusterNotificationConfigArgs | 5,150 | 5,169 | 5,150 | 5,151 | cba2718373bb05085d8e4414260c354fc950b072 | bigcode/the-stack | train |
8411658b6377033622545d81 | train | class | @pulumi.input_type
class ClusterMonitoringConfigArgs:
def __init__(__self__, *,
enable_components: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[Sequence[pulumi.Input[str]]] enable_components: The GKE components exposing logs. `SYSTEM_COMPONENTS` and in beta pr... | @pulumi.input_type
class ClusterMonitoringConfigArgs:
| def __init__(__self__, *,
enable_components: pulumi.Input[Sequence[pulumi.Input[str]]]):
"""
:param pulumi.Input[Sequence[pulumi.Input[str]]] enable_components: The GKE components exposing logs. `SYSTEM_COMPONENTS` and in beta provider, both `SYSTEM_COMPONENTS` and `WORKLOADS` are s... | for users to identify CIDR blocks.
"""
return pulumi.get(self, "display_name")
@display_name.setter
def display_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "display_name", value)
@pulumi.input_type
class ClusterMonitoringConfigArgs:
| 67 | 67 | 224 | 12 | 55 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterMonitoringConfigArgs | ClusterMonitoringConfigArgs | 3,110 | 3,129 | 3,110 | 3,111 | 621cfffb1e7cbd4ed07548c39a88c491e054e52d | bigcode/the-stack | train |
cbf0be0199d80404123d6f1b | train | class | @pulumi.input_type
class ClusterVerticalPodAutoscalingArgs:
def __init__(__self__, *,
enabled: pulumi.Input[bool]):
"""
:param pulumi.Input[bool] enabled: Enable the PodSecurityPolicy controller for this cluster.
If enabled, pods must be valid under a PodSecurityPolic... | @pulumi.input_type
class ClusterVerticalPodAutoscalingArgs:
| def __init__(__self__, *,
enabled: pulumi.Input[bool]):
"""
:param pulumi.Input[bool] enabled: Enable the PodSecurityPolicy controller for this cluster.
If enabled, pods must be valid under a PodSecurityPolicy to be created.
"""
pulumi.set(__self__, "e... | (self) -> pulumi.Input[str]:
return pulumi.get(self, "dataset_id")
@dataset_id.setter
def dataset_id(self, value: pulumi.Input[str]):
pulumi.set(self, "dataset_id", value)
@pulumi.input_type
class ClusterVerticalPodAutoscalingArgs:
| 64 | 64 | 180 | 14 | 50 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterVerticalPodAutoscalingArgs | ClusterVerticalPodAutoscalingArgs | 5,518 | 5,539 | 5,518 | 5,519 | 4f7418acc6f227d84cc534b9836564351577d9d6 | bigcode/the-stack | train |
4fb8f4976c4dd9e5ac390885 | train | class | @pulumi.input_type
class AzureNodePoolConfigSshConfigArgs:
def __init__(__self__, *,
authorized_key: pulumi.Input[str]):
"""
:param pulumi.Input[str] authorized_key: Required. The SSH public key data for VMs managed by Anthos. This accepts the authorized_keys file format used in Ope... | @pulumi.input_type
class AzureNodePoolConfigSshConfigArgs:
| def __init__(__self__, *,
authorized_key: pulumi.Input[str]):
"""
:param pulumi.Input[str] authorized_key: Required. The SSH public key data for VMs managed by Anthos. This accepts the authorized_keys file format used in OpenSSH according to the sshd(8) manual page.
"""
... | return pulumi.get(self, "size_gib")
@size_gib.setter
def size_gib(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "size_gib", value)
@pulumi.input_type
class AzureNodePoolConfigSshConfigArgs:
| 64 | 64 | 211 | 16 | 48 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AzureNodePoolConfigSshConfigArgs | AzureNodePoolConfigSshConfigArgs | 1,812 | 1,831 | 1,812 | 1,813 | 3f6e8a3fc499ce45b472feda5914feda9010ab22 | bigcode/the-stack | train |
8a211b8624caf4ca073ee770 | train | class | @pulumi.input_type
class AwsNodePoolConfigConfigEncryptionArgs:
def __init__(__self__, *,
kms_key_arn: pulumi.Input[str]):
"""
:param pulumi.Input[str] kms_key_arn: Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not spe... | @pulumi.input_type
class AwsNodePoolConfigConfigEncryptionArgs:
| def __init__(__self__, *,
kms_key_arn: pulumi.Input[str]):
"""
:param pulumi.Input[str] kms_key_arn: Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS reg... | """
return pulumi.get(self, "taints")
@taints.setter
def taints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AwsNodePoolConfigTaintArgs']]]]):
pulumi.set(self, "taints", value)
@pulumi.input_type
class AwsNodePoolConfigConfigEncryptionArgs:
| 75 | 75 | 251 | 15 | 60 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AwsNodePoolConfigConfigEncryptionArgs | AwsNodePoolConfigConfigEncryptionArgs | 987 | 1,006 | 987 | 988 | f31be4f1a9aca59d1692175311791d8362c6cf32 | bigcode/the-stack | train |
1a8a5ea6fefa15f6abeb5b4a | train | class | @pulumi.input_type
class ClusterAddonsConfigIstioConfigArgs:
def __init__(__self__, *,
disabled: pulumi.Input[bool],
auth: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[bool] disabled: The status of the Istio addon, which makes it easy to set up Istio... | @pulumi.input_type
class ClusterAddonsConfigIstioConfigArgs:
| def __init__(__self__, *,
disabled: pulumi.Input[bool],
auth: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[bool] disabled: The status of the Istio addon, which makes it easy to set up Istio for services in a
cluster. It is disabled by ... | pulumi.Input[bool]:
"""
The status of the Istio addon, which makes it easy to set up Istio for services in a
cluster. It is disabled by default. Set `disabled = false` to enable.
"""
return pulumi.get(self, "disabled")
@disabled.setter
def disabled(self, value: pulumi.I... | 106 | 106 | 356 | 16 | 90 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterAddonsConfigIstioConfigArgs | ClusterAddonsConfigIstioConfigArgs | 2,203 | 2,240 | 2,203 | 2,204 | e1a17e05f6b3c67ef6a03a8049ed86285c44a563 | bigcode/the-stack | train |
faf5f71390b202d622f90973 | train | class | @pulumi.input_type
class ClusterNodeConfigWorkloadMetadataConfigArgs:
def __init__(__self__, *,
mode: pulumi.Input[str]):
"""
:param pulumi.Input[str] mode: How to expose the node metadata to the workload running on the node.
Accepted values are:
* UNSP... | @pulumi.input_type
class ClusterNodeConfigWorkloadMetadataConfigArgs:
| def __init__(__self__, *,
mode: pulumi.Input[str]):
"""
:param pulumi.Input[str] mode: How to expose the node metadata to the workload running on the node.
Accepted values are:
* UNSPECIFIED: Not Set
* GCE_METADATA: Expose all Compute Eng... | key.setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def value(self) -> pulumi.Input[str]:
"""
Value for taint.
"""
return pulumi.get(self, "value")
@value.setter
def value(self, value: pulumi.Input[... | 112 | 112 | 376 | 16 | 96 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterNodeConfigWorkloadMetadataConfigArgs | ClusterNodeConfigWorkloadMetadataConfigArgs | 3,951 | 3,978 | 3,951 | 3,952 | ae1c82eb4842a9b48ee30237a78527dd4e86699a | bigcode/the-stack | train |
5e207c4497da540ded2d9723 | train | class | @pulumi.input_type
class ClusterNodePoolNodeConfigSandboxConfigArgs:
def __init__(__self__, *,
sandbox_type: pulumi.Input[str]):
"""
:param pulumi.Input[str] sandbox_type: Which sandbox to use for pods in the node pool.
Accepted values are:
"""
pulumi.... | @pulumi.input_type
class ClusterNodePoolNodeConfigSandboxConfigArgs:
| def __init__(__self__, *,
sandbox_type: pulumi.Input[str]):
"""
:param pulumi.Input[str] sandbox_type: Which sandbox to use for pods in the node pool.
Accepted values are:
"""
pulumi.set(__self__, "sandbox_type", sandbox_type)
@property
@pulum... | , "sysctls")
@sysctls.setter
def sysctls(self, value: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
pulumi.set(self, "sysctls", value)
@pulumi.input_type
class ClusterNodePoolNodeConfigSandboxConfigArgs:
| 64 | 64 | 169 | 16 | 48 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterNodePoolNodeConfigSandboxConfigArgs | ClusterNodePoolNodeConfigSandboxConfigArgs | 4,978 | 4,999 | 4,978 | 4,979 | a666c70fe1a19af7048bc76da5c390bcfe3a1096 | bigcode/the-stack | train |
32d373cf513d720f57cee355 | train | class | @pulumi.input_type
class AzureClusterControlPlaneMainVolumeArgs:
def __init__(__self__, *,
size_gib: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] size_gib: Optional. The size of the disk, in GiBs. When unspecified, a default value is provided. See the specific r... | @pulumi.input_type
class AzureClusterControlPlaneMainVolumeArgs:
| def __init__(__self__, *,
size_gib: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] size_gib: Optional. The size of the disk, in GiBs. When unspecified, a default value is provided. See the specific reference in the parent resource.
"""
if size_gib ... | and hence specific version is not supported.
"""
return pulumi.get(self, "key_id")
@key_id.setter
def key_id(self, value: pulumi.Input[str]):
pulumi.set(self, "key_id", value)
@pulumi.input_type
class AzureClusterControlPlaneMainVolumeArgs:
| 67 | 67 | 225 | 15 | 52 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AzureClusterControlPlaneMainVolumeArgs | AzureClusterControlPlaneMainVolumeArgs | 1,406 | 1,426 | 1,406 | 1,407 | 75ad12f76e3b8e570489b2c7d2f951149f06cbde | bigcode/the-stack | train |
bee3e0190ebce5a9331ce8ed | train | class | @pulumi.input_type
class NodePoolNodeConfigGuestAcceleratorArgs:
def __init__(__self__, *,
count: pulumi.Input[int],
type: pulumi.Input[str],
gpu_partition_size: Optional[pulumi.Input[str]] = None):
pulumi.set(__self__, "count", count)
pulumi.set(__... | @pulumi.input_type
class NodePoolNodeConfigGuestAcceleratorArgs:
| def __init__(__self__, *,
count: pulumi.Input[int],
type: pulumi.Input[str],
gpu_partition_size: Optional[pulumi.Input[str]] = None):
pulumi.set(__self__, "count", count)
pulumi.set(__self__, "type", type)
if gpu_partition_size is not None:
... | ]):
pulumi.set(__self__, "enabled", enabled)
@property
@pulumi.getter
def enabled(self) -> pulumi.Input[bool]:
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: pulumi.Input[bool]):
pulumi.set(self, "enabled", value)
@pulumi.input_type
class NodePo... | 91 | 91 | 305 | 16 | 75 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | NodePoolNodeConfigGuestAcceleratorArgs | NodePoolNodeConfigGuestAcceleratorArgs | 6,008 | 6,044 | 6,008 | 6,009 | b764338cd314291676abb2ed1f56d1fb5793063d | bigcode/the-stack | train |
666985c00f5bad5b18a40e70 | train | class | @pulumi.input_type
class NodePoolNodeConfigGcfsConfigArgs:
def __init__(__self__, *,
enabled: pulumi.Input[bool]):
pulumi.set(__self__, "enabled", enabled)
@property
@pulumi.getter
def enabled(self) -> pulumi.Input[bool]:
return pulumi.get(self, "enabled")
@enabled... | @pulumi.input_type
class NodePoolNodeConfigGcfsConfigArgs:
| def __init__(__self__, *,
enabled: pulumi.Input[bool]):
pulumi.set(__self__, "enabled", enabled)
@property
@pulumi.getter
def enabled(self) -> pulumi.Input[bool]:
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: pulumi.Input[bool]):
... | pulumi.get(self, "local_ssd_count")
@local_ssd_count.setter
def local_ssd_count(self, value: pulumi.Input[int]):
pulumi.set(self, "local_ssd_count", value)
@pulumi.input_type
class NodePoolNodeConfigGcfsConfigArgs:
| 64 | 64 | 108 | 16 | 48 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | NodePoolNodeConfigGcfsConfigArgs | NodePoolNodeConfigGcfsConfigArgs | 5,992 | 6,005 | 5,992 | 5,993 | 6d3a69bbb8b5776d17e0c54056ce133a6ecba6b1 | bigcode/the-stack | train |
094ff8c7956401e6002ff711 | train | class | @pulumi.input_type
class ClusterClusterTelemetryArgs:
def __init__(__self__, *,
type: pulumi.Input[str]):
"""
:param pulumi.Input[str] type: The accelerator type resource to expose to this instance. E.g. `nvidia-tesla-k80`.
"""
pulumi.set(__self__, "type", type)
... | @pulumi.input_type
class ClusterClusterTelemetryArgs:
| def __init__(__self__, *,
type: pulumi.Input[str]):
"""
:param pulumi.Input[str] type: The accelerator type resource to expose to this instance. E.g. `nvidia-tesla-k80`.
"""
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def type(self) -> pu... | Minimum amount of the resource in the cluster.
"""
return pulumi.get(self, "minimum")
@minimum.setter
def minimum(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "minimum", value)
@pulumi.input_type
class ClusterClusterTelemetryArgs:
| 64 | 64 | 164 | 12 | 52 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterClusterTelemetryArgs | ClusterClusterTelemetryArgs | 2,526 | 2,545 | 2,526 | 2,527 | 9a4f9b71330e4046e57ee0d5370c1adfd0e365ab | bigcode/the-stack | train |
662527cc0e75dde57fb13ad9 | train | class | @pulumi.input_type
class ClusterReleaseChannelArgs:
def __init__(__self__, *,
channel: pulumi.Input[str]):
"""
:param pulumi.Input[str] channel: The selected release channel.
Accepted values are:
* UNSPECIFIED: Not set.
* RAPID: Weekly up... | @pulumi.input_type
class ClusterReleaseChannelArgs:
| def __init__(__self__, *,
channel: pulumi.Input[str]):
"""
:param pulumi.Input[str] channel: The selected release channel.
Accepted values are:
* UNSPECIFIED: Not set.
* RAPID: Weekly upgrade cadence; Early testers and developers who requ... | -> pulumi.Input[bool]:
"""
Enable the PodSecurityPolicy controller for this cluster.
If enabled, pods must be valid under a PodSecurityPolicy to be created.
"""
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: pulumi.Input[bool]):
pulu... | 90 | 90 | 300 | 12 | 78 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterReleaseChannelArgs | ClusterReleaseChannelArgs | 5,406 | 5,435 | 5,406 | 5,407 | f4cebe6c9dd1f95fbaac838b89c567e77edf8c5e | bigcode/the-stack | train |
ddb94b23546bf11d9ecc69a1 | train | class | @pulumi.input_type
class ClusterAddonsConfigNetworkPolicyConfigArgs:
def __init__(__self__, *,
disabled: pulumi.Input[bool]):
"""
:param pulumi.Input[bool] disabled: The status of the Istio addon, which makes it easy to set up Istio for services in a
cluster. It is di... | @pulumi.input_type
class ClusterAddonsConfigNetworkPolicyConfigArgs:
| def __init__(__self__, *,
disabled: pulumi.Input[bool]):
"""
:param pulumi.Input[bool] disabled: The status of the Istio addon, which makes it easy to set up Istio for services in a
cluster. It is disabled by default. Set `disabled = false` to enable.
"""
... | PodSecurityPolicy to be created.
"""
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: pulumi.Input[bool]):
pulumi.set(self, "enabled", value)
@pulumi.input_type
class ClusterAddonsConfigNetworkPolicyConfigArgs:
| 64 | 64 | 208 | 16 | 48 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterAddonsConfigNetworkPolicyConfigArgs | ClusterAddonsConfigNetworkPolicyConfigArgs | 2,267 | 2,288 | 2,267 | 2,268 | 3969ae01cd6328a6114fcc27217cf90a26f009be | bigcode/the-stack | train |
bf4043718838b4ad0d607bd3 | train | class | @pulumi.input_type
class AwsNodePoolConfigTaintArgs:
def __init__(__self__, *,
effect: pulumi.Input[str],
key: pulumi.Input[str],
value: pulumi.Input[str]):
"""
:param pulumi.Input[str] effect: Required. The taint effect. Possible values: EFFECT_UNS... | @pulumi.input_type
class AwsNodePoolConfigTaintArgs:
| def __init__(__self__, *,
effect: pulumi.Input[str],
key: pulumi.Input[str],
value: pulumi.Input[str]):
"""
:param pulumi.Input[str] effect: Required. The taint effect. Possible values: EFFECT_UNSPECIFIED, NO_SCHEDULE, PREFER_NO_SCHEDULE, NO_EXECUTE... | _pair)
@property
@pulumi.getter(name="ec2KeyPair")
def ec2_key_pair(self) -> pulumi.Input[str]:
"""
Required. The name of the EC2 key pair used to login into cluster machines.
"""
return pulumi.get(self, "ec2_key_pair")
@ec2_key_pair.setter
def ec2_key_pair(self, va... | 120 | 120 | 403 | 15 | 105 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AwsNodePoolConfigTaintArgs | AwsNodePoolConfigTaintArgs | 1,102 | 1,151 | 1,102 | 1,103 | 43ba30f33324268d21e14502c6aa0130dd69fcff | bigcode/the-stack | train |
e0956ef2c3733f2a0e8249f0 | train | class | @pulumi.input_type
class AwsClusterControlPlaneProxyConfigArgs:
def __init__(__self__, *,
secret_arn: pulumi.Input[str],
secret_version: pulumi.Input[str]):
"""
:param pulumi.Input[str] secret_arn: The ARN of the AWS Secret Manager secret that contains the HTTP(S) p... | @pulumi.input_type
class AwsClusterControlPlaneProxyConfigArgs:
| def __init__(__self__, *,
secret_arn: pulumi.Input[str],
secret_version: pulumi.Input[str]):
"""
:param pulumi.Input[str] secret_arn: The ARN of the AWS Secret Manager secret that contains the HTTP(S) proxy configuration.
:param pulumi.Input[str] secret_vers... | . Type of the EBS volume. When unspecified, it defaults to GP2 volume. Possible values: VOLUME_TYPE_UNSPECIFIED, GP2, GP3
"""
return pulumi.get(self, "volume_type")
@volume_type.setter
def volume_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "volume_type", value)
@pul... | 96 | 96 | 323 | 15 | 81 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AwsClusterControlPlaneProxyConfigArgs | AwsClusterControlPlaneProxyConfigArgs | 537 | 571 | 537 | 538 | 74a3e8c1c797ca305cc41236f3d31f1456cee9af | bigcode/the-stack | train |
2dac0718509c2f4195ca6aa7 | train | class | @pulumi.input_type
class ClusterResourceUsageExportConfigBigqueryDestinationArgs:
def __init__(__self__, *,
dataset_id: pulumi.Input[str]):
pulumi.set(__self__, "dataset_id", dataset_id)
@property
@pulumi.getter(name="datasetId")
def dataset_id(self) -> pulumi.Input[str]:
... | @pulumi.input_type
class ClusterResourceUsageExportConfigBigqueryDestinationArgs:
| def __init__(__self__, *,
dataset_id: pulumi.Input[str]):
pulumi.set(__self__, "dataset_id", dataset_id)
@property
@pulumi.getter(name="datasetId")
def dataset_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "dataset_id")
@dataset_id.setter
def dataset_i... | @enable_resource_consumption_metering.setter
def enable_resource_consumption_metering(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enable_resource_consumption_metering", value)
@pulumi.input_type
class ClusterResourceUsageExportConfigBigqueryDestinationArgs:
| 64 | 64 | 118 | 17 | 47 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterResourceUsageExportConfigBigqueryDestinationArgs | ClusterResourceUsageExportConfigBigqueryDestinationArgs | 5,502 | 5,515 | 5,502 | 5,503 | 7afd1246ca32b7b8e8ad342abcb68ab5e24c46fe | bigcode/the-stack | train |
618b7fda0e7ec800da1979a4 | train | class | @pulumi.input_type
class ClusterNodeConfigLinuxNodeConfigArgs:
def __init__(__self__, *,
sysctls: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
"""
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] sysctls: The Linux kernel parameters to be applied to the nodes
a... | @pulumi.input_type
class ClusterNodeConfigLinuxNodeConfigArgs:
| def __init__(__self__, *,
sysctls: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
"""
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] sysctls: The Linux kernel parameters to be applied to the nodes
and all pods running on the nodes. Specified as a map from the k... | """
return pulumi.get(self, "cpu_cfs_quota_period")
@cpu_cfs_quota_period.setter
def cpu_cfs_quota_period(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "cpu_cfs_quota_period", value)
@pulumi.input_type
class ClusterNodeConfigLinuxNodeConfigArgs:
| 78 | 78 | 262 | 15 | 63 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterNodeConfigLinuxNodeConfigArgs | ClusterNodeConfigLinuxNodeConfigArgs | 3,810 | 3,833 | 3,810 | 3,811 | 3de19105c408f23cd33a765f64f24f3ed27991c1 | bigcode/the-stack | train |
face7f90450fe0c195d4afc0 | train | class | @pulumi.input_type
class AzureNodePoolConfigRootVolumeArgs:
def __init__(__self__, *,
size_gib: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] size_gib: Optional. The size of the disk, in GiBs. When unspecified, a default value is provided. See the specific refere... | @pulumi.input_type
class AzureNodePoolConfigRootVolumeArgs:
| def __init__(__self__, *,
size_gib: Optional[pulumi.Input[int]] = None):
"""
:param pulumi.Input[int] size_gib: Optional. The size of the disk, in GiBs. When unspecified, a default value is provided. See the specific reference in the parent resource.
"""
if size_gib ... | _DS2_v2`.
"""
return pulumi.get(self, "vm_size")
@vm_size.setter
def vm_size(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "vm_size", value)
@pulumi.input_type
class AzureNodePoolConfigRootVolumeArgs:
| 67 | 67 | 225 | 15 | 52 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AzureNodePoolConfigRootVolumeArgs | AzureNodePoolConfigRootVolumeArgs | 1,789 | 1,809 | 1,789 | 1,790 | b64fcce14d6dfc3049fc92f3bc482e82c5db0a5a | bigcode/the-stack | train |
2e1398abeadc0d06f70c5adb | train | class | @pulumi.input_type
class NodePoolNodeConfigLinuxNodeConfigArgs:
def __init__(__self__, *,
sysctls: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
pulumi.set(__self__, "sysctls", sysctls)
@property
@pulumi.getter
def sysctls(self) -> pulumi.Input[Mapping[str, pulumi.Input[str]]... | @pulumi.input_type
class NodePoolNodeConfigLinuxNodeConfigArgs:
| def __init__(__self__, *,
sysctls: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
pulumi.set(__self__, "sysctls", sysctls)
@property
@pulumi.getter
def sysctls(self) -> pulumi.Input[Mapping[str, pulumi.Input[str]]]:
return pulumi.get(self, "sysctls")
@sysctls.sett... | _period")
@cpu_cfs_quota_period.setter
def cpu_cfs_quota_period(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "cpu_cfs_quota_period", value)
@pulumi.input_type
class NodePoolNodeConfigLinuxNodeConfigArgs:
| 64 | 64 | 145 | 16 | 48 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | NodePoolNodeConfigLinuxNodeConfigArgs | NodePoolNodeConfigLinuxNodeConfigArgs | 6,087 | 6,100 | 6,087 | 6,088 | e7b45413d750af789072b922dd4dbe7ce639b769 | bigcode/the-stack | train |
0cfd1fab98cea37251801cdc | train | class | @pulumi.input_type
class ClusterAddonsConfigGcePersistentDiskCsiDriverConfigArgs:
def __init__(__self__, *,
enabled: pulumi.Input[bool]):
"""
:param pulumi.Input[bool] enabled: Enable the PodSecurityPolicy controller for this cluster.
If enabled, pods must be valid un... | @pulumi.input_type
class ClusterAddonsConfigGcePersistentDiskCsiDriverConfigArgs:
| def __init__(__self__, *,
enabled: pulumi.Input[bool]):
"""
:param pulumi.Input[bool] enabled: Enable the PodSecurityPolicy controller for this cluster.
If enabled, pods must be valid under a PodSecurityPolicy to be created.
"""
pulumi.set(__self__, "e... | created.
"""
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: pulumi.Input[bool]):
pulumi.set(self, "enabled", value)
@pulumi.input_type
class ClusterAddonsConfigGcePersistentDiskCsiDriverConfigArgs:
| 64 | 64 | 187 | 21 | 43 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterAddonsConfigGcePersistentDiskCsiDriverConfigArgs | ClusterAddonsConfigGcePersistentDiskCsiDriverConfigArgs | 2,131 | 2,152 | 2,131 | 2,132 | dcdd762a681c0ee146f208eee9ba71e26908a68d | bigcode/the-stack | train |
def9e1c9ee24eb63776a5488 | train | class | @pulumi.input_type
class ClusterNodePoolArgs:
def __init__(__self__, *,
autoscaling: Optional[pulumi.Input['ClusterNodePoolAutoscalingArgs']] = None,
initial_node_count: Optional[pulumi.Input[int]] = None,
instance_group_urls: Optional[pulumi.Input[Sequence[pulumi.... | @pulumi.input_type
class ClusterNodePoolArgs:
| def __init__(__self__, *,
autoscaling: Optional[pulumi.Input['ClusterNodePoolAutoscalingArgs']] = None,
initial_node_count: Optional[pulumi.Input[int]] = None,
instance_group_urls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
managed... | Engine Metadata Servers. This feature can only be enabled if [workload identity](https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity) is enabled at the cluster level.
"""
pulumi.set(__self__, "mode", mode)
@property
@pulumi.getter
def mode(self) -> pulumi.Input[str]:
... | 256 | 256 | 2,384 | 12 | 244 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterNodePoolArgs | ClusterNodePoolArgs | 3,981 | 4,201 | 3,981 | 3,982 | 5a90a3d9cece3929b4eebc617de5e8319ccccf54 | bigcode/the-stack | train |
95466448ae79fb84a5668e8a | train | class | @pulumi.input_type
class ClusterMaintenancePolicyRecurringWindowArgs:
def __init__(__self__, *,
end_time: pulumi.Input[str],
recurrence: pulumi.Input[str],
start_time: pulumi.Input[str]):
pulumi.set(__self__, "end_time", end_time)
pulumi.set(__self_... | @pulumi.input_type
class ClusterMaintenancePolicyRecurringWindowArgs:
| def __init__(__self__, *,
end_time: pulumi.Input[str],
recurrence: pulumi.Input[str],
start_time: pulumi.Input[str]):
pulumi.set(__self__, "end_time", end_time)
pulumi.set(__self__, "recurrence", recurrence)
pulumi.set(__self__, "start_time"... | _name", value)
@property
@pulumi.getter(name="startTime")
def start_time(self) -> pulumi.Input[str]:
return pulumi.get(self, "start_time")
@start_time.setter
def start_time(self, value: pulumi.Input[str]):
pulumi.set(self, "start_time", value)
@pulumi.input_type
class ClusterMainte... | 87 | 87 | 291 | 14 | 73 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterMaintenancePolicyRecurringWindowArgs | ClusterMaintenancePolicyRecurringWindowArgs | 2,933 | 2,968 | 2,933 | 2,934 | ffe2ac391ea678d6412ebe6cb5d905fdc00771f6 | bigcode/the-stack | train |
6943dffbf95e5f894b25e16d | train | class | @pulumi.input_type
class ClusterDatabaseEncryptionArgs:
def __init__(__self__, *,
state: pulumi.Input[str],
key_name: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] state: `ENCRYPTED` or `DECRYPTED`
:param pulumi.Input[str] key_name: the k... | @pulumi.input_type
class ClusterDatabaseEncryptionArgs:
| def __init__(__self__, *,
state: pulumi.Input[str],
key_name: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] state: `ENCRYPTED` or `DECRYPTED`
:param pulumi.Input[str] key_name: the key to use to encrypt/decrypt secrets. See the [Database... | enabled)
@property
@pulumi.getter
def enabled(self) -> pulumi.Input[bool]:
"""
Enable the PodSecurityPolicy controller for this cluster.
If enabled, pods must be valid under a PodSecurityPolicy to be created.
"""
return pulumi.get(self, "enabled")
@enabled.sett... | 108 | 108 | 360 | 12 | 96 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterDatabaseEncryptionArgs | ClusterDatabaseEncryptionArgs | 2,572 | 2,607 | 2,572 | 2,573 | 4c5e5a194f27e9c64d53a6473f62d98089a4e8be | bigcode/the-stack | train |
b941b8362e45becadb807ba6 | train | class | @pulumi.input_type
class AwsClusterFleetArgs:
def __init__(__self__, *,
membership: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] membership: -
The name of the managed Hub Membership res... | @pulumi.input_type
class AwsClusterFleetArgs:
| def __init__(__self__, *,
membership: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] membership: -
The name of the managed Hub Membership resource associated to this cluster. Membership n... | def ec2_key_pair(self) -> pulumi.Input[str]:
"""
Required. The name of the EC2 key pair used to login into cluster machines.
"""
return pulumi.get(self, "ec2_key_pair")
@ec2_key_pair.setter
def ec2_key_pair(self, value: pulumi.Input[str]):
pulumi.set(self, "ec2_key_p... | 98 | 98 | 327 | 12 | 86 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AwsClusterFleetArgs | AwsClusterFleetArgs | 667 | 705 | 667 | 668 | 40deaec8f858129a910f5175bff94430c9d7dd5c | bigcode/the-stack | train |
c04a1b6fc8b5c59594eb988a | train | class | @pulumi.input_type
class ClusterMasterAuthorizedNetworksConfigCidrBlockArgs:
def __init__(__self__, *,
cidr_block: pulumi.Input[str],
display_name: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] cidr_block: External network that can access Kuberne... | @pulumi.input_type
class ClusterMasterAuthorizedNetworksConfigCidrBlockArgs:
| def __init__(__self__, *,
cidr_block: pulumi.Input[str],
display_name: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] cidr_block: External network that can access Kubernetes master through HTTPS.
Must be specified in CIDR notation.
... | External networks that can access the
Kubernetes cluster master through HTTPS.
"""
return pulumi.get(self, "cidr_blocks")
@cidr_blocks.setter
def cidr_blocks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterMasterAuthorizedNetworksConfigCidrBlockArgs']]]]):
... | 99 | 99 | 330 | 17 | 82 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterMasterAuthorizedNetworksConfigCidrBlockArgs | ClusterMasterAuthorizedNetworksConfigCidrBlockArgs | 3,070 | 3,107 | 3,070 | 3,071 | 3c6824655a00ada3023bb410147c1f4c8a924a0d | bigcode/the-stack | train |
4581b7099257038daef2e5f0 | train | class | @pulumi.input_type
class AwsClusterControlPlaneDatabaseEncryptionArgs:
def __init__(__self__, *,
kms_key_arn: pulumi.Input[str]):
"""
:param pulumi.Input[str] kms_key_arn: Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If ... | @pulumi.input_type
class AwsClusterControlPlaneDatabaseEncryptionArgs:
| def __init__(__self__, *,
kms_key_arn: pulumi.Input[str]):
"""
:param pulumi.Input[str] kms_key_arn: Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS reg... | where this cluster runs will be used.
"""
return pulumi.get(self, "kms_key_arn")
@kms_key_arn.setter
def kms_key_arn(self, value: pulumi.Input[str]):
pulumi.set(self, "kms_key_arn", value)
@pulumi.input_type
class AwsClusterControlPlaneDatabaseEncryptionArgs:
| 75 | 75 | 251 | 15 | 60 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AwsClusterControlPlaneDatabaseEncryptionArgs | AwsClusterControlPlaneDatabaseEncryptionArgs | 444 | 463 | 444 | 445 | 1e5f0e70bdb51b87bff7987b6089bc23bd4d71f4 | bigcode/the-stack | train |
6cc46367c9531525236c8090 | train | class | @pulumi.input_type
class AwsClusterControlPlaneArgs:
def __init__(__self__, *,
aws_services_authentication: pulumi.Input['AwsClusterControlPlaneAwsServicesAuthenticationArgs'],
config_encryption: pulumi.Input['AwsClusterControlPlaneConfigEncryptionArgs'],
database_... | @pulumi.input_type
class AwsClusterControlPlaneArgs:
| def __init__(__self__, *,
aws_services_authentication: pulumi.Input['AwsClusterControlPlaneAwsServicesAuthenticationArgs'],
config_encryption: pulumi.Input['AwsClusterControlPlaneConfigEncryptionArgs'],
database_encryption: pulumi.Input['AwsClusterControlPlaneDatab... | on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
"""
return pulumi.get(self, "admin_users")
@admin_users.setter
def admin_users(self, value: pulumi.Input[Sequence[pulumi.Input['AwsClusterAuthorizationAdminUserArgs']]]):
pulumi.set(self, "admi... | 256 | 256 | 2,691 | 13 | 243 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AwsClusterControlPlaneArgs | AwsClusterControlPlaneArgs | 175 | 381 | 175 | 176 | 4a100516b6b72a66adbb185bc94ca8c140c9dc8b | bigcode/the-stack | train |
542996460a32311d4eb3c658 | train | class | @pulumi.input_type
class ClusterNodePoolNodeConfigGcfsConfigArgs:
def __init__(__self__, *,
enabled: pulumi.Input[bool]):
"""
:param pulumi.Input[bool] enabled: Enable the PodSecurityPolicy controller for this cluster.
If enabled, pods must be valid under a PodSecurit... | @pulumi.input_type
class ClusterNodePoolNodeConfigGcfsConfigArgs:
| def __init__(__self__, *,
enabled: pulumi.Input[bool]):
"""
:param pulumi.Input[bool] enabled: Enable the PodSecurityPolicy controller for this cluster.
If enabled, pods must be valid under a PodSecurityPolicy to be created.
"""
pulumi.set(__self__, "e... | umi.get(self, "local_ssd_count")
@local_ssd_count.setter
def local_ssd_count(self, value: pulumi.Input[int]):
pulumi.set(self, "local_ssd_count", value)
@pulumi.input_type
class ClusterNodePoolNodeConfigGcfsConfigArgs:
| 64 | 64 | 183 | 17 | 47 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterNodePoolNodeConfigGcfsConfigArgs | ClusterNodePoolNodeConfigGcfsConfigArgs | 4,809 | 4,830 | 4,809 | 4,810 | 10ae33c89860971db1803f71dd32c61876c3d4e8 | bigcode/the-stack | train |
12f9702ab52eef716778933a | train | class | @pulumi.input_type
class ClusterNodePoolNodeConfigWorkloadMetadataConfigArgs:
def __init__(__self__, *,
mode: pulumi.Input[str]):
"""
:param pulumi.Input[str] mode: How to expose the node metadata to the workload running on the node.
Accepted values are:
... | @pulumi.input_type
class ClusterNodePoolNodeConfigWorkloadMetadataConfigArgs:
| def __init__(__self__, *,
mode: pulumi.Input[str]):
"""
:param pulumi.Input[str] mode: How to expose the node metadata to the workload running on the node.
Accepted values are:
* UNSPECIFIED: Not Set
* GCE_METADATA: Expose all Compute Eng... | .setter
def key(self, value: pulumi.Input[str]):
pulumi.set(self, "key", value)
@property
@pulumi.getter
def value(self) -> pulumi.Input[str]:
"""
Value for taint.
"""
return pulumi.get(self, "value")
@value.setter
def value(self, value: pulumi.Input[str... | 113 | 113 | 378 | 18 | 95 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterNodePoolNodeConfigWorkloadMetadataConfigArgs | ClusterNodePoolNodeConfigWorkloadMetadataConfigArgs | 5,093 | 5,120 | 5,093 | 5,094 | c46e25391b0eda12eda9e7fbcd3029e1fb4ba194 | bigcode/the-stack | train |
59994ce69917c7645d9f37e8 | train | class | @pulumi.input_type
class AzureNodePoolConfigArgs:
def __init__(__self__, *,
ssh_config: pulumi.Input['AzureNodePoolConfigSshConfigArgs'],
root_volume: Optional[pulumi.Input['AzureNodePoolConfigRootVolumeArgs']] = None,
tags: Optional[pulumi.Input[Mapping[str, pulum... | @pulumi.input_type
class AzureNodePoolConfigArgs:
| def __init__(__self__, *,
ssh_config: pulumi.Input['AzureNodePoolConfigSshConfigArgs'],
root_volume: Optional[pulumi.Input['AzureNodePoolConfigRootVolumeArgs']] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
vm_size: ... | >= 1 and <= max_node_count.
"""
pulumi.set(__self__, "max_node_count", max_node_count)
pulumi.set(__self__, "min_node_count", min_node_count)
@property
@pulumi.getter(name="maxNodeCount")
def max_node_count(self) -> pulumi.Input[int]:
"""
Required. Maximum number of... | 256 | 256 | 914 | 13 | 243 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AzureNodePoolConfigArgs | AzureNodePoolConfigArgs | 1,719 | 1,786 | 1,719 | 1,720 | 0b0d2a86fa870fb158cc01d92917e35ecdbf2c20 | bigcode/the-stack | train |
62f4b271868f3e6fb65375c3 | train | class | @pulumi.input_type
class ClusterClusterAutoscalingArgs:
def __init__(__self__, *,
enabled: pulumi.Input[bool],
auto_provisioning_defaults: Optional[pulumi.Input['ClusterClusterAutoscalingAutoProvisioningDefaultsArgs']] = None,
autoscaling_profile: Optional[pulumi.I... | @pulumi.input_type
class ClusterClusterAutoscalingArgs:
| def __init__(__self__, *,
enabled: pulumi.Input[bool],
auto_provisioning_defaults: Optional[pulumi.Input['ClusterClusterAutoscalingAutoProvisioningDefaultsArgs']] = None,
autoscaling_profile: Optional[pulumi.Input[str]] = None,
resource_limits: Opt... | pulumi.get(self, "disabled")
@disabled.setter
def disabled(self, value: pulumi.Input[bool]):
pulumi.set(self, "disabled", value)
@pulumi.input_type
class ClusterAuthenticatorGroupsConfigArgs:
def __init__(__self__, *,
security_group: pulumi.Input[str]):
"""
:para... | 256 | 256 | 1,016 | 13 | 243 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterClusterAutoscalingArgs | ClusterClusterAutoscalingArgs | 2,313 | 2,396 | 2,313 | 2,314 | b6bf177318b1c4386b7f1cd1b5683a4b2c0ccd0f | bigcode/the-stack | train |
35526bbf83b582625d93569b | train | class | @pulumi.input_type
class ClusterNodePoolUpgradeSettingsArgs:
def __init__(__self__, *,
max_surge: pulumi.Input[int],
max_unavailable: pulumi.Input[int]):
pulumi.set(__self__, "max_surge", max_surge)
pulumi.set(__self__, "max_unavailable", max_unavailable)
@prop... | @pulumi.input_type
class ClusterNodePoolUpgradeSettingsArgs:
| def __init__(__self__, *,
max_surge: pulumi.Input[int],
max_unavailable: pulumi.Input[int]):
pulumi.set(__self__, "max_surge", max_surge)
pulumi.set(__self__, "max_unavailable", max_unavailable)
@property
@pulumi.getter(name="maxSurge")
def max_surge(se... | -to/workload-identity) is enabled at the cluster level.
"""
return pulumi.get(self, "mode")
@mode.setter
def mode(self, value: pulumi.Input[str]):
pulumi.set(self, "mode", value)
@pulumi.input_type
class ClusterNodePoolUpgradeSettingsArgs:
| 67 | 67 | 224 | 14 | 53 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterNodePoolUpgradeSettingsArgs | ClusterNodePoolUpgradeSettingsArgs | 5,123 | 5,147 | 5,123 | 5,124 | a2aeda0463ed4d0cd976d11bdedafc3021e0fc98 | bigcode/the-stack | train |
544bcb031eee28f3027d81e8 | train | class | @pulumi.input_type
class ClusterNodePoolNodeConfigLinuxNodeConfigArgs:
def __init__(__self__, *,
sysctls: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
"""
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] sysctls: The Linux kernel parameters to be applied to the nodes
... | @pulumi.input_type
class ClusterNodePoolNodeConfigLinuxNodeConfigArgs:
| def __init__(__self__, *,
sysctls: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
"""
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] sysctls: The Linux kernel parameters to be applied to the nodes
and all pods running on the nodes. Specified as a map from the k... | """
return pulumi.get(self, "cpu_cfs_quota_period")
@cpu_cfs_quota_period.setter
def cpu_cfs_quota_period(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "cpu_cfs_quota_period", value)
@pulumi.input_type
class ClusterNodePoolNodeConfigLinuxNodeConfigArgs:
| 79 | 79 | 264 | 17 | 62 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterNodePoolNodeConfigLinuxNodeConfigArgs | ClusterNodePoolNodeConfigLinuxNodeConfigArgs | 4,952 | 4,975 | 4,952 | 4,953 | f900301dfdfc05f7eaf4477cb746b81d706e191c | bigcode/the-stack | train |
6d7e34ecfa08591dcb134ec3 | train | class | @pulumi.input_type
class NodePoolNodeConfigArgs:
def __init__(__self__, *,
boot_disk_kms_key: Optional[pulumi.Input[str]] = None,
disk_size_gb: Optional[pulumi.Input[int]] = None,
disk_type: Optional[pulumi.Input[str]] = None,
ephemeral_storage_con... | @pulumi.input_type
class NodePoolNodeConfigArgs:
| def __init__(__self__, *,
boot_disk_kms_key: Optional[pulumi.Input[str]] = None,
disk_size_gb: Optional[pulumi.Input[int]] = None,
disk_type: Optional[pulumi.Input[str]] = None,
ephemeral_storage_config: Optional[pulumi.Input['NodePoolNodeConfigEph... | ="podRange")
def pod_range(self) -> pulumi.Input[str]:
return pulumi.get(self, "pod_range")
@pod_range.setter
def pod_range(self, value: pulumi.Input[str]):
pulumi.set(self, "pod_range", value)
@property
@pulumi.getter(name="createPodRange")
def create_pod_range(self) -> Option... | 256 | 256 | 3,172 | 13 | 243 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | NodePoolNodeConfigArgs | NodePoolNodeConfigArgs | 5,683 | 5,973 | 5,683 | 5,684 | b51dc121f3737456233dbd889b5426f6f4395e61 | bigcode/the-stack | train |
757440ec2b1ee33da2d4e805 | train | class | @pulumi.input_type
class ClusterMasterAuthClientCertificateConfigArgs:
def __init__(__self__, *,
issue_client_certificate: pulumi.Input[bool]):
pulumi.set(__self__, "issue_client_certificate", issue_client_certificate)
@property
@pulumi.getter(name="issueClientCertificate")
def... | @pulumi.input_type
class ClusterMasterAuthClientCertificateConfigArgs:
| def __init__(__self__, *,
issue_client_certificate: pulumi.Input[bool]):
pulumi.set(__self__, "issue_client_certificate", issue_client_certificate)
@property
@pulumi.getter(name="issueClientCertificate")
def issue_client_certificate(self) -> pulumi.Input[bool]:
return p... | return pulumi.get(self, "cluster_ca_certificate")
@cluster_ca_certificate.setter
def cluster_ca_certificate(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "cluster_ca_certificate", value)
@pulumi.input_type
class ClusterMasterAuthClientCertificateConfigArgs:
| 64 | 64 | 128 | 15 | 49 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterMasterAuthClientCertificateConfigArgs | ClusterMasterAuthClientCertificateConfigArgs | 3,029 | 3,042 | 3,029 | 3,030 | 0e3194add30b31552a11a84aaeadc864ce0b5922 | bigcode/the-stack | train |
e97e341b312563e20b654bfe | train | class | @pulumi.input_type
class ClusterNodeConfigEphemeralStorageConfigArgs:
def __init__(__self__, *,
local_ssd_count: pulumi.Input[int]):
"""
:param pulumi.Input[int] local_ssd_count: Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. Each local SSD is 375 GB in... | @pulumi.input_type
class ClusterNodeConfigEphemeralStorageConfigArgs:
| def __init__(__self__, *,
local_ssd_count: pulumi.Input[int]):
"""
:param pulumi.Input[int] local_ssd_count: Number of local SSDs to use to back ephemeral storage. Uses NVMe interfaces. Each local SSD is 375 GB in size. If zero, it means to disable using local SSDs as ephemeral stor... | .get(self, "workload_metadata_config")
@workload_metadata_config.setter
def workload_metadata_config(self, value: Optional[pulumi.Input['ClusterNodeConfigWorkloadMetadataConfigArgs']]):
pulumi.set(self, "workload_metadata_config", value)
@pulumi.input_type
class ClusterNodeConfigEphemeralStorageConfigA... | 72 | 72 | 241 | 16 | 56 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterNodeConfigEphemeralStorageConfigArgs | ClusterNodeConfigEphemeralStorageConfigArgs | 3,645 | 3,664 | 3,645 | 3,646 | 172e44a169f784854bc2166be5e668c460a871a6 | bigcode/the-stack | train |
e2e97e739623a3cc3a49d339 | train | class | @pulumi.input_type
class ClusterMasterAuthArgs:
def __init__(__self__, *,
client_certificate_config: pulumi.Input['ClusterMasterAuthClientCertificateConfigArgs'],
client_certificate: Optional[pulumi.Input[str]] = None,
client_key: Optional[pulumi.Input[str]] = None... | @pulumi.input_type
class ClusterMasterAuthArgs:
| def __init__(__self__, *,
client_certificate_config: pulumi.Input['ClusterMasterAuthClientCertificateConfigArgs'],
client_certificate: Optional[pulumi.Input[str]] = None,
client_key: Optional[pulumi.Input[str]] = None,
cluster_ca_certificate: Optio... | pulumi.Input[str]):
pulumi.set(self, "end_time", value)
@property
@pulumi.getter
def recurrence(self) -> pulumi.Input[str]:
return pulumi.get(self, "recurrence")
@recurrence.setter
def recurrence(self, value: pulumi.Input[str]):
pulumi.set(self, "recurrence", value)
@... | 161 | 161 | 539 | 12 | 149 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterMasterAuthArgs | ClusterMasterAuthArgs | 2,971 | 3,026 | 2,971 | 2,972 | ca70a2700282f90d104df4ccd95eabc4f38d9323 | bigcode/the-stack | train |
bc78940f50b250a8d0ccaf0d | train | class | @pulumi.input_type
class NodePoolNodeConfigWorkloadMetadataConfigArgs:
def __init__(__self__, *,
mode: pulumi.Input[str]):
pulumi.set(__self__, "mode", mode)
@property
@pulumi.getter
def mode(self) -> pulumi.Input[str]:
return pulumi.get(self, "mode")
@mode.setter
... | @pulumi.input_type
class NodePoolNodeConfigWorkloadMetadataConfigArgs:
| def __init__(__self__, *,
mode: pulumi.Input[str]):
pulumi.set(__self__, "mode", mode)
@property
@pulumi.getter
def mode(self) -> pulumi.Input[str]:
return pulumi.get(self, "mode")
@mode.setter
def mode(self, value: pulumi.Input[str]):
pulumi.set(self, ... | value(self) -> pulumi.Input[str]:
return pulumi.get(self, "value")
@value.setter
def value(self, value: pulumi.Input[str]):
pulumi.set(self, "value", value)
@pulumi.input_type
class NodePoolNodeConfigWorkloadMetadataConfigArgs:
| 64 | 64 | 106 | 17 | 47 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | NodePoolNodeConfigWorkloadMetadataConfigArgs | NodePoolNodeConfigWorkloadMetadataConfigArgs | 6,186 | 6,199 | 6,186 | 6,187 | ba66fdd26ddaa29625f3b697edd28b61c2439557 | bigcode/the-stack | train |
47669a942a6a8ff8466e27e8 | train | class | @pulumi.input_type
class ClusterNodePoolNodeConfigGuestAcceleratorArgs:
def __init__(__self__, *,
count: pulumi.Input[int],
type: pulumi.Input[str],
gpu_partition_size: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[int] count: The num... | @pulumi.input_type
class ClusterNodePoolNodeConfigGuestAcceleratorArgs:
| def __init__(__self__, *,
count: pulumi.Input[int],
type: pulumi.Input[str],
gpu_partition_size: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[int] count: The number of the guest accelerator cards exposed to this instance.
:pa... | the PodSecurityPolicy controller for this cluster.
If enabled, pods must be valid under a PodSecurityPolicy to be created.
"""
pulumi.set(__self__, "enabled", enabled)
@property
@pulumi.getter
def enabled(self) -> pulumi.Input[bool]:
"""
Enable the PodSecurit... | 151 | 151 | 505 | 17 | 134 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterNodePoolNodeConfigGuestAcceleratorArgs | ClusterNodePoolNodeConfigGuestAcceleratorArgs | 4,833 | 4,883 | 4,833 | 4,834 | 843d8ef00ec388685f00a4fc3e4d930fd2b6845f | bigcode/the-stack | train |
0e21747a9617161f165dde49 | train | class | @pulumi.input_type
class AwsClusterAuthorizationArgs:
def __init__(__self__, *,
admin_users: pulumi.Input[Sequence[pulumi.Input['AwsClusterAuthorizationAdminUserArgs']]]):
"""
:param pulumi.Input[Sequence[pulumi.Input['AwsClusterAuthorizationAdminUserArgs']]] admin_users: Required. ... | @pulumi.input_type
class AwsClusterAuthorizationArgs:
| def __init__(__self__, *,
admin_users: pulumi.Input[Sequence[pulumi.Input['AwsClusterAuthorizationAdminUserArgs']]]):
"""
:param pulumi.Input[Sequence[pulumi.Input['AwsClusterAuthorizationAdminUserArgs']]] admin_users: Required. Users to perform operations as a cluster admin. A mana... | PoolNodeConfigGuestAcceleratorArgs',
'NodePoolNodeConfigKubeletConfigArgs',
'NodePoolNodeConfigLinuxNodeConfigArgs',
'NodePoolNodeConfigSandboxConfigArgs',
'NodePoolNodeConfigShieldedInstanceConfigArgs',
'NodePoolNodeConfigTaintArgs',
'NodePoolNodeConfigWorkloadMetadataConfigArgs',
'NodePool... | 96 | 96 | 323 | 12 | 84 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AwsClusterAuthorizationArgs | AwsClusterAuthorizationArgs | 131 | 150 | 131 | 132 | 7200dded5468c6d5ebcf534851bdaa5b3278d6ef | bigcode/the-stack | train |
ab06923bfab536aabb113c1b | train | class | @pulumi.input_type
class AwsNodePoolConfigRootVolumeArgs:
def __init__(__self__, *,
iops: Optional[pulumi.Input[int]] = None,
kms_key_arn: Optional[pulumi.Input[str]] = None,
size_gib: Optional[pulumi.Input[int]] = None,
volume_type: Optional[pulum... | @pulumi.input_type
class AwsNodePoolConfigRootVolumeArgs:
| def __init__(__self__, *,
iops: Optional[pulumi.Input[int]] = None,
kms_key_arn: Optional[pulumi.Input[str]] = None,
size_gib: Optional[pulumi.Input[int]] = None,
volume_type: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.I... | init__(__self__, *,
kms_key_arn: pulumi.Input[str]):
"""
:param pulumi.Input[str] kms_key_arn: Optional. The Amazon Resource Name (ARN) of the Customer Managed Key (CMK) used to encrypt AWS EBS volumes. If not specified, the default Amazon managed key associated to the AWS region where ... | 248 | 248 | 828 | 15 | 233 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AwsNodePoolConfigRootVolumeArgs | AwsNodePoolConfigRootVolumeArgs | 1,009 | 1,077 | 1,009 | 1,010 | 8dd66e6107c2c5b9af61cbf3d143919312b7bd70 | bigcode/the-stack | train |
87d7bb1ff2bfcf463b8b4932 | train | class | @pulumi.input_type
class AzureClusterAuthorizationArgs:
def __init__(__self__, *,
admin_users: pulumi.Input[Sequence[pulumi.Input['AzureClusterAuthorizationAdminUserArgs']]]):
"""
:param pulumi.Input[Sequence[pulumi.Input['AzureClusterAuthorizationAdminUserArgs']]] admin_users: Requ... | @pulumi.input_type
class AzureClusterAuthorizationArgs:
| def __init__(__self__, *,
admin_users: pulumi.Input[Sequence[pulumi.Input['AzureClusterAuthorizationAdminUserArgs']]]):
"""
:param pulumi.Input[Sequence[pulumi.Input['AzureClusterAuthorizationAdminUserArgs']]] admin_users: Required. Users that can perform operations as a cluster adm... | ods_per_node(self) -> pulumi.Input[int]:
"""
Required. The maximum number of pods to schedule on a single node.
"""
return pulumi.get(self, "max_pods_per_node")
@max_pods_per_node.setter
def max_pods_per_node(self, value: pulumi.Input[int]):
pulumi.set(self, "max_pods_pe... | 96 | 96 | 321 | 12 | 84 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AzureClusterAuthorizationArgs | AzureClusterAuthorizationArgs | 1,176 | 1,195 | 1,176 | 1,177 | cb6a25cf135594afbf080b8b04cff23e8f72d8ca | bigcode/the-stack | train |
847c4464d5216360e07836e5 | train | class | @pulumi.input_type
class AzureClusterFleetArgs:
def __init__(__self__, *,
membership: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] membership: -
The name of the managed Hub Membership r... | @pulumi.input_type
class AzureClusterFleetArgs:
| def __init__(__self__, *,
membership: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[str] membership: -
The name of the managed Hub Membership resource associated to this cluster. Membership n... | [str]:
"""
Required. The SSH public key data for VMs managed by Anthos. This accepts the authorized_keys file format used in OpenSSH according to the sshd(8) manual page.
"""
return pulumi.get(self, "authorized_key")
@authorized_key.setter
def authorized_key(self, value: pulumi.... | 98 | 98 | 327 | 12 | 86 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AzureClusterFleetArgs | AzureClusterFleetArgs | 1,548 | 1,586 | 1,548 | 1,549 | e3e7128819d38c94b588abdb4257a23145b46074 | bigcode/the-stack | train |
4e161801a7aec51421e4fbc2 | train | class | @pulumi.input_type
class AzureClusterAuthorizationAdminUserArgs:
def __init__(__self__, *,
username: pulumi.Input[str]):
"""
:param pulumi.Input[str] username: Required. The name of the user, e.g. `my-gcp-id@gmail.com`.
"""
pulumi.set(__self__, "username", username)
... | @pulumi.input_type
class AzureClusterAuthorizationAdminUserArgs:
| def __init__(__self__, *,
username: pulumi.Input[str]):
"""
:param pulumi.Input[str] username: Required. The name of the user, e.g. `my-gcp-id@gmail.com`.
"""
pulumi.set(__self__, "username", username)
@property
@pulumi.getter
def username(self) -> pulum... | , "admin_users")
@admin_users.setter
def admin_users(self, value: pulumi.Input[Sequence[pulumi.Input['AzureClusterAuthorizationAdminUserArgs']]]):
pulumi.set(self, "admin_users", value)
@pulumi.input_type
class AzureClusterAuthorizationAdminUserArgs:
| 64 | 64 | 160 | 14 | 50 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | AzureClusterAuthorizationAdminUserArgs | AzureClusterAuthorizationAdminUserArgs | 1,198 | 1,217 | 1,198 | 1,199 | 3b354be4aca87f401b8317e6c6b425d4b07c49f4 | bigcode/the-stack | train |
e4af6d1b0c74cd6f6b2d74f3 | train | class | @pulumi.input_type
class ClusterNodeConfigGuestAcceleratorArgs:
def __init__(__self__, *,
count: pulumi.Input[int],
type: pulumi.Input[str],
gpu_partition_size: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[int] count: The number of t... | @pulumi.input_type
class ClusterNodeConfigGuestAcceleratorArgs:
| def __init__(__self__, *,
count: pulumi.Input[int],
type: pulumi.Input[str],
gpu_partition_size: Optional[pulumi.Input[str]] = None):
"""
:param pulumi.Input[int] count: The number of the guest accelerator cards exposed to this instance.
:pa... | Enable the PodSecurityPolicy controller for this cluster.
If enabled, pods must be valid under a PodSecurityPolicy to be created.
"""
pulumi.set(__self__, "enabled", enabled)
@property
@pulumi.getter
def enabled(self) -> pulumi.Input[bool]:
"""
Enable the Pod... | 150 | 150 | 503 | 15 | 135 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterNodeConfigGuestAcceleratorArgs | ClusterNodeConfigGuestAcceleratorArgs | 3,691 | 3,741 | 3,691 | 3,692 | 58e2f2cdf8a5139c44f901601d54954d51fdd1ba | bigcode/the-stack | train |
c5efb87c1e4d754525a1b1d8 | train | class | @pulumi.input_type
class ClusterNodePoolNodeConfigArgs:
def __init__(__self__, *,
boot_disk_kms_key: Optional[pulumi.Input[str]] = None,
disk_size_gb: Optional[pulumi.Input[int]] = None,
disk_type: Optional[pulumi.Input[str]] = None,
ephemeral_stor... | @pulumi.input_type
class ClusterNodePoolNodeConfigArgs:
| def __init__(__self__, *,
boot_disk_kms_key: Optional[pulumi.Input[str]] = None,
disk_size_gb: Optional[pulumi.Input[int]] = None,
disk_type: Optional[pulumi.Input[str]] = None,
ephemeral_storage_config: Optional[pulumi.Input['ClusterNodePoolNodeCo... | pulumi.get(self, "create_pod_range")
@create_pod_range.setter
def create_pod_range(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "create_pod_range", value)
@property
@pulumi.getter(name="podIpv4CidrBlock")
def pod_ipv4_cidr_block(self) -> Optional[pulumi.Input[str]]:
... | 256 | 256 | 6,370 | 14 | 242 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterNodePoolNodeConfigArgs | ClusterNodePoolNodeConfigArgs | 4,314 | 4,784 | 4,314 | 4,315 | 10ce6c595ede34a4db2edbb8cb297828741ca67a | bigcode/the-stack | train |
941481ec94bdf375ac6a5d3d | train | class | @pulumi.input_type
class NodePoolNodeConfigTaintArgs:
def __init__(__self__, *,
effect: pulumi.Input[str],
key: pulumi.Input[str],
value: pulumi.Input[str]):
pulumi.set(__self__, "effect", effect)
pulumi.set(__self__, "key", key)
pulumi.set(... | @pulumi.input_type
class NodePoolNodeConfigTaintArgs:
| def __init__(__self__, *,
effect: pulumi.Input[str],
key: pulumi.Input[str],
value: pulumi.Input[str]):
pulumi.set(__self__, "effect", effect)
pulumi.set(__self__, "key", key)
pulumi.set(__self__, "value", value)
@property
@pulumi.g... | enable_secure_boot(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "enable_secure_boot")
@enable_secure_boot.setter
def enable_secure_boot(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enable_secure_boot", value)
@pulumi.input_type
class NodePoolNodeConfigTaintAr... | 79 | 79 | 264 | 15 | 64 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | NodePoolNodeConfigTaintArgs | NodePoolNodeConfigTaintArgs | 6,148 | 6,183 | 6,148 | 6,149 | 70d790c5997598a06ebdc6f2d444b5a83979b231 | bigcode/the-stack | train |
d0a95050b51fdac62f500b49 | train | class | @pulumi.input_type
class ClusterAddonsConfigKalmConfigArgs:
def __init__(__self__, *,
enabled: pulumi.Input[bool]):
"""
:param pulumi.Input[bool] enabled: Enable the PodSecurityPolicy controller for this cluster.
If enabled, pods must be valid under a PodSecurityPolic... | @pulumi.input_type
class ClusterAddonsConfigKalmConfigArgs:
| def __init__(__self__, *,
enabled: pulumi.Input[bool]):
"""
:param pulumi.Input[bool] enabled: Enable the PodSecurityPolicy controller for this cluster.
If enabled, pods must be valid under a PodSecurityPolicy to be created.
"""
pulumi.set(__self__, "e... | AUTH_MUTUAL_TLS`.
"""
return pulumi.get(self, "auth")
@auth.setter
def auth(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "auth", value)
@pulumi.input_type
class ClusterAddonsConfigKalmConfigArgs:
| 64 | 64 | 182 | 16 | 48 | pulumi/pulumi-gcp | sdk/python/pulumi_gcp/container/_inputs.py | Python | ClusterAddonsConfigKalmConfigArgs | ClusterAddonsConfigKalmConfigArgs | 2,243 | 2,264 | 2,243 | 2,244 | 349060e0a7e6c95d9ead86e113190ef70f3e177e | bigcode/the-stack | train |
fd147fa0ba82bb3ddb45f8cd | train | class | class GetVolumeSnapshotResult:
"""
A collection of values returned by getVolumeSnapshot.
"""
def __init__(__self__, created_at=None, id=None, min_disk_size=None, most_recent=None, name=None, name_regex=None, region=None, regions=None, size=None, tags=None, volume_id=None):
if created_at and not ... | class GetVolumeSnapshotResult:
| """
A collection of values returned by getVolumeSnapshot.
"""
def __init__(__self__, created_at=None, id=None, min_disk_size=None, most_recent=None, name=None, name_regex=None, region=None, regions=None, size=None, tags=None, volume_id=None):
if created_at and not isinstance(created_at, str):
... | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from . import utilities, tables
class GetVolum... | 79 | 177 | 591 | 6 | 72 | andrewsomething/pulumi-digitalocean | sdk/python/pulumi_digitalocean/get_volume_snapshot.py | Python | GetVolumeSnapshotResult | GetVolumeSnapshotResult | 12 | 70 | 12 | 12 | 712a18d2a10b804a139da14967b98ed910fa9b15 | bigcode/the-stack | train |
9ffed3e016175a19259fdb8d | train | function | def get_volume_snapshot(most_recent=None,name=None,name_regex=None,region=None,opts=None):
"""
Volume snapshots are saved instances of a block storage volume. Use this data
source to retrieve the ID of a DigitalOcean volume snapshot for use in other
resources.
## Example Usage
```python
... | def get_volume_snapshot(most_recent=None,name=None,name_regex=None,region=None,opts=None):
| """
Volume snapshots are saved instances of a block storage volume. Use this data
source to retrieve the ID of a DigitalOcean volume snapshot for use in other
resources.
## Example Usage
```python
import pulumi
import pulumi_digitalocean as digitalocean
snapshot = digitalocean.g... | from which the volume snapshot originated.
"""
class AwaitableGetVolumeSnapshotResult(GetVolumeSnapshotResult):
# pylint: disable=using-constant-test
def __await__(self):
if False:
yield self
return GetVolumeSnapshotResult(
created_at=self.created_at,
... | 143 | 143 | 478 | 20 | 123 | andrewsomething/pulumi-digitalocean | sdk/python/pulumi_digitalocean/get_volume_snapshot.py | Python | get_volume_snapshot | get_volume_snapshot | 89 | 139 | 89 | 89 | 3ad4f2461ce2b7a11ba9c510acbff2fdb5dcf96f | bigcode/the-stack | train |
32cf787c0568ed9644280d9a | train | class | class AwaitableGetVolumeSnapshotResult(GetVolumeSnapshotResult):
# pylint: disable=using-constant-test
def __await__(self):
if False:
yield self
return GetVolumeSnapshotResult(
created_at=self.created_at,
id=self.id,
min_disk_size=self.min_disk_siz... | class AwaitableGetVolumeSnapshotResult(GetVolumeSnapshotResult):
# pylint: disable=using-constant-test
| def __await__(self):
if False:
yield self
return GetVolumeSnapshotResult(
created_at=self.created_at,
id=self.id,
min_disk_size=self.min_disk_size,
most_recent=self.most_recent,
name=self.name,
name_regex=self.name_r... | TypeError("Expected argument 'volume_id' to be a str")
__self__.volume_id = volume_id
"""
The ID of the volume from which the volume snapshot originated.
"""
class AwaitableGetVolumeSnapshotResult(GetVolumeSnapshotResult):
# pylint: disable=using-constant-test
| 64 | 64 | 114 | 23 | 41 | andrewsomething/pulumi-digitalocean | sdk/python/pulumi_digitalocean/get_volume_snapshot.py | Python | AwaitableGetVolumeSnapshotResult | AwaitableGetVolumeSnapshotResult | 71 | 87 | 71 | 72 | 88b803c883b1136b70b8a76c7ca4ab071725b694 | bigcode/the-stack | train |
5c3891d92dd3e2cb871cd4c2 | train | class | class _AvroSink(filebasedsink.FileBasedSink):
"""A sink to avro files."""
def __init__(self,
file_path_prefix,
schema,
codec,
file_name_suffix,
num_shards,
shard_name_template,
mime_type):
super(_AvroSink, ... | class _AvroSink(filebasedsink.FileBasedSink):
| """A sink to avro files."""
def __init__(self,
file_path_prefix,
schema,
codec,
file_name_suffix,
num_shards,
shard_name_template,
mime_type):
super(_AvroSink, self).__init__(
file_path_prefix,
... | sink = _AvroSink(file_path_prefix, schema, codec, file_name_suffix,
num_shards, shard_name_template, mime_type)
def expand(self, pcoll):
return pcoll | beam.io.iobase.Write(self._sink)
def display_data(self):
return {'sink_dd': self._sink}
class _AvroSink(filebasedsink.FileBased... | 81 | 81 | 271 | 12 | 69 | ssivanand/beam | sdks/python/apache_beam/io/avroio.py | Python | _AvroSink | _AvroSink | 431 | 467 | 431 | 431 | 7dc99e7edfeab8d61e905c2e56c3a3ca9a92de22 | bigcode/the-stack | train |
79ba2449dd39431f4e1426a7 | train | class | class ReadFromAvro(PTransform):
"""A :class:`~apache_beam.transforms.ptransform.PTransform` for reading avro
files."""
def __init__(self, file_pattern=None, min_bundle_size=0, validate=True):
"""Initializes :class:`ReadFromAvro`.
Uses source :class:`~apache_beam.io._AvroSource` to read a set of Avro
... | class ReadFromAvro(PTransform):
| """A :class:`~apache_beam.transforms.ptransform.PTransform` for reading avro
files."""
def __init__(self, file_pattern=None, min_bundle_size=0, validate=True):
"""Initializes :class:`ReadFromAvro`.
Uses source :class:`~apache_beam.io._AvroSource` to read a set of Avro
files defined by a given file p... | ssa', u'favorite_number': 256, u'favorite_color': None}).
Additionally, this module provides a write ``PTransform`` ``WriteToAvro``
that can be used to write a given ``PCollection`` of Python objects to an
Avro file.
"""
import cStringIO
import os
import zlib
from functools import partial
import avro
from avro impor... | 202 | 202 | 674 | 8 | 194 | ssivanand/beam | sdks/python/apache_beam/io/avroio.py | Python | ReadFromAvro | ReadFromAvro | 66 | 143 | 66 | 66 | 63bf4874fda3fb68c52a8f3d4529d412379d49fa | bigcode/the-stack | train |
8bf397fa81ed3540201be8ba | train | function | def _create_avro_source(file_pattern=None, min_bundle_size=None):
return _AvroSource(
file_pattern=file_pattern, min_bundle_size=min_bundle_size,
validate=False)
| def _create_avro_source(file_pattern=None, min_bundle_size=None):
| return _AvroSource(
file_pattern=file_pattern, min_bundle_size=min_bundle_size,
validate=False)
| . We only have to
# backtrack (len(sync_marker) - 1) bytes.
f.seek(-1 * (len(sync_marker) - 1), os.SEEK_CUR)
data = f.read(buf_size)
def _create_avro_source(file_pattern=None, min_bundle_size=None):
| 64 | 64 | 39 | 15 | 49 | ssivanand/beam | sdks/python/apache_beam/io/avroio.py | Python | _create_avro_source | _create_avro_source | 267 | 270 | 267 | 267 | e8453692a4d58b8a5cd27b42faa11c47fd8bfd4f | bigcode/the-stack | train |
4a6c1d624a20cbecb251a2fb | train | class | class _AvroUtils(object):
@staticmethod
def read_meta_data_from_file(f):
"""Reads metadata from a given Avro file.
Args:
f: Avro file to read.
Returns:
a tuple containing the codec, schema, and the sync marker of the Avro
file.
Raises:
ValueError: if the file does not star... | class _AvroUtils(object):
@staticmethod
| def read_meta_data_from_file(f):
"""Reads metadata from a given Avro file.
Args:
f: Avro file to read.
Returns:
a tuple containing the codec, schema, and the sync marker of the Avro
file.
Raises:
ValueError: if the file does not start with the byte sequence defined in
... | of Avro files or
file patterns and produce a ``PCollection`` of Avro records.
"""
DEFAULT_DESIRED_BUNDLE_SIZE = 64 * 1024 * 1024 # 64MB
def __init__(self, min_bundle_size=0,
desired_bundle_size=DEFAULT_DESIRED_BUNDLE_SIZE):
"""Initializes ``ReadAllFromAvro``.
Args:
min_bundle_... | 227 | 227 | 758 | 11 | 215 | ssivanand/beam | sdks/python/apache_beam/io/avroio.py | Python | _AvroUtils | _AvroUtils | 175 | 264 | 175 | 177 | e4d4a8c93a35a761f2b74ea86db6ca9fed2e060d | bigcode/the-stack | train |
307ae1447e91d702647300af | train | class | class ReadAllFromAvro(PTransform):
"""A ``PTransform`` for reading ``PCollection`` of Avro files.
Uses source '_AvroSource' to read a ``PCollection`` of Avro files or
file patterns and produce a ``PCollection`` of Avro records.
"""
DEFAULT_DESIRED_BUNDLE_SIZE = 64 * 1024 * 1024 # 64MB
def __init__(sel... | class ReadAllFromAvro(PTransform):
| """A ``PTransform`` for reading ``PCollection`` of Avro files.
Uses source '_AvroSource' to read a ``PCollection`` of Avro files or
file patterns and produce a ``PCollection`` of Avro records.
"""
DEFAULT_DESIRED_BUNDLE_SIZE = 64 * 1024 * 1024 # 64MB
def __init__(self, min_bundle_size=0,
... | """
super(ReadFromAvro, self).__init__()
self._source = _AvroSource(file_pattern, min_bundle_size, validate=validate)
def expand(self, pvalue):
return pvalue.pipeline | Read(self._source)
def display_data(self):
return {'source_dd': self._source}
class ReadAllFromAvro(PTransform):
| 77 | 77 | 258 | 9 | 68 | ssivanand/beam | sdks/python/apache_beam/io/avroio.py | Python | ReadAllFromAvro | ReadAllFromAvro | 146 | 172 | 146 | 146 | 5f9b19e1ac25be80cd65eed3be6e051c99a44017 | bigcode/the-stack | train |
98dea3c5accf53ea622f8479 | train | class | class _AvroBlock(object):
"""Represents a block of an Avro file."""
def __init__(self, block_bytes, num_records, codec, schema_string,
offset, size):
# Decompress data early on (if needed) and thus decrease the number of
# parallel copies of the data in memory at any given in time during
... | class _AvroBlock(object):
| """Represents a block of an Avro file."""
def __init__(self, block_bytes, num_records, codec, schema_string,
offset, size):
# Decompress data early on (if needed) and thus decrease the number of
# parallel copies of the data in memory at any given in time during
# block iteration.
se... | if f.tell() >= len(sync_marker):
# Backtracking in case we partially read the sync marker during the
# previous read. We only have to backtrack if there are at least
# len(sync_marker) bytes before current position. We only have to
# backtrack (len(sync_marker) - 1) bytes... | 147 | 147 | 493 | 7 | 140 | ssivanand/beam | sdks/python/apache_beam/io/avroio.py | Python | _AvroBlock | _AvroBlock | 273 | 331 | 273 | 273 | 8133ed97825a3490cb264ae04bd97376d6f46a20 | bigcode/the-stack | train |
844ed6a3bd8ae2087c592ada | train | class | class WriteToAvro(beam.transforms.PTransform):
"""A ``PTransform`` for writing avro files."""
def __init__(self,
file_path_prefix,
schema,
codec='deflate',
file_name_suffix='',
num_shards=0,
shard_name_template=None,
... | class WriteToAvro(beam.transforms.PTransform):
| """A ``PTransform`` for writing avro files."""
def __init__(self,
file_path_prefix,
schema,
codec='deflate',
file_name_suffix='',
num_shards=0,
shard_name_template=None,
mime_type='application/x-avro'):
"""... | .open_file(file_name) as f:
codec, schema_string, sync_marker = _AvroUtils.read_meta_data_from_file(
f)
# We have to start at current position if previous bundle ended at the
# end of a sync marker.
start_offset = max(0, start_offset - len(sync_marker))
f.seek(start_offset)
... | 157 | 157 | 525 | 11 | 145 | ssivanand/beam | sdks/python/apache_beam/io/avroio.py | Python | WriteToAvro | WriteToAvro | 380 | 428 | 380 | 380 | 4270c568b78efe95ea34042c66874d4a35e83c3f | bigcode/the-stack | train |
0172992b9e6f0747a4d61bf1 | train | class | class _AvroSource(filebasedsource.FileBasedSource):
"""A source for reading Avro files.
``_AvroSource`` is implemented using the file-based source framework available
in module 'filebasedsource'. Hence please refer to module 'filebasedsource'
to fully understand how this source implements operations common to ... | class _AvroSource(filebasedsource.FileBasedSource):
| """A source for reading Avro files.
``_AvroSource`` is implemented using the file-based source framework available
in module 'filebasedsource'. Hence please refer to module 'filebasedsource'
to fully understand how this source implements operations common to all
file-based sources such as file-pattern expans... | r' % codec)
def num_records(self):
return self._num_records
def records(self):
decoder = avroio.BinaryDecoder(
cStringIO.StringIO(self._decompressed_block_bytes))
reader = avroio.DatumReader(
writers_schema=self._schema, readers_schema=self._schema)
current_record = 0
while cu... | 111 | 111 | 371 | 12 | 98 | ssivanand/beam | sdks/python/apache_beam/io/avroio.py | Python | _AvroSource | _AvroSource | 334 | 377 | 334 | 334 | bd8e0e906ac5a4e99f8ffcc853d749caef097d95 | bigcode/the-stack | train |
6f27d7dce5f17172cbd7129e | train | class | class Base_handler(web.RequestHandler):
@property
def db(self):
return self.application.db
@property
def redis(self):
return self.application.redis
@property
def ahttp(self):
return self.application.ahttp
def get_current_user(self):
data = self.get_secure_... | class Base_handler(web.RequestHandler):
@property
| def db(self):
return self.application.db
@property
def redis(self):
return self.application.redis
@property
def ahttp(self):
return self.application.ahttp
def get_current_user(self):
data = self.get_secure_cookie('twitch_user', max_age_days=2)
if not da... | import logging, json
from tornado import web, escape
class Base_handler(web.RequestHandler):
@property
| 23 | 64 | 97 | 11 | 11 | thomaserlang/tbot | tbot/web/handlers/base.py | Python | Base_handler | Base_handler | 4 | 22 | 4 | 6 | 8d8de5a1e2b8baa3b88e9faba43725fa747ee516 | bigcode/the-stack | train |
7422804d31232ab18834c106 | train | class | class EvaluateFRQ9Test2(unittest.TestCase):
def setUp(self):
"""
Set up unit test environment
:return:
"""
event_log_path = 'FRQ9 input files/FRQ9evaluationlog2.xes'
dcr_graph_path = 'FRQ9 input files/FRQ9_evaluation2.xml'
self.dcr_graph = DCRGraph.get_graph_i... | class EvaluateFRQ9Test2(unittest.TestCase):
| def setUp(self):
"""
Set up unit test environment
:return:
"""
event_log_path = 'FRQ9 input files/FRQ9evaluationlog2.xes'
dcr_graph_path = 'FRQ9 input files/FRQ9_evaluation2.xml'
self.dcr_graph = DCRGraph.get_graph_instance(dcr_graph_path)
self.event_l... | included because of the data constraint related to a
:return:
"""
self.assertTrue(len(self.violated_traces) == 1)
self.assertTrue(self.violated_traces['a -c -d'] == 1)
self.assertTrue(self.ca.ViolatedActivities["d"] == 1)
class EvaluateFRQ9Test2(unittest.TestCase):
| 83 | 83 | 277 | 11 | 72 | fau-is/cc-dcr | tests/Evaluation/test_frq9evaluation.py | Python | EvaluateFRQ9Test2 | EvaluateFRQ9Test2 | 43 | 66 | 43 | 43 | 0f474505948c6e6dd43ff6e08b6b8cf118c2beaf | bigcode/the-stack | train |
b2340dd594f722b03b4471a9 | train | class | class EvaluateFRQ9Test1(unittest.TestCase):
"""
a is augmented with data, and checked if it can
"""
def setUp(self):
"""
Set up unit test environment
"""
event_log_path = 'FRQ9 input files/FRQ9evaluationlog1.xes'
dcr_graph_path = 'FRQ9 input files/FRQ9_evaluation... | class EvaluateFRQ9Test1(unittest.TestCase):
| """
a is augmented with data, and checked if it can
"""
def setUp(self):
"""
Set up unit test environment
"""
event_log_path = 'FRQ9 input files/FRQ9evaluationlog1.xes'
dcr_graph_path = 'FRQ9 input files/FRQ9_evaluation1.xml'
self.dcr_graph = DCRGraph.get... | # coding=utf-8
"""
Used to check if guards referencing to data of another event can be checked
"""
import unittest
import cc_dcr
import eventlog_parser
from conf_data import ConformanceAnalysisData
from graph import DCRGraph
class EvaluateFRQ9Test1(unittest.TestCase):
| 63 | 88 | 294 | 11 | 51 | fau-is/cc-dcr | tests/Evaluation/test_frq9evaluation.py | Python | EvaluateFRQ9Test1 | EvaluateFRQ9Test1 | 13 | 40 | 13 | 13 | f10f7bdae0e8f14db6b43bfc94442c11ccf0158e | bigcode/the-stack | train |
1b964c1756ab66d1b84441ae | train | class | class Architect(object):
def __init__(self, model, args):
self.network_momentum = args.momentum
self.network_weight_decay = args.weight_decay
self.model = model
self.sam_on_arch = args.sam_on_arch
if self.sam_on_arch:
base_optimizer = torch.optim.Adam
self.optimizer = SAM(
... | class Architect(object):
| def __init__(self, model, args):
self.network_momentum = args.momentum
self.network_weight_decay = args.weight_decay
self.model = model
self.sam_on_arch = args.sam_on_arch
if self.sam_on_arch:
base_optimizer = torch.optim.Adam
self.optimizer = SAM(
self.model.arch_paramete... | import torch
import numpy as np
import torch.nn as nn
from torch.autograd import Variable
from src.sam.sam import SAM
from src.sam.bypass_bn import enable_running_stats, disable_running_stats
def _concat(xs):
return torch.cat([x.view(-1) for x in xs])
class Architect(object):
| 67 | 256 | 1,045 | 4 | 63 | sodabori/darts-minus | src/search/architect.py | Python | Architect | Architect | 13 | 129 | 13 | 14 | 9733f76db250f349a2e991617636fa975a6c5f2b | bigcode/the-stack | train |
2686b725dcd48839b647072f | train | function | def _concat(xs):
return torch.cat([x.view(-1) for x in xs])
| def _concat(xs):
| return torch.cat([x.view(-1) for x in xs])
| import torch
import numpy as np
import torch.nn as nn
from torch.autograd import Variable
from src.sam.sam import SAM
from src.sam.bypass_bn import enable_running_stats, disable_running_stats
def _concat(xs):
| 48 | 64 | 20 | 5 | 42 | sodabori/darts-minus | src/search/architect.py | Python | _concat | _concat | 9 | 10 | 9 | 9 | ecf1c61a3ba7844deafb2d32b1637759cd8ef7ff | bigcode/the-stack | train |
c7ea492c3d8a9f3d407c70d7 | train | function | def scatter_masked(tensor, mask, binned=False, threshold=None):
s = tensor[0].detach().cpu()
mask = mask[0].detach().clamp(min=0, max=1).cpu()
if binned:
s = s * 128
s = s.view(-1, s.size(-1))
mask = mask.view(-1)
if threshold is not None:
keep = mask.view(-1) > threshold... | def scatter_masked(tensor, mask, binned=False, threshold=None):
| s = tensor[0].detach().cpu()
mask = mask[0].detach().clamp(min=0, max=1).cpu()
if binned:
s = s * 128
s = s.view(-1, s.size(-1))
mask = mask.view(-1)
if threshold is not None:
keep = mask.view(-1) > threshold
s = s[:, keep]
mask = mask[keep]
return s, ... | ),
reduction="none"
).mean(2)
loss = squared_error.min(2)[0] + squared_error.min(3)[0]
return loss.view(loss.size(0), -1).mean(1)
def scatter_masked(tensor, mask, binned=False, threshold=None):
| 64 | 64 | 120 | 16 | 48 | FlorianSchroevers/dspn | dspn/utils.py | Python | scatter_masked | scatter_masked | 55 | 66 | 55 | 55 | 1c3a272c776bf1411267273b330c5037d2a5f1b8 | bigcode/the-stack | train |
d28e11d012465fd934c6c0a4 | train | function | def emd(predictions, targets):
# predictions and targets shape :: (n, c, s)
# proper input shape for emd_loss :: (n, s, c)
return nnt.metrics.emd_loss(
torch.transpose(predictions, 1, 2),
torch.transpose(targets, 1, 2),
sinkhorn=False
)
| def emd(predictions, targets):
# predictions and targets shape :: (n, c, s)
# proper input shape for emd_loss :: (n, s, c)
| return nnt.metrics.emd_loss(
torch.transpose(predictions, 1, 2),
torch.transpose(targets, 1, 2),
sinkhorn=False
)
| )))
return total_loss
def hungarian_loss_per_sample(sample_np):
return scipy.optimize.linear_sum_assignment(sample_np)
def emd(predictions, targets):
# predictions and targets shape :: (n, c, s)
# proper input shape for emd_loss :: (n, s, c)
| 64 | 64 | 79 | 39 | 25 | FlorianSchroevers/dspn | dspn/utils.py | Python | emd | emd | 31 | 38 | 31 | 33 | c3802bc0ee87817ea74b637e22d5176b57c20e8b | bigcode/the-stack | train |
7c3fe78595c811727309ade6 | train | function | def chamfer_loss(predictions, targets):
print(predictions.shape)
# predictions and targets shape :: (k, n, c, s)
predictions, targets = outer(predictions, targets)
# squared_error shape :: (k, n, s, s)
squared_error = F.smooth_l1_loss(
predictions,
targets.expand_as(predictions),
... | def chamfer_loss(predictions, targets):
| print(predictions.shape)
# predictions and targets shape :: (k, n, c, s)
predictions, targets = outer(predictions, targets)
# squared_error shape :: (k, n, s, s)
squared_error = F.smooth_l1_loss(
predictions,
targets.expand_as(predictions),
reduction="none"
).mean(2)
... | proper input shape for emd_loss :: (n, s, c)
return nnt.metrics.emd_loss(
torch.transpose(predictions, 1, 2),
torch.transpose(targets, 1, 2),
sinkhorn=False
)
def chamfer_loss(predictions, targets):
| 64 | 64 | 125 | 9 | 55 | FlorianSchroevers/dspn | dspn/utils.py | Python | chamfer_loss | chamfer_loss | 41 | 52 | 41 | 41 | 875fd94e76b9522e53ac18fb609df97c496c271d | bigcode/the-stack | train |
db95e0a69f4c12146c96f2ec | train | function | def hungarian_loss_per_sample(sample_np):
return scipy.optimize.linear_sum_assignment(sample_np)
| def hungarian_loss_per_sample(sample_np):
| return scipy.optimize.linear_sum_assignment(sample_np)
| _error_np)
losses = [
sample[row_idx, col_idx].mean()
for sample, (row_idx, col_idx) in zip(squared_error, indices)
]
total_loss = torch.mean(torch.stack(list(losses)))
return total_loss
def hungarian_loss_per_sample(sample_np):
| 64 | 64 | 19 | 9 | 54 | FlorianSchroevers/dspn | dspn/utils.py | Python | hungarian_loss_per_sample | hungarian_loss_per_sample | 27 | 28 | 27 | 27 | 4c36ffff09aa57e6a846288e3c1f3546a2f484cf | bigcode/the-stack | train |
370971a174a18da42962866b | train | function | def hungarian_loss(predictions, targets, thread_pool):
# predictions and targets shape :: (n, c, s)
predictions, targets = outer(predictions, targets)
# squared_error shape :: (n, s, s)
squared_error = F.smooth_l1_loss(
predictions,
targets.expand_as(predictions),
reduction="none... | def hungarian_loss(predictions, targets, thread_pool):
# predictions and targets shape :: (n, c, s)
| predictions, targets = outer(predictions, targets)
# squared_error shape :: (n, s, s)
squared_error = F.smooth_l1_loss(
predictions,
targets.expand_as(predictions),
reduction="none"
).mean(1)
squared_error_np = squared_error.detach().cpu().numpy()
indices = thread_pool.m... | import scipy.optimize
import torch
import torch.nn.functional as F
import neuralnet_pytorch as nnt
def hungarian_loss(predictions, targets, thread_pool):
# predictions and targets shape :: (n, c, s)
| 49 | 64 | 164 | 26 | 22 | FlorianSchroevers/dspn | dspn/utils.py | Python | hungarian_loss | hungarian_loss | 7 | 24 | 7 | 8 | 68f50051850c864b51b1dd531838d9b74cf22d68 | bigcode/the-stack | train |
f31dedf7c5b5b8ae1342c88e | train | function | def outer(a, b=None):
"""
Compute outer product between a and b (or a and a if b is not specified).
"""
if b is None:
b = a
size_a = tuple(a.size()) + (b.size()[-1],)
size_b = tuple(b.size()) + (a.size()[-1],)
a = a.unsqueeze(dim=-1).expand(*size_a)
b = b.unsqueeze(dim=-2).expand... | def outer(a, b=None):
| """
Compute outer product between a and b (or a and a if b is not specified).
"""
if b is None:
b = a
size_a = tuple(a.size()) + (b.size()[-1],)
size_b = tuple(b.size()) + (a.size()[-1],)
a = a.unsqueeze(dim=-1).expand(*size_a)
b = b.unsqueeze(dim=-2).expand(*size_b)
return a... | = s.view(-1, s.size(-1))
mask = mask.view(-1)
if threshold is not None:
keep = mask.view(-1) > threshold
s = s[:, keep]
mask = mask[keep]
return s, mask
def outer(a, b=None):
| 64 | 64 | 109 | 7 | 56 | FlorianSchroevers/dspn | dspn/utils.py | Python | outer | outer | 69 | 79 | 69 | 69 | 4e3db70eef0b0ea1a613e6afceb43f8689f57321 | bigcode/the-stack | train |
c1bf0cc4899d510f77f66289 | train | class | class DependenciesVersionCheckerBase(ABC):
@abstractmethod
async def get_latest_version_of_dependency(self, dependency: Dependency) -> str:
"""Get the latest version available of a specified dependency."""
pass
| class DependenciesVersionCheckerBase(ABC):
@abstractmethod
| async def get_latest_version_of_dependency(self, dependency: Dependency) -> str:
"""Get the latest version available of a specified dependency."""
pass
| import logging
from abc import ABC, abstractmethod
from deps_report.models import Dependency
logger = logging.getLogger(__name__)
class DependenciesVersionCheckerBase(ABC):
@abstractmethod
| 39 | 64 | 45 | 13 | 26 | MeilleursAgents/deps-report | deps_report/dependencies_version_checkers/base.py | Python | DependenciesVersionCheckerBase | DependenciesVersionCheckerBase | 9 | 13 | 9 | 10 | f305ad97b7626eeb8887a7b816f993121e4d842f | bigcode/the-stack | train |
a86d3259b32c9f2c5556fee7 | train | function | def setup_nodes():
#fake analog stream
dev = NumpyDeviceBuffer()
dev.configure(nb_channel=nb_channel, sample_interval=1./sample_rate, chunksize=chunksize, buffer=buffer)
dev.output.configure(protocol='tcp', interface='127.0.0.1', transfermode='plaindata', dtype='float32')
dev.initialize()
# tr... | def setup_nodes():
#fake analog stream
| dev = NumpyDeviceBuffer()
dev.configure(nb_channel=nb_channel, sample_interval=1./sample_rate, chunksize=chunksize, buffer=buffer)
dev.output.configure(protocol='tcp', interface='127.0.0.1', transfermode='plaindata', dtype='float32')
dev.initialize()
# trigger
trigger = AnalogTrigger()
trig... | [(t>i+.01)&(t<i+0.015), 0] = 0.
buffer[(t>i+.02)&(t<i+0.025), 0] = 0.
buffer = buffer.astype('float32')
def setup_nodes():
#fake analog stream
| 64 | 64 | 155 | 10 | 54 | cimbi/pyacq | pyacq/dsp/tests/test_trigger.py | Python | setup_nodes | setup_nodes | 31 | 48 | 31 | 33 | 07d2bda139ca2ef64dcc8948a2df51ed7cc837d3 | bigcode/the-stack | train |
725e726a11156828b3d56ff5 | train | function | def check_trigger(debounce_time, debounce_mode, targeted_trigs, detected_triggers):
app = pg.mkQApp()
dev, trigger = setup_nodes()
trigger.params['debounce_time'] = debounce_time
trigger.params['debounce_mode'] = debounce_mode
def on_new_trigger(pos, indexes):
#~ print(pos, indexes... | def check_trigger(debounce_time, debounce_mode, targeted_trigs, detected_triggers):
| app = pg.mkQApp()
dev, trigger = setup_nodes()
trigger.params['debounce_time'] = debounce_time
trigger.params['debounce_mode'] = debounce_mode
def on_new_trigger(pos, indexes):
#~ print(pos, indexes)
detected_triggers.extend(indexes)
poller = ThreadPollOutput(trigger.ou... | interface='127.0.0.1', transfermode='plaindata')
trigger.initialize()
trigger.params['threshold'] = 1.
trigger.params['front'] = '+'
return dev, trigger
def check_trigger(debounce_time, debounce_mode, targeted_trigs, detected_triggers):
| 65 | 65 | 219 | 18 | 46 | cimbi/pyacq | pyacq/dsp/tests/test_trigger.py | Python | check_trigger | check_trigger | 51 | 82 | 51 | 51 | a35c5bbd9da50a5e84003c3611ff6682e194e216 | bigcode/the-stack | train |
b821076485dcab105826fae3 | train | function | def test_AnalogTrigger_before_stable():
targeted_trigs = [1001, 2001, 3001, 4001]
check_trigger(0.1, 'before-stable', targeted_trigs, [])
| def test_AnalogTrigger_before_stable():
| targeted_trigs = [1001, 2001, 3001, 4001]
check_trigger(0.1, 'before-stable', targeted_trigs, [])
| _trigs, [])
def test_AnalogTrigger_after_stable():
targeted_trigs = [1001, 2001, 3025, 4001]
check_trigger(0.1, 'after-stable', targeted_trigs, [])
def test_AnalogTrigger_before_stable():
| 64 | 64 | 50 | 9 | 55 | cimbi/pyacq | pyacq/dsp/tests/test_trigger.py | Python | test_AnalogTrigger_before_stable | test_AnalogTrigger_before_stable | 96 | 98 | 96 | 96 | ed4a934dff23f45d2b866e42cdfb6a35abd4aaa2 | bigcode/the-stack | train |
072c66dbb2b0f3c64891b652 | train | function | def test_AnalogTrigger_after_stable():
targeted_trigs = [1001, 2001, 3025, 4001]
check_trigger(0.1, 'after-stable', targeted_trigs, [])
| def test_AnalogTrigger_after_stable():
| targeted_trigs = [1001, 2001, 3025, 4001]
check_trigger(0.1, 'after-stable', targeted_trigs, [])
| test_AnalogTrigger_nodebounce():
targeted_trigs = [1001, 2001, 3001, 3015, 3025, 4001]
check_trigger(0.1, 'no-debounce', targeted_trigs, [])
def test_AnalogTrigger_after_stable():
| 63 | 64 | 50 | 9 | 54 | cimbi/pyacq | pyacq/dsp/tests/test_trigger.py | Python | test_AnalogTrigger_after_stable | test_AnalogTrigger_after_stable | 92 | 94 | 92 | 92 | 5304b2fe393d5efb38ae08785ef48f969c9e6cd0 | bigcode/the-stack | train |
be191632c4dc00e85922324d | train | function | def test_AnalogTrigger_nodebounce():
targeted_trigs = [1001, 2001, 3001, 3015, 3025, 4001]
check_trigger(0.1, 'no-debounce', targeted_trigs, [])
| def test_AnalogTrigger_nodebounce():
| targeted_trigs = [1001, 2001, 3001, 3015, 3025, 4001]
check_trigger(0.1, 'no-debounce', targeted_trigs, [])
| etected_triggers, targeted_trigs)
app.quit()
# start for a while
timer = QtCore.QTimer(singleShot=True, interval=5000)
timer.timeout.connect(terminate)
timer.start()
app.exec_()
def test_AnalogTrigger_nodebounce():
| 62 | 64 | 55 | 8 | 54 | cimbi/pyacq | pyacq/dsp/tests/test_trigger.py | Python | test_AnalogTrigger_nodebounce | test_AnalogTrigger_nodebounce | 87 | 89 | 87 | 87 | 4fcc5819b7831c14991ad4a9dfb86d35b565c818 | bigcode/the-stack | train |
a9cfc6f206530fb64bb197a8 | train | class | class TestSetProcTitle(unittest.TestCase):
def test_does_not_crash(self):
setproctitle("tad test title")
| class TestSetProcTitle(unittest.TestCase):
| def test_does_not_crash(self):
setproctitle("tad test title")
| import unittest
from tad.util.setproctitle import setproctitle
class TestSetProcTitle(unittest.TestCase):
| 25 | 64 | 30 | 9 | 15 | randywessels/tad-blockchain | tests/core/test_setproctitle.py | Python | TestSetProcTitle | TestSetProcTitle | 6 | 8 | 6 | 6 | 55e8cfa7c89311f34450eb5bc0b65a654a868e8d | bigcode/the-stack | train |
f3f22082d84985290af84f63 | train | function | def test_bench():
os.chdir(os.path.dirname(os.path.abspath(__file__)))
sim = Simulation(bench())
sim.run()
| def test_bench():
| os.chdir(os.path.dirname(os.path.abspath(__file__)))
sim = Simulation(bench())
sim.run()
| _frame = None
if not sink_queue.empty():
rx_frame = sink_queue.get()
assert rx_frame == test_frame
assert rx_frame.user[-1]
yield delay(100)
raise StopSimulation
return dut, source, sink, clkgen, check
def test_bench():
| 64 | 64 | 29 | 5 | 58 | alexforencich/hdg2000 | fpga/lib/axis/tb/test_axis_fifo.py | Python | test_bench | test_bench | 392 | 395 | 392 | 392 | 91162c7fb6c21a7a60a0f79d985d3c94c22b0609 | bigcode/the-stack | train |
e654939490ce1e9fb46b96c6 | train | function | def bench():
# Inputs
clk = Signal(bool(0))
rst = Signal(bool(0))
current_test = Signal(intbv(0)[8:])
input_axis_tdata = Signal(intbv(0)[8:])
input_axis_tvalid = Signal(bool(0))
input_axis_tlast = Signal(bool(0))
input_axis_tuser = Signal(bool(0))
output_axis_tready = Signal(bool(0... | def bench():
# Inputs
| clk = Signal(bool(0))
rst = Signal(bool(0))
current_test = Signal(intbv(0)[8:])
input_axis_tdata = Signal(intbv(0)[8:])
input_axis_tvalid = Signal(bool(0))
input_axis_tlast = Signal(bool(0))
input_axis_tuser = Signal(bool(0))
output_axis_tready = Signal(bool(0))
# Outputs
input... | o test_%s.vvp %s" % (module, src)
def dut_axis_fifo(clk,
rst,
current_test,
input_axis_tdata,
input_axis_tvalid,
input_axis_tready,
input_axis_tlast,
input_axis_tuser,
output_axis_t... | 256 | 256 | 2,469 | 7 | 249 | alexforencich/hdg2000 | fpga/lib/axis/tb/test_axis_fifo.py | Python | bench | bench | 82 | 390 | 82 | 84 | fd0f55d25cd907764be42901fd08f382a13d7aeb | bigcode/the-stack | train |
ce88c6d7844cb9867a19fbc8 | train | function | def dut_axis_fifo(clk,
rst,
current_test,
input_axis_tdata,
input_axis_tvalid,
input_axis_tready,
input_axis_tlast,
input_axis_tuser,
output_axis_tdata,
output_axis_... | def dut_axis_fifo(clk,
rst,
current_test,
input_axis_tdata,
input_axis_tvalid,
input_axis_tready,
input_axis_tlast,
input_axis_tuser,
output_axis_tdata,
output_axis_... | if os.system(build_cmd):
raise Exception("Error running build command")
return Cosimulation("vvp -m myhdl test_%s.vvp -lxt2" % module,
clk=clk,
rst=rst,
current_test=current_test,
input_axis_tdata=input_axis_tdata,
input_ax... | def dut_axis_fifo(clk,
rst,
current_test,
input_axis_tdata,
input_axis_tvalid,
input_axis_tready,
input_axis_tlast,
input_axis_tuser,
output_axis_tdata,
output_axis_... | 73 | 70 | 234 | 73 | 0 | alexforencich/hdg2000 | fpga/lib/axis/tb/test_axis_fifo.py | Python | dut_axis_fifo | dut_axis_fifo | 47 | 80 | 47 | 62 | dfe6727c19d0fb4bda367e24aa9643718122c927 | bigcode/the-stack | train |
60f4df20c3582a13fa60cbec | train | class | class SnapshotsOperations:
"""SnapshotsOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type mo... | class SnapshotsOperations:
| """SnapshotsOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~azure.mgmt.compute.v... | , Dict, Optional, TypeVar, Union
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
from azure.core.pipeline import PipelineResponse
from azure.core.pipeline.transport import... | 256 | 256 | 7,783 | 5 | 251 | dubiety/azure-sdk-for-python | sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_snapshots_operations.py | Python | SnapshotsOperations | SnapshotsOperations | 28 | 855 | 28 | 28 | e454578629ba00f2bd6ea7e7ffd3f3afcb18426a | bigcode/the-stack | train |
3d09623d39ca17624236c7e6 | train | function | def PlotRewards(val, x, y, z):
plt.plot(val, x, label='x')
plt.plot(val, y, label='y')
plt.plot(val, z, label='z')
plt.ylabel('Reward')
plt.xlabel('Position')
plt.legend(bbox_to_anchor=(1.05, 0.9), loc=2, borderaxespad=0.)
plt.savefig('Reward_with_position.png', bbox_inches='tight')
| def PlotRewards(val, x, y, z):
| plt.plot(val, x, label='x')
plt.plot(val, y, label='y')
plt.plot(val, z, label='z')
plt.ylabel('Reward')
plt.xlabel('Position')
plt.legend(bbox_to_anchor=(1.05, 0.9), loc=2, borderaxespad=0.)
plt.savefig('Reward_with_position.png', bbox_inches='tight')
| float(val/100), 0, 0], target_state))
r_z.append(module.get_reward([0, 0, float(val/100), 0], target_state))
PlotRewards(value_list, r_x, r_y, r_z)
def PlotRewards(val, x, y, z):
| 64 | 64 | 97 | 11 | 53 | umd-agrc/QuadRL | pytorch-dqn-cxy/scripts/test_rewards.py | Python | PlotRewards | PlotRewards | 24 | 31 | 24 | 24 | 7e004032f3ec4b02765e689569b0db6595e2b626 | bigcode/the-stack | train |
eb50b3ba39ccbad64d94e0a4 | train | function | def testRewards():
module = pytorch_helper.QuadDQN()
target_state = [5,0,0,0]
value_list = []
r_x = []
r_y = []
r_z = []
for val in range(100, 501, 1):
value_list.append(val/100)
r_x.append(module.get_reward([float(val/100), 0, 0, 0], target_state))
r_y.append(modu... | def testRewards():
| module = pytorch_helper.QuadDQN()
target_state = [5,0,0,0]
value_list = []
r_x = []
r_y = []
r_z = []
for val in range(100, 501, 1):
value_list.append(val/100)
r_x.append(module.get_reward([float(val/100), 0, 0, 0], target_state))
r_y.append(module.get_reward([0, f... | __author__ = 'patras'
import pytorch_helper
import matplotlib.pyplot as plt
def testRewards():
| 23 | 64 | 158 | 4 | 18 | umd-agrc/QuadRL | pytorch-dqn-cxy/scripts/test_rewards.py | Python | testRewards | testRewards | 6 | 22 | 6 | 6 | 03440a8ea85db48ada31db272b49cc47d9b0a2e7 | bigcode/the-stack | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.