body
stringlengths 26
98.2k
| body_hash
int64 -9,222,864,604,528,158,000
9,221,803,474B
| docstring
stringlengths 1
16.8k
| path
stringlengths 5
230
| name
stringlengths 1
96
| repository_name
stringlengths 7
89
| lang
stringclasses 1
value | body_without_docstring
stringlengths 20
98.2k
|
|---|---|---|---|---|---|---|---|
@property
@pulumi.getter(name='diskConfigs')
def disk_configs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DiskInstantiationConfigArgs']]]]:
'\n Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.\n '
return pulumi.get(self, 'disk_configs')
| 6,694,595,955,768,700,000
|
Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
disk_configs
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='diskConfigs')
def disk_configs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DiskInstantiationConfigArgs']]]]:
'\n \n '
return pulumi.get(self, 'disk_configs')
|
def __init__(__self__, *, domains: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None):
'\n Configuration and status of a managed SSL certificate.\n :param pulumi.Input[Sequence[pulumi.Input[str]]] domains: The domains for which a managed SSL certificate will be generated. Each Google-managed SSL certificate supports up to the [maximum number of domains per Google-managed SSL certificate](/load-balancing/docs/quotas#ssl_certificates).\n '
if (domains is not None):
pulumi.set(__self__, 'domains', domains)
| 2,298,646,059,395,573,000
|
Configuration and status of a managed SSL certificate.
:param pulumi.Input[Sequence[pulumi.Input[str]]] domains: The domains for which a managed SSL certificate will be generated. Each Google-managed SSL certificate supports up to the [maximum number of domains per Google-managed SSL certificate](/load-balancing/docs/quotas#ssl_certificates).
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, domains: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None):
'\n Configuration and status of a managed SSL certificate.\n :param pulumi.Input[Sequence[pulumi.Input[str]]] domains: The domains for which a managed SSL certificate will be generated. Each Google-managed SSL certificate supports up to the [maximum number of domains per Google-managed SSL certificate](/load-balancing/docs/quotas#ssl_certificates).\n '
if (domains is not None):
pulumi.set(__self__, 'domains', domains)
|
@property
@pulumi.getter
def domains(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
'\n The domains for which a managed SSL certificate will be generated. Each Google-managed SSL certificate supports up to the [maximum number of domains per Google-managed SSL certificate](/load-balancing/docs/quotas#ssl_certificates).\n '
return pulumi.get(self, 'domains')
| -801,400,469,837,250,600
|
The domains for which a managed SSL certificate will be generated. Each Google-managed SSL certificate supports up to the [maximum number of domains per Google-managed SSL certificate](/load-balancing/docs/quotas#ssl_certificates).
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
domains
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def domains(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
'\n \n '
return pulumi.get(self, 'domains')
|
def __init__(__self__, *, certificate: Optional[pulumi.Input[str]]=None, private_key: Optional[pulumi.Input[str]]=None):
'\n Configuration and status of a self-managed SSL certificate.\n :param pulumi.Input[str] certificate: A local certificate file. The certificate must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.\n :param pulumi.Input[str] private_key: A write-only private key in PEM format. Only insert requests will include this field.\n '
if (certificate is not None):
pulumi.set(__self__, 'certificate', certificate)
if (private_key is not None):
pulumi.set(__self__, 'private_key', private_key)
| -3,251,247,457,154,369,000
|
Configuration and status of a self-managed SSL certificate.
:param pulumi.Input[str] certificate: A local certificate file. The certificate must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.
:param pulumi.Input[str] private_key: A write-only private key in PEM format. Only insert requests will include this field.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, certificate: Optional[pulumi.Input[str]]=None, private_key: Optional[pulumi.Input[str]]=None):
'\n Configuration and status of a self-managed SSL certificate.\n :param pulumi.Input[str] certificate: A local certificate file. The certificate must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.\n :param pulumi.Input[str] private_key: A write-only private key in PEM format. Only insert requests will include this field.\n '
if (certificate is not None):
pulumi.set(__self__, 'certificate', certificate)
if (private_key is not None):
pulumi.set(__self__, 'private_key', private_key)
|
@property
@pulumi.getter
def certificate(self) -> Optional[pulumi.Input[str]]:
'\n A local certificate file. The certificate must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.\n '
return pulumi.get(self, 'certificate')
| 992,994,979,013,630,700
|
A local certificate file. The certificate must be in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
certificate
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def certificate(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'certificate')
|
@property
@pulumi.getter(name='privateKey')
def private_key(self) -> Optional[pulumi.Input[str]]:
'\n A write-only private key in PEM format. Only insert requests will include this field.\n '
return pulumi.get(self, 'private_key')
| 6,906,119,816,546,174,000
|
A write-only private key in PEM format. Only insert requests will include this field.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
private_key
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='privateKey')
def private_key(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'private_key')
|
def __init__(__self__, *, disks: Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]=None, external_ips: Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]=None, internal_ips: Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]=None):
'\n Configuration of preserved resources.\n :param pulumi.Input[Mapping[str, pulumi.Input[str]]] disks: Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.\n :param pulumi.Input[Mapping[str, pulumi.Input[str]]] external_ips: External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.\n :param pulumi.Input[Mapping[str, pulumi.Input[str]]] internal_ips: Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.\n '
if (disks is not None):
pulumi.set(__self__, 'disks', disks)
if (external_ips is not None):
pulumi.set(__self__, 'external_ips', external_ips)
if (internal_ips is not None):
pulumi.set(__self__, 'internal_ips', internal_ips)
| -6,516,927,209,852,241,000
|
Configuration of preserved resources.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] disks: Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] external_ips: External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] internal_ips: Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, disks: Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]=None, external_ips: Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]=None, internal_ips: Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]=None):
'\n Configuration of preserved resources.\n :param pulumi.Input[Mapping[str, pulumi.Input[str]]] disks: Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.\n :param pulumi.Input[Mapping[str, pulumi.Input[str]]] external_ips: External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.\n :param pulumi.Input[Mapping[str, pulumi.Input[str]]] internal_ips: Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.\n '
if (disks is not None):
pulumi.set(__self__, 'disks', disks)
if (external_ips is not None):
pulumi.set(__self__, 'external_ips', external_ips)
if (internal_ips is not None):
pulumi.set(__self__, 'internal_ips', internal_ips)
|
@property
@pulumi.getter
def disks(self) -> Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]:
'\n Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.\n '
return pulumi.get(self, 'disks')
| 317,183,485,970,914,300
|
Disks created on the instances that will be preserved on instance delete, update, etc. This map is keyed with the device names of the disks.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
disks
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def disks(self) -> Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]:
'\n \n '
return pulumi.get(self, 'disks')
|
@property
@pulumi.getter(name='externalIPs')
def external_ips(self) -> Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]:
'\n External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.\n '
return pulumi.get(self, 'external_ips')
| -5,193,703,043,888,742,000
|
External network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
external_ips
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='externalIPs')
def external_ips(self) -> Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]:
'\n \n '
return pulumi.get(self, 'external_ips')
|
@property
@pulumi.getter(name='internalIPs')
def internal_ips(self) -> Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]:
'\n Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.\n '
return pulumi.get(self, 'internal_ips')
| 1,221,492,189,674,744,300
|
Internal network IPs assigned to the instances that will be preserved on instance delete, update, etc. This map is keyed with the network interface name.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
internal_ips
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='internalIPs')
def internal_ips(self) -> Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]:
'\n \n '
return pulumi.get(self, 'internal_ips')
|
def __init__(__self__, *, aggregation_interval: Optional[pulumi.Input['SubnetworkLogConfigAggregationInterval']]=None, enable: Optional[pulumi.Input[bool]]=None, filter_expr: Optional[pulumi.Input[str]]=None, flow_sampling: Optional[pulumi.Input[float]]=None, metadata: Optional[pulumi.Input['SubnetworkLogConfigMetadata']]=None, metadata_fields: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None):
'\n The available logging options for this subnetwork.\n :param pulumi.Input[\'SubnetworkLogConfigAggregationInterval\'] aggregation_interval: Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.\n :param pulumi.Input[bool] enable: Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled.\n :param pulumi.Input[str] filter_expr: Can only be specified if VPC flow logs for this subnetwork is enabled. Export filter used to define which VPC flow logs should be logged.\n :param pulumi.Input[float] flow_sampling: Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.\n :param pulumi.Input[\'SubnetworkLogConfigMetadata\'] metadata: Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.\n :param pulumi.Input[Sequence[pulumi.Input[str]]] metadata_fields: Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.\n '
if (aggregation_interval is not None):
pulumi.set(__self__, 'aggregation_interval', aggregation_interval)
if (enable is not None):
pulumi.set(__self__, 'enable', enable)
if (filter_expr is not None):
pulumi.set(__self__, 'filter_expr', filter_expr)
if (flow_sampling is not None):
pulumi.set(__self__, 'flow_sampling', flow_sampling)
if (metadata is not None):
pulumi.set(__self__, 'metadata', metadata)
if (metadata_fields is not None):
pulumi.set(__self__, 'metadata_fields', metadata_fields)
| -3,703,733,338,975,116,000
|
The available logging options for this subnetwork.
:param pulumi.Input['SubnetworkLogConfigAggregationInterval'] aggregation_interval: Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
:param pulumi.Input[bool] enable: Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled.
:param pulumi.Input[str] filter_expr: Can only be specified if VPC flow logs for this subnetwork is enabled. Export filter used to define which VPC flow logs should be logged.
:param pulumi.Input[float] flow_sampling: Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
:param pulumi.Input['SubnetworkLogConfigMetadata'] metadata: Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
:param pulumi.Input[Sequence[pulumi.Input[str]]] metadata_fields: Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, aggregation_interval: Optional[pulumi.Input['SubnetworkLogConfigAggregationInterval']]=None, enable: Optional[pulumi.Input[bool]]=None, filter_expr: Optional[pulumi.Input[str]]=None, flow_sampling: Optional[pulumi.Input[float]]=None, metadata: Optional[pulumi.Input['SubnetworkLogConfigMetadata']]=None, metadata_fields: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None):
'\n The available logging options for this subnetwork.\n :param pulumi.Input[\'SubnetworkLogConfigAggregationInterval\'] aggregation_interval: Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.\n :param pulumi.Input[bool] enable: Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled.\n :param pulumi.Input[str] filter_expr: Can only be specified if VPC flow logs for this subnetwork is enabled. Export filter used to define which VPC flow logs should be logged.\n :param pulumi.Input[float] flow_sampling: Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.\n :param pulumi.Input[\'SubnetworkLogConfigMetadata\'] metadata: Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.\n :param pulumi.Input[Sequence[pulumi.Input[str]]] metadata_fields: Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.\n '
if (aggregation_interval is not None):
pulumi.set(__self__, 'aggregation_interval', aggregation_interval)
if (enable is not None):
pulumi.set(__self__, 'enable', enable)
if (filter_expr is not None):
pulumi.set(__self__, 'filter_expr', filter_expr)
if (flow_sampling is not None):
pulumi.set(__self__, 'flow_sampling', flow_sampling)
if (metadata is not None):
pulumi.set(__self__, 'metadata', metadata)
if (metadata_fields is not None):
pulumi.set(__self__, 'metadata_fields', metadata_fields)
|
@property
@pulumi.getter(name='aggregationInterval')
def aggregation_interval(self) -> Optional[pulumi.Input['SubnetworkLogConfigAggregationInterval']]:
'\n Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.\n '
return pulumi.get(self, 'aggregation_interval')
| -8,019,831,664,169,900,000
|
Can only be specified if VPC flow logging for this subnetwork is enabled. Toggles the aggregation interval for collecting flow logs. Increasing the interval time will reduce the amount of generated flow logs for long lasting connections. Default is an interval of 5 seconds per connection.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
aggregation_interval
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='aggregationInterval')
def aggregation_interval(self) -> Optional[pulumi.Input['SubnetworkLogConfigAggregationInterval']]:
'\n \n '
return pulumi.get(self, 'aggregation_interval')
|
@property
@pulumi.getter
def enable(self) -> Optional[pulumi.Input[bool]]:
'\n Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled.\n '
return pulumi.get(self, 'enable')
| 5,968,088,489,047,242,000
|
Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
enable
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def enable(self) -> Optional[pulumi.Input[bool]]:
'\n \n '
return pulumi.get(self, 'enable')
|
@property
@pulumi.getter(name='filterExpr')
def filter_expr(self) -> Optional[pulumi.Input[str]]:
'\n Can only be specified if VPC flow logs for this subnetwork is enabled. Export filter used to define which VPC flow logs should be logged.\n '
return pulumi.get(self, 'filter_expr')
| 2,572,489,801,882,862,000
|
Can only be specified if VPC flow logs for this subnetwork is enabled. Export filter used to define which VPC flow logs should be logged.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
filter_expr
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='filterExpr')
def filter_expr(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'filter_expr')
|
@property
@pulumi.getter(name='flowSampling')
def flow_sampling(self) -> Optional[pulumi.Input[float]]:
'\n Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.\n '
return pulumi.get(self, 'flow_sampling')
| 8,526,403,739,502,243,000
|
Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
flow_sampling
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='flowSampling')
def flow_sampling(self) -> Optional[pulumi.Input[float]]:
'\n \n '
return pulumi.get(self, 'flow_sampling')
|
@property
@pulumi.getter
def metadata(self) -> Optional[pulumi.Input['SubnetworkLogConfigMetadata']]:
'\n Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.\n '
return pulumi.get(self, 'metadata')
| 6,738,678,486,944,232,000
|
Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
metadata
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def metadata(self) -> Optional[pulumi.Input['SubnetworkLogConfigMetadata']]:
'\n \n '
return pulumi.get(self, 'metadata')
|
@property
@pulumi.getter(name='metadataFields')
def metadata_fields(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
'\n Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.\n '
return pulumi.get(self, 'metadata_fields')
| -1,913,677,869,542,642,000
|
Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" was set to CUSTOM_METADATA.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
metadata_fields
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='metadataFields')
def metadata_fields(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
'\n \n '
return pulumi.get(self, 'metadata_fields')
|
def __init__(__self__, *, ip_cidr_range: Optional[pulumi.Input[str]]=None, range_name: Optional[pulumi.Input[str]]=None, reserved_internal_range: Optional[pulumi.Input[str]]=None):
'\n Represents a secondary IP range of a subnetwork.\n :param pulumi.Input[str] ip_cidr_range: The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.\n :param pulumi.Input[str] range_name: The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.\n :param pulumi.Input[str] reserved_internal_range: The URL of the reserved internal range.\n '
if (ip_cidr_range is not None):
pulumi.set(__self__, 'ip_cidr_range', ip_cidr_range)
if (range_name is not None):
pulumi.set(__self__, 'range_name', range_name)
if (reserved_internal_range is not None):
pulumi.set(__self__, 'reserved_internal_range', reserved_internal_range)
| -7,837,676,004,492,317,000
|
Represents a secondary IP range of a subnetwork.
:param pulumi.Input[str] ip_cidr_range: The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.
:param pulumi.Input[str] range_name: The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
:param pulumi.Input[str] reserved_internal_range: The URL of the reserved internal range.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, ip_cidr_range: Optional[pulumi.Input[str]]=None, range_name: Optional[pulumi.Input[str]]=None, reserved_internal_range: Optional[pulumi.Input[str]]=None):
'\n Represents a secondary IP range of a subnetwork.\n :param pulumi.Input[str] ip_cidr_range: The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.\n :param pulumi.Input[str] range_name: The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.\n :param pulumi.Input[str] reserved_internal_range: The URL of the reserved internal range.\n '
if (ip_cidr_range is not None):
pulumi.set(__self__, 'ip_cidr_range', ip_cidr_range)
if (range_name is not None):
pulumi.set(__self__, 'range_name', range_name)
if (reserved_internal_range is not None):
pulumi.set(__self__, 'reserved_internal_range', reserved_internal_range)
|
@property
@pulumi.getter(name='ipCidrRange')
def ip_cidr_range(self) -> Optional[pulumi.Input[str]]:
'\n The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.\n '
return pulumi.get(self, 'ip_cidr_range')
| 4,145,575,447,225,277,400
|
The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
ip_cidr_range
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='ipCidrRange')
def ip_cidr_range(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'ip_cidr_range')
|
@property
@pulumi.getter(name='rangeName')
def range_name(self) -> Optional[pulumi.Input[str]]:
'\n The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.\n '
return pulumi.get(self, 'range_name')
| -1,671,520,963,815,155,500
|
The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
range_name
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='rangeName')
def range_name(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'range_name')
|
@property
@pulumi.getter(name='reservedInternalRange')
def reserved_internal_range(self) -> Optional[pulumi.Input[str]]:
'\n The URL of the reserved internal range.\n '
return pulumi.get(self, 'reserved_internal_range')
| -2,981,251,857,079,136,000
|
The URL of the reserved internal range.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
reserved_internal_range
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='reservedInternalRange')
def reserved_internal_range(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'reserved_internal_range')
|
def __init__(__self__, *, policy: Optional[pulumi.Input['SubsettingPolicy']]=None, subset_size: Optional[pulumi.Input[int]]=None):
'\n Subsetting configuration for this BackendService. Currently this is applicable only for Internal TCP/UDP load balancing, Internal HTTP(S) load balancing and Traffic Director.\n :param pulumi.Input[int] subset_size: The number of backends per backend group assigned to each proxy instance or each service mesh client. An input parameter to the `CONSISTENT_HASH_SUBSETTING` algorithm. Can only be set if `policy` is set to `CONSISTENT_HASH_SUBSETTING`. Can only be set if load balancing scheme is `INTERNAL_MANAGED` or `INTERNAL_SELF_MANAGED`. `subset_size` is optional for Internal HTTP(S) load balancing and required for Traffic Director. If you do not provide this value, Cloud Load Balancing will calculate it dynamically to optimize the number of proxies/clients visible to each backend and vice versa. Must be greater than 0. If `subset_size` is larger than the number of backends/endpoints, then subsetting is disabled.\n '
if (policy is not None):
pulumi.set(__self__, 'policy', policy)
if (subset_size is not None):
pulumi.set(__self__, 'subset_size', subset_size)
| -2,292,544,194,412,058,600
|
Subsetting configuration for this BackendService. Currently this is applicable only for Internal TCP/UDP load balancing, Internal HTTP(S) load balancing and Traffic Director.
:param pulumi.Input[int] subset_size: The number of backends per backend group assigned to each proxy instance or each service mesh client. An input parameter to the `CONSISTENT_HASH_SUBSETTING` algorithm. Can only be set if `policy` is set to `CONSISTENT_HASH_SUBSETTING`. Can only be set if load balancing scheme is `INTERNAL_MANAGED` or `INTERNAL_SELF_MANAGED`. `subset_size` is optional for Internal HTTP(S) load balancing and required for Traffic Director. If you do not provide this value, Cloud Load Balancing will calculate it dynamically to optimize the number of proxies/clients visible to each backend and vice versa. Must be greater than 0. If `subset_size` is larger than the number of backends/endpoints, then subsetting is disabled.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, policy: Optional[pulumi.Input['SubsettingPolicy']]=None, subset_size: Optional[pulumi.Input[int]]=None):
'\n Subsetting configuration for this BackendService. Currently this is applicable only for Internal TCP/UDP load balancing, Internal HTTP(S) load balancing and Traffic Director.\n :param pulumi.Input[int] subset_size: The number of backends per backend group assigned to each proxy instance or each service mesh client. An input parameter to the `CONSISTENT_HASH_SUBSETTING` algorithm. Can only be set if `policy` is set to `CONSISTENT_HASH_SUBSETTING`. Can only be set if load balancing scheme is `INTERNAL_MANAGED` or `INTERNAL_SELF_MANAGED`. `subset_size` is optional for Internal HTTP(S) load balancing and required for Traffic Director. If you do not provide this value, Cloud Load Balancing will calculate it dynamically to optimize the number of proxies/clients visible to each backend and vice versa. Must be greater than 0. If `subset_size` is larger than the number of backends/endpoints, then subsetting is disabled.\n '
if (policy is not None):
pulumi.set(__self__, 'policy', policy)
if (subset_size is not None):
pulumi.set(__self__, 'subset_size', subset_size)
|
@property
@pulumi.getter(name='subsetSize')
def subset_size(self) -> Optional[pulumi.Input[int]]:
'\n The number of backends per backend group assigned to each proxy instance or each service mesh client. An input parameter to the `CONSISTENT_HASH_SUBSETTING` algorithm. Can only be set if `policy` is set to `CONSISTENT_HASH_SUBSETTING`. Can only be set if load balancing scheme is `INTERNAL_MANAGED` or `INTERNAL_SELF_MANAGED`. `subset_size` is optional for Internal HTTP(S) load balancing and required for Traffic Director. If you do not provide this value, Cloud Load Balancing will calculate it dynamically to optimize the number of proxies/clients visible to each backend and vice versa. Must be greater than 0. If `subset_size` is larger than the number of backends/endpoints, then subsetting is disabled.\n '
return pulumi.get(self, 'subset_size')
| 4,824,476,792,218,949,000
|
The number of backends per backend group assigned to each proxy instance or each service mesh client. An input parameter to the `CONSISTENT_HASH_SUBSETTING` algorithm. Can only be set if `policy` is set to `CONSISTENT_HASH_SUBSETTING`. Can only be set if load balancing scheme is `INTERNAL_MANAGED` or `INTERNAL_SELF_MANAGED`. `subset_size` is optional for Internal HTTP(S) load balancing and required for Traffic Director. If you do not provide this value, Cloud Load Balancing will calculate it dynamically to optimize the number of proxies/clients visible to each backend and vice versa. Must be greater than 0. If `subset_size` is larger than the number of backends/endpoints, then subsetting is disabled.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
subset_size
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='subsetSize')
def subset_size(self) -> Optional[pulumi.Input[int]]:
'\n \n '
return pulumi.get(self, 'subset_size')
|
def __init__(__self__, *, port: Optional[pulumi.Input[int]]=None, port_name: Optional[pulumi.Input[str]]=None, port_specification: Optional[pulumi.Input['TCPHealthCheckPortSpecification']]=None, proxy_header: Optional[pulumi.Input['TCPHealthCheckProxyHeader']]=None, request: Optional[pulumi.Input[str]]=None, response: Optional[pulumi.Input[str]]=None):
"\n :param pulumi.Input[int] port: The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.\n :param pulumi.Input[str] port_name: Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.\n :param pulumi.Input['TCPHealthCheckPortSpecification'] port_specification: Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, TCP health check follows behavior specified in port and portName fields.\n :param pulumi.Input['TCPHealthCheckProxyHeader'] proxy_header: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.\n :param pulumi.Input[str] request: The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.\n :param pulumi.Input[str] response: The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.\n "
if (port is not None):
pulumi.set(__self__, 'port', port)
if (port_name is not None):
pulumi.set(__self__, 'port_name', port_name)
if (port_specification is not None):
pulumi.set(__self__, 'port_specification', port_specification)
if (proxy_header is not None):
pulumi.set(__self__, 'proxy_header', proxy_header)
if (request is not None):
pulumi.set(__self__, 'request', request)
if (response is not None):
pulumi.set(__self__, 'response', response)
| 6,303,805,084,441,019,000
|
:param pulumi.Input[int] port: The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
:param pulumi.Input[str] port_name: Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
:param pulumi.Input['TCPHealthCheckPortSpecification'] port_specification: Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, TCP health check follows behavior specified in port and portName fields.
:param pulumi.Input['TCPHealthCheckProxyHeader'] proxy_header: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
:param pulumi.Input[str] request: The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
:param pulumi.Input[str] response: The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, port: Optional[pulumi.Input[int]]=None, port_name: Optional[pulumi.Input[str]]=None, port_specification: Optional[pulumi.Input['TCPHealthCheckPortSpecification']]=None, proxy_header: Optional[pulumi.Input['TCPHealthCheckProxyHeader']]=None, request: Optional[pulumi.Input[str]]=None, response: Optional[pulumi.Input[str]]=None):
"\n :param pulumi.Input[int] port: The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.\n :param pulumi.Input[str] port_name: Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.\n :param pulumi.Input['TCPHealthCheckPortSpecification'] port_specification: Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, TCP health check follows behavior specified in port and portName fields.\n :param pulumi.Input['TCPHealthCheckProxyHeader'] proxy_header: Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.\n :param pulumi.Input[str] request: The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.\n :param pulumi.Input[str] response: The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.\n "
if (port is not None):
pulumi.set(__self__, 'port', port)
if (port_name is not None):
pulumi.set(__self__, 'port_name', port_name)
if (port_specification is not None):
pulumi.set(__self__, 'port_specification', port_specification)
if (proxy_header is not None):
pulumi.set(__self__, 'proxy_header', proxy_header)
if (request is not None):
pulumi.set(__self__, 'request', request)
if (response is not None):
pulumi.set(__self__, 'response', response)
|
@property
@pulumi.getter
def port(self) -> Optional[pulumi.Input[int]]:
'\n The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.\n '
return pulumi.get(self, 'port')
| -4,601,225,271,956,249,600
|
The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
port
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def port(self) -> Optional[pulumi.Input[int]]:
'\n \n '
return pulumi.get(self, 'port')
|
@property
@pulumi.getter(name='portName')
def port_name(self) -> Optional[pulumi.Input[str]]:
'\n Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.\n '
return pulumi.get(self, 'port_name')
| -819,122,187,026,193,200
|
Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
port_name
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='portName')
def port_name(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'port_name')
|
@property
@pulumi.getter(name='portSpecification')
def port_specification(self) -> Optional[pulumi.Input['TCPHealthCheckPortSpecification']]:
'\n Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, TCP health check follows behavior specified in port and portName fields.\n '
return pulumi.get(self, 'port_specification')
| -4,109,359,466,998,899,000
|
Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, TCP health check follows behavior specified in port and portName fields.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
port_specification
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='portSpecification')
def port_specification(self) -> Optional[pulumi.Input['TCPHealthCheckPortSpecification']]:
'\n \n '
return pulumi.get(self, 'port_specification')
|
@property
@pulumi.getter(name='proxyHeader')
def proxy_header(self) -> Optional[pulumi.Input['TCPHealthCheckProxyHeader']]:
'\n Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.\n '
return pulumi.get(self, 'proxy_header')
| -80,188,806,129,658,860
|
Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
proxy_header
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='proxyHeader')
def proxy_header(self) -> Optional[pulumi.Input['TCPHealthCheckProxyHeader']]:
'\n \n '
return pulumi.get(self, 'proxy_header')
|
@property
@pulumi.getter
def request(self) -> Optional[pulumi.Input[str]]:
'\n The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.\n '
return pulumi.get(self, 'request')
| -3,334,077,532,030,340,000
|
The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
request
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def request(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'request')
|
@property
@pulumi.getter
def response(self) -> Optional[pulumi.Input[str]]:
'\n The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.\n '
return pulumi.get(self, 'response')
| -5,870,028,318,372,682,000
|
The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
response
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def response(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'response')
|
def __init__(__self__, *, items: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None):
'\n A set of instance tags.\n :param pulumi.Input[Sequence[pulumi.Input[str]]] items: An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.\n '
if (items is not None):
pulumi.set(__self__, 'items', items)
| 8,779,581,505,768,789,000
|
A set of instance tags.
:param pulumi.Input[Sequence[pulumi.Input[str]]] items: An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, items: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None):
'\n A set of instance tags.\n :param pulumi.Input[Sequence[pulumi.Input[str]]] items: An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.\n '
if (items is not None):
pulumi.set(__self__, 'items', items)
|
@property
@pulumi.getter
def items(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
'\n An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.\n '
return pulumi.get(self, 'items')
| -3,906,945,972,655,431,000
|
An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
items
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def items(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
'\n \n '
return pulumi.get(self, 'items')
|
def __init__(__self__, *, certificate_paths: Optional[pulumi.Input['TlsCertificatePathsArgs']]=None, certificate_source: Optional[pulumi.Input['TlsCertificateContextCertificateSource']]=None, sds_config: Optional[pulumi.Input['SdsConfigArgs']]=None):
"\n [Deprecated] Defines the mechanism to obtain the client or server certificate. Defines the mechanism to obtain the client or server certificate.\n :param pulumi.Input['TlsCertificatePathsArgs'] certificate_paths: Specifies the certificate and private key paths. This field is applicable only if tlsCertificateSource is set to USE_PATH.\n :param pulumi.Input['TlsCertificateContextCertificateSource'] certificate_source: Defines how TLS certificates are obtained.\n :param pulumi.Input['SdsConfigArgs'] sds_config: Specifies the config to retrieve certificates through SDS. This field is applicable only if tlsCertificateSource is set to USE_SDS.\n "
if (certificate_paths is not None):
pulumi.set(__self__, 'certificate_paths', certificate_paths)
if (certificate_source is not None):
pulumi.set(__self__, 'certificate_source', certificate_source)
if (sds_config is not None):
pulumi.set(__self__, 'sds_config', sds_config)
| -7,256,131,493,516,926,000
|
[Deprecated] Defines the mechanism to obtain the client or server certificate. Defines the mechanism to obtain the client or server certificate.
:param pulumi.Input['TlsCertificatePathsArgs'] certificate_paths: Specifies the certificate and private key paths. This field is applicable only if tlsCertificateSource is set to USE_PATH.
:param pulumi.Input['TlsCertificateContextCertificateSource'] certificate_source: Defines how TLS certificates are obtained.
:param pulumi.Input['SdsConfigArgs'] sds_config: Specifies the config to retrieve certificates through SDS. This field is applicable only if tlsCertificateSource is set to USE_SDS.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, certificate_paths: Optional[pulumi.Input['TlsCertificatePathsArgs']]=None, certificate_source: Optional[pulumi.Input['TlsCertificateContextCertificateSource']]=None, sds_config: Optional[pulumi.Input['SdsConfigArgs']]=None):
"\n [Deprecated] Defines the mechanism to obtain the client or server certificate. Defines the mechanism to obtain the client or server certificate.\n :param pulumi.Input['TlsCertificatePathsArgs'] certificate_paths: Specifies the certificate and private key paths. This field is applicable only if tlsCertificateSource is set to USE_PATH.\n :param pulumi.Input['TlsCertificateContextCertificateSource'] certificate_source: Defines how TLS certificates are obtained.\n :param pulumi.Input['SdsConfigArgs'] sds_config: Specifies the config to retrieve certificates through SDS. This field is applicable only if tlsCertificateSource is set to USE_SDS.\n "
if (certificate_paths is not None):
pulumi.set(__self__, 'certificate_paths', certificate_paths)
if (certificate_source is not None):
pulumi.set(__self__, 'certificate_source', certificate_source)
if (sds_config is not None):
pulumi.set(__self__, 'sds_config', sds_config)
|
@property
@pulumi.getter(name='certificatePaths')
def certificate_paths(self) -> Optional[pulumi.Input['TlsCertificatePathsArgs']]:
'\n Specifies the certificate and private key paths. This field is applicable only if tlsCertificateSource is set to USE_PATH.\n '
return pulumi.get(self, 'certificate_paths')
| -3,643,304,083,716,361,000
|
Specifies the certificate and private key paths. This field is applicable only if tlsCertificateSource is set to USE_PATH.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
certificate_paths
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='certificatePaths')
def certificate_paths(self) -> Optional[pulumi.Input['TlsCertificatePathsArgs']]:
'\n \n '
return pulumi.get(self, 'certificate_paths')
|
@property
@pulumi.getter(name='certificateSource')
def certificate_source(self) -> Optional[pulumi.Input['TlsCertificateContextCertificateSource']]:
'\n Defines how TLS certificates are obtained.\n '
return pulumi.get(self, 'certificate_source')
| -4,851,310,265,105,012,000
|
Defines how TLS certificates are obtained.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
certificate_source
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='certificateSource')
def certificate_source(self) -> Optional[pulumi.Input['TlsCertificateContextCertificateSource']]:
'\n \n '
return pulumi.get(self, 'certificate_source')
|
@property
@pulumi.getter(name='sdsConfig')
def sds_config(self) -> Optional[pulumi.Input['SdsConfigArgs']]:
'\n Specifies the config to retrieve certificates through SDS. This field is applicable only if tlsCertificateSource is set to USE_SDS.\n '
return pulumi.get(self, 'sds_config')
| 2,803,324,804,546,200,600
|
Specifies the config to retrieve certificates through SDS. This field is applicable only if tlsCertificateSource is set to USE_SDS.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
sds_config
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='sdsConfig')
def sds_config(self) -> Optional[pulumi.Input['SdsConfigArgs']]:
'\n \n '
return pulumi.get(self, 'sds_config')
|
def __init__(__self__, *, certificate_path: Optional[pulumi.Input[str]]=None, private_key_path: Optional[pulumi.Input[str]]=None):
'\n [Deprecated] The paths to the mounted TLS Certificates and private key. The paths to the mounted TLS Certificates and private key.\n :param pulumi.Input[str] certificate_path: The path to the file holding the client or server TLS certificate to use.\n :param pulumi.Input[str] private_key_path: The path to the file holding the client or server private key.\n '
if (certificate_path is not None):
pulumi.set(__self__, 'certificate_path', certificate_path)
if (private_key_path is not None):
pulumi.set(__self__, 'private_key_path', private_key_path)
| 8,803,245,741,830,943,000
|
[Deprecated] The paths to the mounted TLS Certificates and private key. The paths to the mounted TLS Certificates and private key.
:param pulumi.Input[str] certificate_path: The path to the file holding the client or server TLS certificate to use.
:param pulumi.Input[str] private_key_path: The path to the file holding the client or server private key.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, certificate_path: Optional[pulumi.Input[str]]=None, private_key_path: Optional[pulumi.Input[str]]=None):
'\n [Deprecated] The paths to the mounted TLS Certificates and private key. The paths to the mounted TLS Certificates and private key.\n :param pulumi.Input[str] certificate_path: The path to the file holding the client or server TLS certificate to use.\n :param pulumi.Input[str] private_key_path: The path to the file holding the client or server private key.\n '
if (certificate_path is not None):
pulumi.set(__self__, 'certificate_path', certificate_path)
if (private_key_path is not None):
pulumi.set(__self__, 'private_key_path', private_key_path)
|
@property
@pulumi.getter(name='certificatePath')
def certificate_path(self) -> Optional[pulumi.Input[str]]:
'\n The path to the file holding the client or server TLS certificate to use.\n '
return pulumi.get(self, 'certificate_path')
| 3,523,587,431,301,809,700
|
The path to the file holding the client or server TLS certificate to use.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
certificate_path
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='certificatePath')
def certificate_path(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'certificate_path')
|
@property
@pulumi.getter(name='privateKeyPath')
def private_key_path(self) -> Optional[pulumi.Input[str]]:
'\n The path to the file holding the client or server private key.\n '
return pulumi.get(self, 'private_key_path')
| -7,577,956,022,052,257,000
|
The path to the file holding the client or server private key.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
private_key_path
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='privateKeyPath')
def private_key_path(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'private_key_path')
|
def __init__(__self__, *, certificate_context: Optional[pulumi.Input['TlsCertificateContextArgs']]=None, validation_context: Optional[pulumi.Input['TlsValidationContextArgs']]=None):
"\n [Deprecated] The TLS settings for the client or server. The TLS settings for the client or server.\n :param pulumi.Input['TlsCertificateContextArgs'] certificate_context: Defines the mechanism to obtain the client or server certificate.\n :param pulumi.Input['TlsValidationContextArgs'] validation_context: Defines the mechanism to obtain the Certificate Authority certificate to validate the client/server certificate. If omitted, the proxy will not validate the server or client certificate.\n "
if (certificate_context is not None):
pulumi.set(__self__, 'certificate_context', certificate_context)
if (validation_context is not None):
pulumi.set(__self__, 'validation_context', validation_context)
| -4,514,280,736,935,768,000
|
[Deprecated] The TLS settings for the client or server. The TLS settings for the client or server.
:param pulumi.Input['TlsCertificateContextArgs'] certificate_context: Defines the mechanism to obtain the client or server certificate.
:param pulumi.Input['TlsValidationContextArgs'] validation_context: Defines the mechanism to obtain the Certificate Authority certificate to validate the client/server certificate. If omitted, the proxy will not validate the server or client certificate.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, certificate_context: Optional[pulumi.Input['TlsCertificateContextArgs']]=None, validation_context: Optional[pulumi.Input['TlsValidationContextArgs']]=None):
"\n [Deprecated] The TLS settings for the client or server. The TLS settings for the client or server.\n :param pulumi.Input['TlsCertificateContextArgs'] certificate_context: Defines the mechanism to obtain the client or server certificate.\n :param pulumi.Input['TlsValidationContextArgs'] validation_context: Defines the mechanism to obtain the Certificate Authority certificate to validate the client/server certificate. If omitted, the proxy will not validate the server or client certificate.\n "
if (certificate_context is not None):
pulumi.set(__self__, 'certificate_context', certificate_context)
if (validation_context is not None):
pulumi.set(__self__, 'validation_context', validation_context)
|
@property
@pulumi.getter(name='certificateContext')
def certificate_context(self) -> Optional[pulumi.Input['TlsCertificateContextArgs']]:
'\n Defines the mechanism to obtain the client or server certificate.\n '
return pulumi.get(self, 'certificate_context')
| -8,749,458,195,540,266,000
|
Defines the mechanism to obtain the client or server certificate.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
certificate_context
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='certificateContext')
def certificate_context(self) -> Optional[pulumi.Input['TlsCertificateContextArgs']]:
'\n \n '
return pulumi.get(self, 'certificate_context')
|
@property
@pulumi.getter(name='validationContext')
def validation_context(self) -> Optional[pulumi.Input['TlsValidationContextArgs']]:
'\n Defines the mechanism to obtain the Certificate Authority certificate to validate the client/server certificate. If omitted, the proxy will not validate the server or client certificate.\n '
return pulumi.get(self, 'validation_context')
| 973,475,124,376,409,700
|
Defines the mechanism to obtain the Certificate Authority certificate to validate the client/server certificate. If omitted, the proxy will not validate the server or client certificate.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
validation_context
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='validationContext')
def validation_context(self) -> Optional[pulumi.Input['TlsValidationContextArgs']]:
'\n \n '
return pulumi.get(self, 'validation_context')
|
def __init__(__self__, *, certificate_path: Optional[pulumi.Input[str]]=None, sds_config: Optional[pulumi.Input['SdsConfigArgs']]=None, validation_source: Optional[pulumi.Input['TlsValidationContextValidationSource']]=None):
"\n [Deprecated] Defines the mechanism to obtain the Certificate Authority certificate to validate the client/server certificate. validate the client/server certificate.\n :param pulumi.Input[str] certificate_path: The path to the file holding the CA certificate to validate the client or server certificate.\n :param pulumi.Input['SdsConfigArgs'] sds_config: Specifies the config to retrieve certificates through SDS. This field is applicable only if tlsCertificateSource is set to USE_SDS.\n :param pulumi.Input['TlsValidationContextValidationSource'] validation_source: Defines how TLS certificates are obtained.\n "
if (certificate_path is not None):
pulumi.set(__self__, 'certificate_path', certificate_path)
if (sds_config is not None):
pulumi.set(__self__, 'sds_config', sds_config)
if (validation_source is not None):
pulumi.set(__self__, 'validation_source', validation_source)
| -3,374,434,755,977,117,700
|
[Deprecated] Defines the mechanism to obtain the Certificate Authority certificate to validate the client/server certificate. validate the client/server certificate.
:param pulumi.Input[str] certificate_path: The path to the file holding the CA certificate to validate the client or server certificate.
:param pulumi.Input['SdsConfigArgs'] sds_config: Specifies the config to retrieve certificates through SDS. This field is applicable only if tlsCertificateSource is set to USE_SDS.
:param pulumi.Input['TlsValidationContextValidationSource'] validation_source: Defines how TLS certificates are obtained.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, certificate_path: Optional[pulumi.Input[str]]=None, sds_config: Optional[pulumi.Input['SdsConfigArgs']]=None, validation_source: Optional[pulumi.Input['TlsValidationContextValidationSource']]=None):
"\n [Deprecated] Defines the mechanism to obtain the Certificate Authority certificate to validate the client/server certificate. validate the client/server certificate.\n :param pulumi.Input[str] certificate_path: The path to the file holding the CA certificate to validate the client or server certificate.\n :param pulumi.Input['SdsConfigArgs'] sds_config: Specifies the config to retrieve certificates through SDS. This field is applicable only if tlsCertificateSource is set to USE_SDS.\n :param pulumi.Input['TlsValidationContextValidationSource'] validation_source: Defines how TLS certificates are obtained.\n "
if (certificate_path is not None):
pulumi.set(__self__, 'certificate_path', certificate_path)
if (sds_config is not None):
pulumi.set(__self__, 'sds_config', sds_config)
if (validation_source is not None):
pulumi.set(__self__, 'validation_source', validation_source)
|
@property
@pulumi.getter(name='certificatePath')
def certificate_path(self) -> Optional[pulumi.Input[str]]:
'\n The path to the file holding the CA certificate to validate the client or server certificate.\n '
return pulumi.get(self, 'certificate_path')
| -3,520,012,649,785,625,000
|
The path to the file holding the CA certificate to validate the client or server certificate.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
certificate_path
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='certificatePath')
def certificate_path(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'certificate_path')
|
@property
@pulumi.getter(name='sdsConfig')
def sds_config(self) -> Optional[pulumi.Input['SdsConfigArgs']]:
'\n Specifies the config to retrieve certificates through SDS. This field is applicable only if tlsCertificateSource is set to USE_SDS.\n '
return pulumi.get(self, 'sds_config')
| 2,803,324,804,546,200,600
|
Specifies the config to retrieve certificates through SDS. This field is applicable only if tlsCertificateSource is set to USE_SDS.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
sds_config
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='sdsConfig')
def sds_config(self) -> Optional[pulumi.Input['SdsConfigArgs']]:
'\n \n '
return pulumi.get(self, 'sds_config')
|
@property
@pulumi.getter(name='validationSource')
def validation_source(self) -> Optional[pulumi.Input['TlsValidationContextValidationSource']]:
'\n Defines how TLS certificates are obtained.\n '
return pulumi.get(self, 'validation_source')
| 4,402,703,393,530,824,700
|
Defines how TLS certificates are obtained.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
validation_source
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='validationSource')
def validation_source(self) -> Optional[pulumi.Input['TlsValidationContextValidationSource']]:
'\n \n '
return pulumi.get(self, 'validation_source')
|
def __init__(__self__, *, port: Optional[pulumi.Input[int]]=None, port_name: Optional[pulumi.Input[str]]=None, request: Optional[pulumi.Input[str]]=None, response: Optional[pulumi.Input[str]]=None):
'\n :param pulumi.Input[int] port: The UDP port number for the health check request. Valid values are 1 through 65535.\n :param pulumi.Input[str] port_name: Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.\n :param pulumi.Input[str] request: Raw data of request to send in payload of UDP packet. It is an error if this is empty. The request data can only be ASCII.\n :param pulumi.Input[str] response: The bytes to match against the beginning of the response data. It is an error if this is empty. The response data can only be ASCII.\n '
if (port is not None):
pulumi.set(__self__, 'port', port)
if (port_name is not None):
pulumi.set(__self__, 'port_name', port_name)
if (request is not None):
pulumi.set(__self__, 'request', request)
if (response is not None):
pulumi.set(__self__, 'response', response)
| -7,475,498,768,600,358,000
|
:param pulumi.Input[int] port: The UDP port number for the health check request. Valid values are 1 through 65535.
:param pulumi.Input[str] port_name: Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
:param pulumi.Input[str] request: Raw data of request to send in payload of UDP packet. It is an error if this is empty. The request data can only be ASCII.
:param pulumi.Input[str] response: The bytes to match against the beginning of the response data. It is an error if this is empty. The response data can only be ASCII.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, port: Optional[pulumi.Input[int]]=None, port_name: Optional[pulumi.Input[str]]=None, request: Optional[pulumi.Input[str]]=None, response: Optional[pulumi.Input[str]]=None):
'\n :param pulumi.Input[int] port: The UDP port number for the health check request. Valid values are 1 through 65535.\n :param pulumi.Input[str] port_name: Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.\n :param pulumi.Input[str] request: Raw data of request to send in payload of UDP packet. It is an error if this is empty. The request data can only be ASCII.\n :param pulumi.Input[str] response: The bytes to match against the beginning of the response data. It is an error if this is empty. The response data can only be ASCII.\n '
if (port is not None):
pulumi.set(__self__, 'port', port)
if (port_name is not None):
pulumi.set(__self__, 'port_name', port_name)
if (request is not None):
pulumi.set(__self__, 'request', request)
if (response is not None):
pulumi.set(__self__, 'response', response)
|
@property
@pulumi.getter
def port(self) -> Optional[pulumi.Input[int]]:
'\n The UDP port number for the health check request. Valid values are 1 through 65535.\n '
return pulumi.get(self, 'port')
| 8,365,717,310,922,665,000
|
The UDP port number for the health check request. Valid values are 1 through 65535.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
port
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def port(self) -> Optional[pulumi.Input[int]]:
'\n \n '
return pulumi.get(self, 'port')
|
@property
@pulumi.getter(name='portName')
def port_name(self) -> Optional[pulumi.Input[str]]:
'\n Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.\n '
return pulumi.get(self, 'port_name')
| -819,122,187,026,193,200
|
Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
port_name
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='portName')
def port_name(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'port_name')
|
@property
@pulumi.getter
def request(self) -> Optional[pulumi.Input[str]]:
'\n Raw data of request to send in payload of UDP packet. It is an error if this is empty. The request data can only be ASCII.\n '
return pulumi.get(self, 'request')
| 170,829,655,958,216,960
|
Raw data of request to send in payload of UDP packet. It is an error if this is empty. The request data can only be ASCII.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
request
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def request(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'request')
|
@property
@pulumi.getter
def response(self) -> Optional[pulumi.Input[str]]:
'\n The bytes to match against the beginning of the response data. It is an error if this is empty. The response data can only be ASCII.\n '
return pulumi.get(self, 'response')
| 5,921,273,008,031,124,000
|
The bytes to match against the beginning of the response data. It is an error if this is empty. The response data can only be ASCII.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
response
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def response(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'response')
|
def __init__(__self__, *, name: Optional[pulumi.Input[str]]=None, value: Optional[pulumi.Input[str]]=None):
'\n HTTP headers used in UrlMapTests.\n :param pulumi.Input[str] name: Header name.\n :param pulumi.Input[str] value: Header value.\n '
if (name is not None):
pulumi.set(__self__, 'name', name)
if (value is not None):
pulumi.set(__self__, 'value', value)
| 1,668,935,225,436,302,800
|
HTTP headers used in UrlMapTests.
:param pulumi.Input[str] name: Header name.
:param pulumi.Input[str] value: Header value.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, name: Optional[pulumi.Input[str]]=None, value: Optional[pulumi.Input[str]]=None):
'\n HTTP headers used in UrlMapTests.\n :param pulumi.Input[str] name: Header name.\n :param pulumi.Input[str] value: Header value.\n '
if (name is not None):
pulumi.set(__self__, 'name', name)
if (value is not None):
pulumi.set(__self__, 'value', value)
|
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
'\n Header name.\n '
return pulumi.get(self, 'name')
| -3,482,751,739,376,258,600
|
Header name.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
name
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'name')
|
@property
@pulumi.getter
def value(self) -> Optional[pulumi.Input[str]]:
'\n Header value.\n '
return pulumi.get(self, 'value')
| 2,243,411,681,153,434,600
|
Header value.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
value
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def value(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'value')
|
def __init__(__self__, *, backend_service_weight: Optional[pulumi.Input[int]]=None, description: Optional[pulumi.Input[str]]=None, expected_output_url: Optional[pulumi.Input[str]]=None, expected_redirect_response_code: Optional[pulumi.Input[int]]=None, headers: Optional[pulumi.Input[Sequence[pulumi.Input['UrlMapTestHeaderArgs']]]]=None, host: Optional[pulumi.Input[str]]=None, path: Optional[pulumi.Input[str]]=None, service: Optional[pulumi.Input[str]]=None):
"\n Message for the expected URL mappings.\n :param pulumi.Input[int] backend_service_weight: The weight to use for the supplied host and path when using advanced routing rules that involve traffic splitting.\n :param pulumi.Input[str] description: Description of this test case.\n :param pulumi.Input[str] expected_output_url: The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.\n :param pulumi.Input[int] expected_redirect_response_code: For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set.\n :param pulumi.Input[Sequence[pulumi.Input['UrlMapTestHeaderArgs']]] headers: HTTP headers for this request. If headers contains a host header, then host must also match the header value.\n :param pulumi.Input[str] host: Host portion of the URL. If headers contains a host header, then host must also match the header value.\n :param pulumi.Input[str] path: Path portion of the URL.\n :param pulumi.Input[str] service: Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.\n "
if (backend_service_weight is not None):
pulumi.set(__self__, 'backend_service_weight', backend_service_weight)
if (description is not None):
pulumi.set(__self__, 'description', description)
if (expected_output_url is not None):
pulumi.set(__self__, 'expected_output_url', expected_output_url)
if (expected_redirect_response_code is not None):
pulumi.set(__self__, 'expected_redirect_response_code', expected_redirect_response_code)
if (headers is not None):
pulumi.set(__self__, 'headers', headers)
if (host is not None):
pulumi.set(__self__, 'host', host)
if (path is not None):
pulumi.set(__self__, 'path', path)
if (service is not None):
pulumi.set(__self__, 'service', service)
| -1,710,594,120,739,005,200
|
Message for the expected URL mappings.
:param pulumi.Input[int] backend_service_weight: The weight to use for the supplied host and path when using advanced routing rules that involve traffic splitting.
:param pulumi.Input[str] description: Description of this test case.
:param pulumi.Input[str] expected_output_url: The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.
:param pulumi.Input[int] expected_redirect_response_code: For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set.
:param pulumi.Input[Sequence[pulumi.Input['UrlMapTestHeaderArgs']]] headers: HTTP headers for this request. If headers contains a host header, then host must also match the header value.
:param pulumi.Input[str] host: Host portion of the URL. If headers contains a host header, then host must also match the header value.
:param pulumi.Input[str] path: Path portion of the URL.
:param pulumi.Input[str] service: Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, backend_service_weight: Optional[pulumi.Input[int]]=None, description: Optional[pulumi.Input[str]]=None, expected_output_url: Optional[pulumi.Input[str]]=None, expected_redirect_response_code: Optional[pulumi.Input[int]]=None, headers: Optional[pulumi.Input[Sequence[pulumi.Input['UrlMapTestHeaderArgs']]]]=None, host: Optional[pulumi.Input[str]]=None, path: Optional[pulumi.Input[str]]=None, service: Optional[pulumi.Input[str]]=None):
"\n Message for the expected URL mappings.\n :param pulumi.Input[int] backend_service_weight: The weight to use for the supplied host and path when using advanced routing rules that involve traffic splitting.\n :param pulumi.Input[str] description: Description of this test case.\n :param pulumi.Input[str] expected_output_url: The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.\n :param pulumi.Input[int] expected_redirect_response_code: For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set.\n :param pulumi.Input[Sequence[pulumi.Input['UrlMapTestHeaderArgs']]] headers: HTTP headers for this request. If headers contains a host header, then host must also match the header value.\n :param pulumi.Input[str] host: Host portion of the URL. If headers contains a host header, then host must also match the header value.\n :param pulumi.Input[str] path: Path portion of the URL.\n :param pulumi.Input[str] service: Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.\n "
if (backend_service_weight is not None):
pulumi.set(__self__, 'backend_service_weight', backend_service_weight)
if (description is not None):
pulumi.set(__self__, 'description', description)
if (expected_output_url is not None):
pulumi.set(__self__, 'expected_output_url', expected_output_url)
if (expected_redirect_response_code is not None):
pulumi.set(__self__, 'expected_redirect_response_code', expected_redirect_response_code)
if (headers is not None):
pulumi.set(__self__, 'headers', headers)
if (host is not None):
pulumi.set(__self__, 'host', host)
if (path is not None):
pulumi.set(__self__, 'path', path)
if (service is not None):
pulumi.set(__self__, 'service', service)
|
@property
@pulumi.getter(name='backendServiceWeight')
def backend_service_weight(self) -> Optional[pulumi.Input[int]]:
'\n The weight to use for the supplied host and path when using advanced routing rules that involve traffic splitting.\n '
return pulumi.get(self, 'backend_service_weight')
| 58,887,721,477,632,410
|
The weight to use for the supplied host and path when using advanced routing rules that involve traffic splitting.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
backend_service_weight
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='backendServiceWeight')
def backend_service_weight(self) -> Optional[pulumi.Input[int]]:
'\n \n '
return pulumi.get(self, 'backend_service_weight')
|
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
'\n Description of this test case.\n '
return pulumi.get(self, 'description')
| 596,417,950,144,403,800
|
Description of this test case.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
description
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'description')
|
@property
@pulumi.getter(name='expectedOutputUrl')
def expected_output_url(self) -> Optional[pulumi.Input[str]]:
"\n The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.\n "
return pulumi.get(self, 'expected_output_url')
| -7,148,053,708,913,335,000
|
The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
expected_output_url
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='expectedOutputUrl')
def expected_output_url(self) -> Optional[pulumi.Input[str]]:
"\n \n "
return pulumi.get(self, 'expected_output_url')
|
@property
@pulumi.getter(name='expectedRedirectResponseCode')
def expected_redirect_response_code(self) -> Optional[pulumi.Input[int]]:
"\n For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set.\n "
return pulumi.get(self, 'expected_redirect_response_code')
| -3,337,382,090,825,086,500
|
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
expected_redirect_response_code
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='expectedRedirectResponseCode')
def expected_redirect_response_code(self) -> Optional[pulumi.Input[int]]:
"\n \n "
return pulumi.get(self, 'expected_redirect_response_code')
|
@property
@pulumi.getter
def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['UrlMapTestHeaderArgs']]]]:
'\n HTTP headers for this request. If headers contains a host header, then host must also match the header value.\n '
return pulumi.get(self, 'headers')
| 7,370,935,253,425,043,000
|
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
headers
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['UrlMapTestHeaderArgs']]]]:
'\n \n '
return pulumi.get(self, 'headers')
|
@property
@pulumi.getter
def host(self) -> Optional[pulumi.Input[str]]:
'\n Host portion of the URL. If headers contains a host header, then host must also match the header value.\n '
return pulumi.get(self, 'host')
| 6,146,211,630,842,489,000
|
Host portion of the URL. If headers contains a host header, then host must also match the header value.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
host
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def host(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'host')
|
@property
@pulumi.getter
def path(self) -> Optional[pulumi.Input[str]]:
'\n Path portion of the URL.\n '
return pulumi.get(self, 'path')
| -8,542,978,494,951,973,000
|
Path portion of the URL.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
path
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def path(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'path')
|
@property
@pulumi.getter
def service(self) -> Optional[pulumi.Input[str]]:
'\n Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.\n '
return pulumi.get(self, 'service')
| 6,970,944,799,254,137,000
|
Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
service
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def service(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'service')
|
def __init__(__self__, *, host_rewrite: Optional[pulumi.Input[str]]=None, path_prefix_rewrite: Optional[pulumi.Input[str]]=None):
"\n The spec for modifying the path before sending the request to the matched backend service.\n :param pulumi.Input[str] host_rewrite: Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.\n :param pulumi.Input[str] path_prefix_rewrite: Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.\n "
if (host_rewrite is not None):
pulumi.set(__self__, 'host_rewrite', host_rewrite)
if (path_prefix_rewrite is not None):
pulumi.set(__self__, 'path_prefix_rewrite', path_prefix_rewrite)
| 289,761,260,636,250,100
|
The spec for modifying the path before sending the request to the matched backend service.
:param pulumi.Input[str] host_rewrite: Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
:param pulumi.Input[str] path_prefix_rewrite: Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, host_rewrite: Optional[pulumi.Input[str]]=None, path_prefix_rewrite: Optional[pulumi.Input[str]]=None):
"\n The spec for modifying the path before sending the request to the matched backend service.\n :param pulumi.Input[str] host_rewrite: Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.\n :param pulumi.Input[str] path_prefix_rewrite: Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.\n "
if (host_rewrite is not None):
pulumi.set(__self__, 'host_rewrite', host_rewrite)
if (path_prefix_rewrite is not None):
pulumi.set(__self__, 'path_prefix_rewrite', path_prefix_rewrite)
|
@property
@pulumi.getter(name='hostRewrite')
def host_rewrite(self) -> Optional[pulumi.Input[str]]:
"\n Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.\n "
return pulumi.get(self, 'host_rewrite')
| -6,058,966,731,001,618,000
|
Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
host_rewrite
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='hostRewrite')
def host_rewrite(self) -> Optional[pulumi.Input[str]]:
"\n \n "
return pulumi.get(self, 'host_rewrite')
|
@property
@pulumi.getter(name='pathPrefixRewrite')
def path_prefix_rewrite(self) -> Optional[pulumi.Input[str]]:
"\n Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.\n "
return pulumi.get(self, 'path_prefix_rewrite')
| -1,680,474,235,691,197,400
|
Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
path_prefix_rewrite
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='pathPrefixRewrite')
def path_prefix_rewrite(self) -> Optional[pulumi.Input[str]]:
"\n \n "
return pulumi.get(self, 'path_prefix_rewrite')
|
def __init__(__self__, *, interconnect_attachment: Optional[pulumi.Input[str]]=None):
'\n A VPN gateway interface.\n :param pulumi.Input[str] interconnect_attachment: URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for IPsec-encrypted Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource. Not currently available publicly. \n '
if (interconnect_attachment is not None):
pulumi.set(__self__, 'interconnect_attachment', interconnect_attachment)
| 1,422,399,840,942,517,000
|
A VPN gateway interface.
:param pulumi.Input[str] interconnect_attachment: URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for IPsec-encrypted Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource. Not currently available publicly.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, interconnect_attachment: Optional[pulumi.Input[str]]=None):
'\n A VPN gateway interface.\n :param pulumi.Input[str] interconnect_attachment: URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for IPsec-encrypted Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource. Not currently available publicly. \n '
if (interconnect_attachment is not None):
pulumi.set(__self__, 'interconnect_attachment', interconnect_attachment)
|
@property
@pulumi.getter(name='interconnectAttachment')
def interconnect_attachment(self) -> Optional[pulumi.Input[str]]:
'\n URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for IPsec-encrypted Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource. Not currently available publicly. \n '
return pulumi.get(self, 'interconnect_attachment')
| -8,731,234,428,422,729,000
|
URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for IPsec-encrypted Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource. Not currently available publicly.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
interconnect_attachment
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='interconnectAttachment')
def interconnect_attachment(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'interconnect_attachment')
|
def __init__(__self__, *, backend_service: Optional[pulumi.Input[str]]=None, header_action: Optional[pulumi.Input['HttpHeaderActionArgs']]=None, weight: Optional[pulumi.Input[int]]=None):
"\n In contrast to a single BackendService in HttpRouteAction to which all matching traffic is directed to, WeightedBackendService allows traffic to be split across multiple backend services. The volume of traffic for each backend service is proportional to the weight specified in each WeightedBackendService\n :param pulumi.Input[str] backend_service: The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.\n :param pulumi.Input['HttpHeaderActionArgs'] header_action: Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.\n :param pulumi.Input[int] weight: Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.\n "
if (backend_service is not None):
pulumi.set(__self__, 'backend_service', backend_service)
if (header_action is not None):
pulumi.set(__self__, 'header_action', header_action)
if (weight is not None):
pulumi.set(__self__, 'weight', weight)
| -2,786,885,324,409,956,000
|
In contrast to a single BackendService in HttpRouteAction to which all matching traffic is directed to, WeightedBackendService allows traffic to be split across multiple backend services. The volume of traffic for each backend service is proportional to the weight specified in each WeightedBackendService
:param pulumi.Input[str] backend_service: The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
:param pulumi.Input['HttpHeaderActionArgs'] header_action: Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
:param pulumi.Input[int] weight: Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
__init__
|
AaronFriel/pulumi-google-native
|
python
|
def __init__(__self__, *, backend_service: Optional[pulumi.Input[str]]=None, header_action: Optional[pulumi.Input['HttpHeaderActionArgs']]=None, weight: Optional[pulumi.Input[int]]=None):
"\n In contrast to a single BackendService in HttpRouteAction to which all matching traffic is directed to, WeightedBackendService allows traffic to be split across multiple backend services. The volume of traffic for each backend service is proportional to the weight specified in each WeightedBackendService\n :param pulumi.Input[str] backend_service: The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.\n :param pulumi.Input['HttpHeaderActionArgs'] header_action: Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.\n :param pulumi.Input[int] weight: Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.\n "
if (backend_service is not None):
pulumi.set(__self__, 'backend_service', backend_service)
if (header_action is not None):
pulumi.set(__self__, 'header_action', header_action)
if (weight is not None):
pulumi.set(__self__, 'weight', weight)
|
@property
@pulumi.getter(name='backendService')
def backend_service(self) -> Optional[pulumi.Input[str]]:
'\n The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.\n '
return pulumi.get(self, 'backend_service')
| -2,557,570,961,016,948,700
|
The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
backend_service
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='backendService')
def backend_service(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'backend_service')
|
@property
@pulumi.getter(name='headerAction')
def header_action(self) -> Optional[pulumi.Input['HttpHeaderActionArgs']]:
'\n Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.\n '
return pulumi.get(self, 'header_action')
| -5,170,887,591,742,826,000
|
Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
header_action
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter(name='headerAction')
def header_action(self) -> Optional[pulumi.Input['HttpHeaderActionArgs']]:
'\n \n '
return pulumi.get(self, 'header_action')
|
@property
@pulumi.getter
def weight(self) -> Optional[pulumi.Input[int]]:
"\n Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.\n "
return pulumi.get(self, 'weight')
| -3,078,050,152,787,782,000
|
Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000.
|
sdk/python/pulumi_google_native/compute/alpha/_inputs.py
|
weight
|
AaronFriel/pulumi-google-native
|
python
|
@property
@pulumi.getter
def weight(self) -> Optional[pulumi.Input[int]]:
"\n \n "
return pulumi.get(self, 'weight')
|
def test_count_qubits():
'Test count_qubits'
qubit_op = QubitOperator('X1 Y2')
assert (count_qubits(qubit_op) == 3)
fer_op = FermionOperator('1^')
assert (count_qubits(fer_op) == 2)
qubit_exc_op = QubitExcitationOperator('4^ 1')
assert (count_qubits(qubit_exc_op) == 5)
| -587,314,219,200,035,700
|
Test count_qubits
|
tests/st/test_core/test_operators/test_operators_utils.py
|
test_count_qubits
|
Takishima/mindquantum
|
python
|
def test_count_qubits():
qubit_op = QubitOperator('X1 Y2')
assert (count_qubits(qubit_op) == 3)
fer_op = FermionOperator('1^')
assert (count_qubits(fer_op) == 2)
qubit_exc_op = QubitExcitationOperator('4^ 1')
assert (count_qubits(qubit_exc_op) == 5)
|
def test_normal_ordered():
'Test normal_ordered function'
op = FermionOperator('3 4^')
assert (str(normal_ordered(op)) == '-1 [4^ 3] ')
| -3,652,750,601,603,591,700
|
Test normal_ordered function
|
tests/st/test_core/test_operators/test_operators_utils.py
|
test_normal_ordered
|
Takishima/mindquantum
|
python
|
def test_normal_ordered():
op = FermionOperator('3 4^')
assert (str(normal_ordered(op)) == '-1 [4^ 3] ')
|
def test_commutator():
'Test commutator'
qub_op1 = QubitOperator('X1 Y2')
qub_op2 = QubitOperator('X1 Z2')
qub_op3 = (2j * QubitOperator('X2'))
assert (commutator(qub_op1, qub_op2) == qub_op3)
assert (commutator(qub_op1, qub_op1) == QubitOperator())
qubit_exc_op1 = QubitExcitationOperator(((4, 1), (1, 0)), 2j)
qubit_exc_op2 = QubitExcitationOperator(((3, 1), (2, 0)), 2j)
qubit_exc_op3 = (QubitExcitationOperator('3^ 2 4^ 1', 4.0) + QubitExcitationOperator('4^ 1 3^ 2', (- 4.0)))
assert (commutator(qubit_exc_op1, qubit_exc_op2).compress() == qubit_exc_op3)
assert (commutator(qubit_exc_op1, qubit_exc_op1) == QubitExcitationOperator())
| 7,898,072,455,736,951,000
|
Test commutator
|
tests/st/test_core/test_operators/test_operators_utils.py
|
test_commutator
|
Takishima/mindquantum
|
python
|
def test_commutator():
qub_op1 = QubitOperator('X1 Y2')
qub_op2 = QubitOperator('X1 Z2')
qub_op3 = (2j * QubitOperator('X2'))
assert (commutator(qub_op1, qub_op2) == qub_op3)
assert (commutator(qub_op1, qub_op1) == QubitOperator())
qubit_exc_op1 = QubitExcitationOperator(((4, 1), (1, 0)), 2j)
qubit_exc_op2 = QubitExcitationOperator(((3, 1), (2, 0)), 2j)
qubit_exc_op3 = (QubitExcitationOperator('3^ 2 4^ 1', 4.0) + QubitExcitationOperator('4^ 1 3^ 2', (- 4.0)))
assert (commutator(qubit_exc_op1, qubit_exc_op2).compress() == qubit_exc_op3)
assert (commutator(qubit_exc_op1, qubit_exc_op1) == QubitExcitationOperator())
|
def test_number_operator():
'Test number operator'
nmode = 3
check_str = '1 [0^ 0] +\n1 [1^ 1] +\n1 [2^ 2] '
assert (str(number_operator(nmode)) == check_str)
check_str2 = '1 [3^ 3] '
assert (str(number_operator(None, nmode)) == check_str2)
| 3,789,957,992,526,919,700
|
Test number operator
|
tests/st/test_core/test_operators/test_operators_utils.py
|
test_number_operator
|
Takishima/mindquantum
|
python
|
def test_number_operator():
nmode = 3
check_str = '1 [0^ 0] +\n1 [1^ 1] +\n1 [2^ 2] '
assert (str(number_operator(nmode)) == check_str)
check_str2 = '1 [3^ 3] '
assert (str(number_operator(None, nmode)) == check_str2)
|
def test_up_index():
'This is for labelling the spin-orbital index with spin alpha'
alpha = 2
assert (up_index(alpha) == 4)
| 6,486,380,420,052,240,000
|
This is for labelling the spin-orbital index with spin alpha
|
tests/st/test_core/test_operators/test_operators_utils.py
|
test_up_index
|
Takishima/mindquantum
|
python
|
def test_up_index():
alpha = 2
assert (up_index(alpha) == 4)
|
def test_down_index():
'This is for labelling the spin-orbital index with spin beta'
beta = 1
assert (down_index(beta) == 3)
| 1,414,939,593,055,874,000
|
This is for labelling the spin-orbital index with spin beta
|
tests/st/test_core/test_operators/test_operators_utils.py
|
test_down_index
|
Takishima/mindquantum
|
python
|
def test_down_index():
beta = 1
assert (down_index(beta) == 3)
|
def test_hermitian_conjugated():
'Test hermitian_conjugated for the QubitOperator and Fermion Operator'
qub_op1 = (((- 1j) * QubitOperator('X1 Y2')) + QubitOperator('X1'))
qub_op2 = ((1j * QubitOperator('X1 Y2')) + QubitOperator('X1'))
assert (hermitian_conjugated(qub_op1) == qub_op2)
fer_op1 = FermionOperator('1^ 2')
fer_op2 = FermionOperator('2^ 1')
assert (hermitian_conjugated(fer_op1) == fer_op2)
qubit_exc_op1 = QubitExcitationOperator(((4, 1), (1, 0)), 2j).normal_ordered()
qubit_exc_op2 = QubitExcitationOperator(((4, 0), (1, 1)), (- 2j)).normal_ordered()
assert (hermitian_conjugated(qubit_exc_op1) == qubit_exc_op2)
| -6,181,645,153,206,038,000
|
Test hermitian_conjugated for the QubitOperator and Fermion Operator
|
tests/st/test_core/test_operators/test_operators_utils.py
|
test_hermitian_conjugated
|
Takishima/mindquantum
|
python
|
def test_hermitian_conjugated():
qub_op1 = (((- 1j) * QubitOperator('X1 Y2')) + QubitOperator('X1'))
qub_op2 = ((1j * QubitOperator('X1 Y2')) + QubitOperator('X1'))
assert (hermitian_conjugated(qub_op1) == qub_op2)
fer_op1 = FermionOperator('1^ 2')
fer_op2 = FermionOperator('2^ 1')
assert (hermitian_conjugated(fer_op1) == fer_op2)
qubit_exc_op1 = QubitExcitationOperator(((4, 1), (1, 0)), 2j).normal_ordered()
qubit_exc_op2 = QubitExcitationOperator(((4, 0), (1, 1)), (- 2j)).normal_ordered()
assert (hermitian_conjugated(qubit_exc_op1) == qubit_exc_op2)
|
@cli.clizefy
@cli.with_output
def process(snow: cli.inputcube, rain: cli.inputcube):
'Calculate sleet probability.\n\n Calculates the sleet probability using the\n calculate_sleet_probability plugin.\n\n Args:\n snow (iris.cube.Cube):\n An iris Cube of the probability of snow.\n rain (iris.cube.Cube):\n An iris Cube of the probability of rain.\n\n Returns:\n iris.cube.Cube:\n Returns a cube with the probability of sleet.\n '
from improver.calculate_sleet_prob import calculate_sleet_probability
result = calculate_sleet_probability(snow, rain)
return result
| -5,786,242,122,211,737,000
|
Calculate sleet probability.
Calculates the sleet probability using the
calculate_sleet_probability plugin.
Args:
snow (iris.cube.Cube):
An iris Cube of the probability of snow.
rain (iris.cube.Cube):
An iris Cube of the probability of rain.
Returns:
iris.cube.Cube:
Returns a cube with the probability of sleet.
|
improver/cli/sleet_probability.py
|
process
|
BelligerG/improver
|
python
|
@cli.clizefy
@cli.with_output
def process(snow: cli.inputcube, rain: cli.inputcube):
'Calculate sleet probability.\n\n Calculates the sleet probability using the\n calculate_sleet_probability plugin.\n\n Args:\n snow (iris.cube.Cube):\n An iris Cube of the probability of snow.\n rain (iris.cube.Cube):\n An iris Cube of the probability of rain.\n\n Returns:\n iris.cube.Cube:\n Returns a cube with the probability of sleet.\n '
from improver.calculate_sleet_prob import calculate_sleet_probability
result = calculate_sleet_probability(snow, rain)
return result
|
@property
def balance(self) -> 'Quantity':
'The total balance of the wallet available for use.'
return self._balance
| -3,038,890,229,515,196,000
|
The total balance of the wallet available for use.
|
tensortrade/wallets/wallet.py
|
balance
|
Kukunin/tensortrade
|
python
|
@property
def balance(self) -> 'Quantity':
return self._balance
|
@property
def locked_balance(self) -> 'Quantity':
'The total balance of the wallet locked in orders.'
locked_balance = Quantity(self.instrument, 0)
for quantity in self.locked.values():
locked_balance += quantity.size
return locked_balance
| -8,452,854,206,637,544,000
|
The total balance of the wallet locked in orders.
|
tensortrade/wallets/wallet.py
|
locked_balance
|
Kukunin/tensortrade
|
python
|
@property
def locked_balance(self) -> 'Quantity':
locked_balance = Quantity(self.instrument, 0)
for quantity in self.locked.values():
locked_balance += quantity.size
return locked_balance
|
@property
def total_balance(self) -> 'Quantity':
'The total balance of the wallet, both available for use and locked in orders.'
total_balance = self._balance
for quantity in self.locked.values():
total_balance += quantity.size
return total_balance
| 8,121,678,121,077,703,000
|
The total balance of the wallet, both available for use and locked in orders.
|
tensortrade/wallets/wallet.py
|
total_balance
|
Kukunin/tensortrade
|
python
|
@property
def total_balance(self) -> 'Quantity':
total_balance = self._balance
for quantity in self.locked.values():
total_balance += quantity.size
return total_balance
|
def clear_mesh():
' clear all meshes in the secene\n\n '
bpy.ops.object.select_all(action='DESELECT')
for obj in bpy.data.objects:
if (obj.type == 'MESH'):
obj.select = True
bpy.ops.object.delete()
for block in bpy.data.meshes:
if (block.users == 0):
bpy.data.meshes.remove(block)
for block in bpy.data.materials:
if (block.users == 0):
bpy.data.materials.remove(block)
for block in bpy.data.textures:
if (block.users == 0):
bpy.data.textures.remove(block)
for block in bpy.data.images:
if (block.users == 0):
bpy.data.images.remove(block)
| -6,743,576,624,997,544,000
|
clear all meshes in the secene
|
renderer/render_fmo.py
|
clear_mesh
|
12564985/DeFMO
|
python
|
def clear_mesh():
' \n\n '
bpy.ops.object.select_all(action='DESELECT')
for obj in bpy.data.objects:
if (obj.type == 'MESH'):
obj.select = True
bpy.ops.object.delete()
for block in bpy.data.meshes:
if (block.users == 0):
bpy.data.meshes.remove(block)
for block in bpy.data.materials:
if (block.users == 0):
bpy.data.materials.remove(block)
for block in bpy.data.textures:
if (block.users == 0):
bpy.data.textures.remove(block)
for block in bpy.data.images:
if (block.users == 0):
bpy.data.images.remove(block)
|
def scene_setting_init(use_gpu):
'initialize blender setting configurations\n\n '
sce = bpy.context.scene.name
bpy.data.scenes[sce].render.engine = g_engine_type
bpy.data.scenes[sce].cycles.film_transparent = g_use_film_transparent
bpy.data.scenes[sce].render.image_settings.color_mode = g_rgb_color_mode
bpy.data.scenes[sce].render.image_settings.color_depth = g_rgb_color_depth
bpy.data.scenes[sce].render.image_settings.file_format = g_rgb_file_format
bpy.data.scenes[sce].render.use_overwrite = g_depth_use_overwrite
bpy.data.scenes[sce].render.use_file_extension = g_depth_use_file_extension
if g_ambient_light:
world = bpy.data.worlds['World']
world.use_nodes = True
bg = world.node_tree.nodes['Background']
bg.inputs[0].default_value[:3] = g_bg_color
bg.inputs[1].default_value = 1.0
bpy.data.scenes[sce].render.resolution_x = g_resolution_x
bpy.data.scenes[sce].render.resolution_y = g_resolution_y
bpy.data.scenes[sce].render.resolution_percentage = g_resolution_percentage
if use_gpu:
bpy.data.scenes[sce].render.engine = 'CYCLES'
bpy.data.scenes[sce].render.tile_x = g_hilbert_spiral
bpy.data.scenes[sce].render.tile_x = g_hilbert_spiral
bpy.context.user_preferences.addons['cycles'].preferences.devices[0].use = False
bpy.context.user_preferences.addons['cycles'].preferences.devices[1].use = True
ndev = len(bpy.context.user_preferences.addons['cycles'].preferences.devices)
print('Number of devices {}'.format(ndev))
for ki in range(2, ndev):
bpy.context.user_preferences.addons['cycles'].preferences.devices[ki].use = False
bpy.context.user_preferences.addons['cycles'].preferences.compute_device_type = 'CUDA'
bpy.data.scenes[sce].cycles.device = 'GPU'
| 7,473,694,285,510,906,000
|
initialize blender setting configurations
|
renderer/render_fmo.py
|
scene_setting_init
|
12564985/DeFMO
|
python
|
def scene_setting_init(use_gpu):
'\n\n '
sce = bpy.context.scene.name
bpy.data.scenes[sce].render.engine = g_engine_type
bpy.data.scenes[sce].cycles.film_transparent = g_use_film_transparent
bpy.data.scenes[sce].render.image_settings.color_mode = g_rgb_color_mode
bpy.data.scenes[sce].render.image_settings.color_depth = g_rgb_color_depth
bpy.data.scenes[sce].render.image_settings.file_format = g_rgb_file_format
bpy.data.scenes[sce].render.use_overwrite = g_depth_use_overwrite
bpy.data.scenes[sce].render.use_file_extension = g_depth_use_file_extension
if g_ambient_light:
world = bpy.data.worlds['World']
world.use_nodes = True
bg = world.node_tree.nodes['Background']
bg.inputs[0].default_value[:3] = g_bg_color
bg.inputs[1].default_value = 1.0
bpy.data.scenes[sce].render.resolution_x = g_resolution_x
bpy.data.scenes[sce].render.resolution_y = g_resolution_y
bpy.data.scenes[sce].render.resolution_percentage = g_resolution_percentage
if use_gpu:
bpy.data.scenes[sce].render.engine = 'CYCLES'
bpy.data.scenes[sce].render.tile_x = g_hilbert_spiral
bpy.data.scenes[sce].render.tile_x = g_hilbert_spiral
bpy.context.user_preferences.addons['cycles'].preferences.devices[0].use = False
bpy.context.user_preferences.addons['cycles'].preferences.devices[1].use = True
ndev = len(bpy.context.user_preferences.addons['cycles'].preferences.devices)
print('Number of devices {}'.format(ndev))
for ki in range(2, ndev):
bpy.context.user_preferences.addons['cycles'].preferences.devices[ki].use = False
bpy.context.user_preferences.addons['cycles'].preferences.compute_device_type = 'CUDA'
bpy.data.scenes[sce].cycles.device = 'GPU'
|
def render(obj_path, viewpoint, temp_folder):
'render rbg image \n\n render a object rgb image by a given camera viewpoint and\n choose random image as background, only render one image\n at a time.\n\n Args:\n obj_path: a string variable indicate the obj file path\n viewpoint: a vp parameter(contains azimuth,elevation,tilt angles and distance)\n '
vp = viewpoint
cam_location = camera_location(vp.azimuth, vp.elevation, vp.distance)
cam_rot = camera_rot_XYZEuler(vp.azimuth, vp.elevation, vp.tilt)
cam_obj = bpy.data.objects['Camera']
cam_obj.location[0] = cam_location[0]
cam_obj.location[1] = cam_location[1]
cam_obj.location[2] = cam_location[2]
cam_obj.rotation_euler[0] = cam_rot[0]
cam_obj.rotation_euler[1] = cam_rot[1]
cam_obj.rotation_euler[2] = cam_rot[2]
if (not os.path.exists(g_syn_rgb_folder)):
os.mkdir(g_syn_rgb_folder)
obj = bpy.data.objects['model_normalized']
ni = g_fmo_steps
maxlen = 0.5
maxrot = (1.57 / 6)
tri = 0
while (tri <= g_max_trials):
do_repeat = False
tri += 1
if (not g_apply_texture):
for oi in range(len(bpy.data.objects)):
if ((bpy.data.objects[oi].type == 'CAMERA') or (bpy.data.objects[oi].type == 'LAMP')):
continue
for tempi in range(len(bpy.data.objects[oi].data.materials)):
if (bpy.data.objects[oi].data.materials[tempi].alpha != 1.0):
return (True, True)
los_start = Vector((random.uniform(((- maxlen) / 10), (maxlen / 10)), random.uniform((- maxlen), maxlen), random.uniform((- maxlen), maxlen)))
loc_step = (Vector((random.uniform(((- maxlen) / 10), (maxlen / 10)), random.uniform((- maxlen), maxlen), random.uniform((- maxlen), maxlen))) / ni)
rot_base = np.array((random.uniform(0, (2 * math.pi)), random.uniform(0, (2 * math.pi)), random.uniform(0, (2 * math.pi))))
rot_step = (np.array((random.uniform((- maxrot), maxrot), random.uniform((- maxrot), maxrot), random.uniform((- maxrot), maxrot))) / ni)
old = open_log(temp_folder)
for ki in ([0, (ni - 1)] + list(range(1, (ni - 1)))):
for oi in range(len(bpy.data.objects)):
if ((bpy.data.objects[oi].type == 'CAMERA') or (bpy.data.objects[oi].type == 'LAMP')):
continue
bpy.data.objects[oi].location = (los_start + (loc_step * ki))
bpy.data.objects[oi].rotation_euler = Euler((rot_base + (rot_step * ki)))
bpy.context.scene.frame_set((ki + 1))
bpy.ops.render.render(write_still=True)
if ((ki == 0) or (ki == (ni - 1))):
Mt = (cv2.imread(os.path.join(bpy.context.scene.node_tree.nodes[1].base_path, 'image-{:06d}.png'.format((ki + 1))), cv2.IMREAD_UNCHANGED)[:, :, (- 1)] > 0)
is_border = (((((Mt[0, :].sum() + Mt[(- 1), :].sum()) + Mt[:, 0].sum()) + Mt[:, (- 1)].sum()) > 0) or (Mt.sum() == 0))
if is_border:
if (ki == 0):
close_log(old)
return (False, True)
else:
do_repeat = True
if do_repeat:
break
close_log(old)
if (do_repeat == False):
break
if do_repeat:
return (False, True)
return (False, False)
| 2,766,232,128,904,901,600
|
render rbg image
render a object rgb image by a given camera viewpoint and
choose random image as background, only render one image
at a time.
Args:
obj_path: a string variable indicate the obj file path
viewpoint: a vp parameter(contains azimuth,elevation,tilt angles and distance)
|
renderer/render_fmo.py
|
render
|
12564985/DeFMO
|
python
|
def render(obj_path, viewpoint, temp_folder):
'render rbg image \n\n render a object rgb image by a given camera viewpoint and\n choose random image as background, only render one image\n at a time.\n\n Args:\n obj_path: a string variable indicate the obj file path\n viewpoint: a vp parameter(contains azimuth,elevation,tilt angles and distance)\n '
vp = viewpoint
cam_location = camera_location(vp.azimuth, vp.elevation, vp.distance)
cam_rot = camera_rot_XYZEuler(vp.azimuth, vp.elevation, vp.tilt)
cam_obj = bpy.data.objects['Camera']
cam_obj.location[0] = cam_location[0]
cam_obj.location[1] = cam_location[1]
cam_obj.location[2] = cam_location[2]
cam_obj.rotation_euler[0] = cam_rot[0]
cam_obj.rotation_euler[1] = cam_rot[1]
cam_obj.rotation_euler[2] = cam_rot[2]
if (not os.path.exists(g_syn_rgb_folder)):
os.mkdir(g_syn_rgb_folder)
obj = bpy.data.objects['model_normalized']
ni = g_fmo_steps
maxlen = 0.5
maxrot = (1.57 / 6)
tri = 0
while (tri <= g_max_trials):
do_repeat = False
tri += 1
if (not g_apply_texture):
for oi in range(len(bpy.data.objects)):
if ((bpy.data.objects[oi].type == 'CAMERA') or (bpy.data.objects[oi].type == 'LAMP')):
continue
for tempi in range(len(bpy.data.objects[oi].data.materials)):
if (bpy.data.objects[oi].data.materials[tempi].alpha != 1.0):
return (True, True)
los_start = Vector((random.uniform(((- maxlen) / 10), (maxlen / 10)), random.uniform((- maxlen), maxlen), random.uniform((- maxlen), maxlen)))
loc_step = (Vector((random.uniform(((- maxlen) / 10), (maxlen / 10)), random.uniform((- maxlen), maxlen), random.uniform((- maxlen), maxlen))) / ni)
rot_base = np.array((random.uniform(0, (2 * math.pi)), random.uniform(0, (2 * math.pi)), random.uniform(0, (2 * math.pi))))
rot_step = (np.array((random.uniform((- maxrot), maxrot), random.uniform((- maxrot), maxrot), random.uniform((- maxrot), maxrot))) / ni)
old = open_log(temp_folder)
for ki in ([0, (ni - 1)] + list(range(1, (ni - 1)))):
for oi in range(len(bpy.data.objects)):
if ((bpy.data.objects[oi].type == 'CAMERA') or (bpy.data.objects[oi].type == 'LAMP')):
continue
bpy.data.objects[oi].location = (los_start + (loc_step * ki))
bpy.data.objects[oi].rotation_euler = Euler((rot_base + (rot_step * ki)))
bpy.context.scene.frame_set((ki + 1))
bpy.ops.render.render(write_still=True)
if ((ki == 0) or (ki == (ni - 1))):
Mt = (cv2.imread(os.path.join(bpy.context.scene.node_tree.nodes[1].base_path, 'image-{:06d}.png'.format((ki + 1))), cv2.IMREAD_UNCHANGED)[:, :, (- 1)] > 0)
is_border = (((((Mt[0, :].sum() + Mt[(- 1), :].sum()) + Mt[:, 0].sum()) + Mt[:, (- 1)].sum()) > 0) or (Mt.sum() == 0))
if is_border:
if (ki == 0):
close_log(old)
return (False, True)
else:
do_repeat = True
if do_repeat:
break
close_log(old)
if (do_repeat == False):
break
if do_repeat:
return (False, True)
return (False, False)
|
def render_obj(obj_path, path, objid, obj_name, temp_folder):
' render one obj file by a given viewpoint list\n a wrapper function for render()\n\n Args:\n obj_path: a string variable indicate the obj file path\n '
vps_path = random.sample(g_view_point_file, 1)[0]
vps = list(load_viewpoint(vps_path))
random.shuffle(vps)
save_path = os.path.join(path, '{}_{:04d}.png'.format(obj_name, objid))
gt_path = os.path.join(path, 'GT', '{}_{:04d}'.format(obj_name, objid))
video_path = os.path.join(path, '{}_{:04d}.avi'.format(obj_name, objid))
if (not os.path.exists(gt_path)):
os.mkdir(gt_path)
image_output_node = bpy.context.scene.node_tree.nodes[1]
image_output_node.base_path = gt_path
for imt in bpy.data.images:
bpy.data.images.remove(imt)
if g_apply_texture:
for oi in range(len(bpy.data.objects)):
if ((bpy.data.objects[oi].type == 'CAMERA') or (bpy.data.objects[oi].type == 'LAMP')):
continue
bpy.context.scene.objects.active = bpy.data.objects[oi]
bpy.ops.object.editmode_toggle()
bpy.ops.uv.cube_project()
bpy.ops.object.editmode_toggle()
texture_images = os.listdir(g_texture_path)
texture = random.choice(texture_images)
tex_path = os.path.join(g_texture_path, texture)
for mat in bpy.data.materials:
nodes = mat.node_tree.nodes
links = mat.node_tree.links
textureNode = nodes.new('ShaderNodeTexImage')
textureNode.image = bpy.data.images.load(tex_path)
links.new(nodes['Diffuse BSDF'].inputs['Color'], textureNode.outputs['Color'])
tri = 0
while (tri <= g_max_trials):
tri += 1
vp = random.sample(vps, 1)[0]
(sample_different_object, sample_different_vp) = render(obj_path, vp, temp_folder)
if sample_different_vp:
if sample_different_object:
print('Transparent object!')
return False
print('Rendering failed, repeating')
continue
success = make_fmo(save_path, gt_path, video_path)
if success:
return True
print('Making FMO failed, repeating')
return False
| 8,629,749,743,181,032,000
|
render one obj file by a given viewpoint list
a wrapper function for render()
Args:
obj_path: a string variable indicate the obj file path
|
renderer/render_fmo.py
|
render_obj
|
12564985/DeFMO
|
python
|
def render_obj(obj_path, path, objid, obj_name, temp_folder):
' render one obj file by a given viewpoint list\n a wrapper function for render()\n\n Args:\n obj_path: a string variable indicate the obj file path\n '
vps_path = random.sample(g_view_point_file, 1)[0]
vps = list(load_viewpoint(vps_path))
random.shuffle(vps)
save_path = os.path.join(path, '{}_{:04d}.png'.format(obj_name, objid))
gt_path = os.path.join(path, 'GT', '{}_{:04d}'.format(obj_name, objid))
video_path = os.path.join(path, '{}_{:04d}.avi'.format(obj_name, objid))
if (not os.path.exists(gt_path)):
os.mkdir(gt_path)
image_output_node = bpy.context.scene.node_tree.nodes[1]
image_output_node.base_path = gt_path
for imt in bpy.data.images:
bpy.data.images.remove(imt)
if g_apply_texture:
for oi in range(len(bpy.data.objects)):
if ((bpy.data.objects[oi].type == 'CAMERA') or (bpy.data.objects[oi].type == 'LAMP')):
continue
bpy.context.scene.objects.active = bpy.data.objects[oi]
bpy.ops.object.editmode_toggle()
bpy.ops.uv.cube_project()
bpy.ops.object.editmode_toggle()
texture_images = os.listdir(g_texture_path)
texture = random.choice(texture_images)
tex_path = os.path.join(g_texture_path, texture)
for mat in bpy.data.materials:
nodes = mat.node_tree.nodes
links = mat.node_tree.links
textureNode = nodes.new('ShaderNodeTexImage')
textureNode.image = bpy.data.images.load(tex_path)
links.new(nodes['Diffuse BSDF'].inputs['Color'], textureNode.outputs['Color'])
tri = 0
while (tri <= g_max_trials):
tri += 1
vp = random.sample(vps, 1)[0]
(sample_different_object, sample_different_vp) = render(obj_path, vp, temp_folder)
if sample_different_vp:
if sample_different_object:
print('Transparent object!')
return False
print('Rendering failed, repeating')
continue
success = make_fmo(save_path, gt_path, video_path)
if success:
return True
print('Making FMO failed, repeating')
return False
|
def init_all():
'init everything we need for rendering\n an image\n '
scene_setting_init(g_gpu_render_enable)
node_setting_init()
cam_obj = bpy.data.objects['Camera']
cam_obj.rotation_mode = g_rotation_mode
if g_render_light:
bpy.data.objects['Lamp'].data.energy = 50
bpy.ops.object.lamp_add(type='SUN')
bpy.data.objects['Sun'].data.energy = 5
| -4,992,793,148,464,501,000
|
init everything we need for rendering
an image
|
renderer/render_fmo.py
|
init_all
|
12564985/DeFMO
|
python
|
def init_all():
'init everything we need for rendering\n an image\n '
scene_setting_init(g_gpu_render_enable)
node_setting_init()
cam_obj = bpy.data.objects['Camera']
cam_obj.rotation_mode = g_rotation_mode
if g_render_light:
bpy.data.objects['Lamp'].data.energy = 50
bpy.ops.object.lamp_add(type='SUN')
bpy.data.objects['Sun'].data.energy = 5
|
def update(self, msg, state, key_size=0):
"\n Use to 'update' the AccessToken Request.\n\n :param msg:\n :param state: Used to map access token response to this request\n :param key_size:\n :return:\n "
if (not key_size):
key_size = self.key_size
key = RSAKey(key=RSA.generate(key_size))
self.state2key[state] = key
msg['key'] = json.dumps(key.serialize())
return msg
| 3,846,428,510,822,182,000
|
Use to 'update' the AccessToken Request.
:param msg:
:param state: Used to map access token response to this request
:param key_size:
:return:
|
src/oic/extension/pop.py
|
update
|
fsschmitt/pyoidc
|
python
|
def update(self, msg, state, key_size=0):
"\n Use to 'update' the AccessToken Request.\n\n :param msg:\n :param state: Used to map access token response to this request\n :param key_size:\n :return:\n "
if (not key_size):
key_size = self.key_size
key = RSAKey(key=RSA.generate(key_size))
self.state2key[state] = key
msg['key'] = json.dumps(key.serialize())
return msg
|
def handle_access_token_response(self, resp):
'\n Map access token to a keypair.\n\n :param resp: AccessTokenResponse instance\n '
self.token2key[resp['access_token']] = self.state2key[resp['state']]
| 6,440,332,247,765,060,000
|
Map access token to a keypair.
:param resp: AccessTokenResponse instance
|
src/oic/extension/pop.py
|
handle_access_token_response
|
fsschmitt/pyoidc
|
python
|
def handle_access_token_response(self, resp):
'\n Map access token to a keypair.\n\n :param resp: AccessTokenResponse instance\n '
self.token2key[resp['access_token']] = self.state2key[resp['state']]
|
def store_key(self, access_token, tir):
'\n Store key that was returned in response from token introspection.\n\n :param access_token: The token that was introspected\n :param tir: TokenIntrospectionResponse instance\n '
key = load_jwks(json.dumps({'keys': [json.loads(tir['key'])]}))
self.token2key[access_token] = key
| 8,540,303,392,168,288,000
|
Store key that was returned in response from token introspection.
:param access_token: The token that was introspected
:param tir: TokenIntrospectionResponse instance
|
src/oic/extension/pop.py
|
store_key
|
fsschmitt/pyoidc
|
python
|
def store_key(self, access_token, tir):
'\n Store key that was returned in response from token introspection.\n\n :param access_token: The token that was introspected\n :param tir: TokenIntrospectionResponse instance\n '
key = load_jwks(json.dumps({'keys': [json.loads(tir['key'])]}))
self.token2key[access_token] = key
|
def backup_pickle(experiment, stats):
"'\n Back up handling function.\n\n Arguments:\n experiment -- Experiment object, contains the initial sorn parameters\n stats -- bunch of stats stored during the simulation\n "
params = experiment.init_params
results_dir = experiment.results_dir
files_tosave = experiment.files_tosave
directory = 'backup/{}'.format(results_dir)
time.sleep(np.random.rand())
for n_sim in range(1, 1000):
final_dir = '{}_{}/'.format(directory, str(n_sim))
if (not os.path.exists(final_dir)):
try:
os.makedirs(final_dir)
break
except:
pass
if ('params' in files_tosave):
with open((final_dir + 'init_params.p'), 'wb') as f:
pickle.dump(params, f)
if ('stats' in files_tosave):
if hasattr(stats, 'track'):
stats.track.write((final_dir + 'sample.mid'))
if hasattr(stats, 'input_index_readout'):
del stats.input_index_readout
if hasattr(stats, 'input_readout'):
del stats.input_readout
if hasattr(stats, 'raster_readout'):
del stats.raster_readout
if hasattr(stats, 't_past'):
del stats.t_past
with open((final_dir + 'stats.p'), 'wb') as f:
pickle.dump(stats, f)
if ('scripts' in files_tosave):
for f in ['utils', 'common', results_dir.split('_')[0]]:
shutil.copytree(f, (final_dir + f), ignore=ignore_patterns('*.pyc', '*.git'))
| -4,198,798,779,686,169,000
|
'
Back up handling function.
Arguments:
experiment -- Experiment object, contains the initial sorn parameters
stats -- bunch of stats stored during the simulation
|
utils/backup.py
|
backup_pickle
|
carolinscholl/SORN
|
python
|
def backup_pickle(experiment, stats):
"'\n Back up handling function.\n\n Arguments:\n experiment -- Experiment object, contains the initial sorn parameters\n stats -- bunch of stats stored during the simulation\n "
params = experiment.init_params
results_dir = experiment.results_dir
files_tosave = experiment.files_tosave
directory = 'backup/{}'.format(results_dir)
time.sleep(np.random.rand())
for n_sim in range(1, 1000):
final_dir = '{}_{}/'.format(directory, str(n_sim))
if (not os.path.exists(final_dir)):
try:
os.makedirs(final_dir)
break
except:
pass
if ('params' in files_tosave):
with open((final_dir + 'init_params.p'), 'wb') as f:
pickle.dump(params, f)
if ('stats' in files_tosave):
if hasattr(stats, 'track'):
stats.track.write((final_dir + 'sample.mid'))
if hasattr(stats, 'input_index_readout'):
del stats.input_index_readout
if hasattr(stats, 'input_readout'):
del stats.input_readout
if hasattr(stats, 'raster_readout'):
del stats.raster_readout
if hasattr(stats, 't_past'):
del stats.t_past
with open((final_dir + 'stats.p'), 'wb') as f:
pickle.dump(stats, f)
if ('scripts' in files_tosave):
for f in ['utils', 'common', results_dir.split('_')[0]]:
shutil.copytree(f, (final_dir + f), ignore=ignore_patterns('*.pyc', '*.git'))
|
def open_napalm_connection(device):
'Funtion to open napalm connection and return connection object'
device = device.copy()
platform = device.pop('platform')
driver = get_network_driver(platform)
conn = driver(**device)
conn.open()
return conn
| 2,166,982,942,124,655,000
|
Funtion to open napalm connection and return connection object
|
day3/linting/exercise1.py
|
open_napalm_connection
|
austind/pyplus-ons
|
python
|
def open_napalm_connection(device):
device = device.copy()
platform = device.pop('platform')
driver = get_network_driver(platform)
conn = driver(**device)
conn.open()
return conn
|
def __init__(self, message):
'init\n '
self.message = message
| 1,055,070,663,192,575,600
|
init
|
pylibpcap/exception.py
|
__init__
|
caizhengxin/python-libpcap
|
python
|
def ____(self, message):
'\n '
self.message = message
|
def get(self, key):
'\n Get a single value from the database\n\n :param key: The name of the value\n :return: The stored value or "null" if not found\n '
if (not (key in self.data)):
return 'null'
return self.data[key]
| -1,080,148,519,125,317,800
|
Get a single value from the database
:param key: The name of the value
:return: The stored value or "null" if not found
|
bot/commandmanager.py
|
get
|
lietu/twitch-bot
|
python
|
def get(self, key):
'\n Get a single value from the database\n\n :param key: The name of the value\n :return: The stored value or "null" if not found\n '
if (not (key in self.data)):
return 'null'
return self.data[key]
|
def set(self, key, value):
'\n Set a single value to the database\n\n :param key: The name of the value\n :param value: The value to be stored\n :return: None\n '
self.data[key] = value
self.bot.update_global_value(self.channel, key, value)
| -351,846,261,557,832,200
|
Set a single value to the database
:param key: The name of the value
:param value: The value to be stored
:return: None
|
bot/commandmanager.py
|
set
|
lietu/twitch-bot
|
python
|
def set(self, key, value):
'\n Set a single value to the database\n\n :param key: The name of the value\n :param value: The value to be stored\n :return: None\n '
self.data[key] = value
self.bot.update_global_value(self.channel, key, value)
|
def stop_timers(self):
'\n Cancel all timers still running\n\n :return:\n '
for timer in self.timers:
timer.cancel()
| 3,701,080,689,287,577,000
|
Cancel all timers still running
:return:
|
bot/commandmanager.py
|
stop_timers
|
lietu/twitch-bot
|
python
|
def stop_timers(self):
'\n Cancel all timers still running\n\n :return:\n '
for timer in self.timers:
timer.cancel()
|
def add_command(self, args):
'\n Handler for the "def" -commands in chat\n\n :param args: All the words after the "def" -command\n :return: The created command, if any, and the minimum required user\n level\n '
(added, command, flags, user_level, code) = self._parse_func(args)
(channel, command, flags, user_level, code) = self.load_command(command, flags, user_level, code)
return (added, channel, command, flags, user_level, code)
| 7,152,550,125,602,683,000
|
Handler for the "def" -commands in chat
:param args: All the words after the "def" -command
:return: The created command, if any, and the minimum required user
level
|
bot/commandmanager.py
|
add_command
|
lietu/twitch-bot
|
python
|
def add_command(self, args):
'\n Handler for the "def" -commands in chat\n\n :param args: All the words after the "def" -command\n :return: The created command, if any, and the minimum required user\n level\n '
(added, command, flags, user_level, code) = self._parse_func(args)
(channel, command, flags, user_level, code) = self.load_command(command, flags, user_level, code)
return (added, channel, command, flags, user_level, code)
|
def add_simple_command(self, args):
'\n Handler for the "com" -commands in chat\n\n :param args: All the words after the "com" -command\n :return: A bunch of stuff\n '
(added, command, flags, user_level, code) = self._parse_simple_func(args)
(channel, command, flags, user_level, code) = self.load_command(command, flags, user_level, code)
return (added, channel, command, flags, user_level, code)
| 1,785,941,059,193,356,500
|
Handler for the "com" -commands in chat
:param args: All the words after the "com" -command
:return: A bunch of stuff
|
bot/commandmanager.py
|
add_simple_command
|
lietu/twitch-bot
|
python
|
def add_simple_command(self, args):
'\n Handler for the "com" -commands in chat\n\n :param args: All the words after the "com" -command\n :return: A bunch of stuff\n '
(added, command, flags, user_level, code) = self._parse_simple_func(args)
(channel, command, flags, user_level, code) = self.load_command(command, flags, user_level, code)
return (added, channel, command, flags, user_level, code)
|
def is_valid_command(self, command):
'\n Check if the given command is registered\n\n :param command: The name of the command\n :return: True or False\n '
return (command in self.commands)
| -8,184,501,889,419,760,000
|
Check if the given command is registered
:param command: The name of the command
:return: True or False
|
bot/commandmanager.py
|
is_valid_command
|
lietu/twitch-bot
|
python
|
def is_valid_command(self, command):
'\n Check if the given command is registered\n\n :param command: The name of the command\n :return: True or False\n '
return (command in self.commands)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.