CreateApplicationDetails¶
-
class
oci.functions.models.
CreateApplicationDetails
(**kwargs)¶ Bases:
object
Properties for a new application.
Attributes
SHAPE_GENERIC_ARM
A constant which can be used with the shape property of a CreateApplicationDetails. SHAPE_GENERIC_X86
A constant which can be used with the shape property of a CreateApplicationDetails. SHAPE_GENERIC_X86_ARM
A constant which can be used with the shape property of a CreateApplicationDetails. compartment_id
[Required] Gets the compartment_id of this CreateApplicationDetails. config
Gets the config of this CreateApplicationDetails. defined_tags
Gets the defined_tags of this CreateApplicationDetails. display_name
[Required] Gets the display_name of this CreateApplicationDetails. freeform_tags
Gets the freeform_tags of this CreateApplicationDetails. image_policy_config
Gets the image_policy_config of this CreateApplicationDetails. network_security_group_ids
Gets the network_security_group_ids of this CreateApplicationDetails. shape
Gets the shape of this CreateApplicationDetails. subnet_ids
[Required] Gets the subnet_ids of this CreateApplicationDetails. syslog_url
Gets the syslog_url of this CreateApplicationDetails. trace_config
Gets the trace_config of this CreateApplicationDetails. Methods
__init__
(**kwargs)Initializes a new CreateApplicationDetails object with values from keyword arguments. -
SHAPE_GENERIC_ARM
= 'GENERIC_ARM'¶ A constant which can be used with the shape property of a CreateApplicationDetails. This constant has a value of “GENERIC_ARM”
-
SHAPE_GENERIC_X86
= 'GENERIC_X86'¶ A constant which can be used with the shape property of a CreateApplicationDetails. This constant has a value of “GENERIC_X86”
-
SHAPE_GENERIC_X86_ARM
= 'GENERIC_X86_ARM'¶ A constant which can be used with the shape property of a CreateApplicationDetails. This constant has a value of “GENERIC_X86_ARM”
-
__init__
(**kwargs)¶ Initializes a new CreateApplicationDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - compartment_id (str) – The value to assign to the compartment_id property of this CreateApplicationDetails.
- display_name (str) – The value to assign to the display_name property of this CreateApplicationDetails.
- config (dict(str, str)) – The value to assign to the config property of this CreateApplicationDetails.
- subnet_ids (list[str]) – The value to assign to the subnet_ids property of this CreateApplicationDetails.
- shape (str) – The value to assign to the shape property of this CreateApplicationDetails. Allowed values for this property are: “GENERIC_X86”, “GENERIC_ARM”, “GENERIC_X86_ARM”
- network_security_group_ids (list[str]) – The value to assign to the network_security_group_ids property of this CreateApplicationDetails.
- syslog_url (str) – The value to assign to the syslog_url property of this CreateApplicationDetails.
- trace_config (oci.functions.models.ApplicationTraceConfig) – The value to assign to the trace_config property of this CreateApplicationDetails.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateApplicationDetails.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateApplicationDetails.
- image_policy_config (oci.functions.models.ImagePolicyConfig) – The value to assign to the image_policy_config property of this CreateApplicationDetails.
-
compartment_id
¶ [Required] Gets the compartment_id of this CreateApplicationDetails. The OCID of the compartment to create the application within.
Returns: The compartment_id of this CreateApplicationDetails. Return type: str
-
config
¶ Gets the config of this CreateApplicationDetails. Application configuration. These values are passed on to the function as environment variables, functions may override application configuration. Keys must be ASCII strings consisting solely of letters, digits, and the ‘_’ (underscore) character, and must not begin with a digit. Values should be limited to printable unicode characters.
Example: {“MY_FUNCTION_CONFIG”: “ConfVal”}
The maximum size for all configuration keys and values is limited to 4KB. This is measured as the sum of octets necessary to represent each key and value in UTF-8.
Returns: The config of this CreateApplicationDetails. Return type: dict(str, str)
Gets the defined_tags of this CreateApplicationDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__.
Example: {“Operations”: {“CostCenter”: “42”}}
Returns: The defined_tags of this CreateApplicationDetails. Return type: dict(str, dict(str, object))
-
display_name
¶ [Required] Gets the display_name of this CreateApplicationDetails. The display name of the application. The display name must be unique within the compartment containing the application. Avoid entering confidential information.
Returns: The display_name of this CreateApplicationDetails. Return type: str
Gets the freeform_tags of this CreateApplicationDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__.
Example: {“Department”: “Finance”}
Returns: The freeform_tags of this CreateApplicationDetails. Return type: dict(str, str)
-
image_policy_config
¶ Gets the image_policy_config of this CreateApplicationDetails.
Returns: The image_policy_config of this CreateApplicationDetails. Return type: oci.functions.models.ImagePolicyConfig
-
network_security_group_ids
¶ Gets the network_security_group_ids of this CreateApplicationDetails. The `OCID`__s of the Network Security Groups to add the application to.
Returns: The network_security_group_ids of this CreateApplicationDetails. Return type: list[str]
-
shape
¶ Gets the shape of this CreateApplicationDetails. Valid values are GENERIC_X86, GENERIC_ARM and GENERIC_X86_ARM. Default is GENERIC_X86. Setting this to GENERIC_X86, will run the functions in the application on X86 processor architecture. Setting this to GENERIC_ARM, will run the functions in the application on ARM processor architecture. When set to GENERIC_X86_ARM, functions in the application are run on either X86 or ARM processor architecture. Accepted values are: GENERIC_X86, GENERIC_ARM, GENERIC_X86_ARM
Allowed values for this property are: “GENERIC_X86”, “GENERIC_ARM”, “GENERIC_X86_ARM”
Returns: The shape of this CreateApplicationDetails. Return type: str
-
subnet_ids
¶ [Required] Gets the subnet_ids of this CreateApplicationDetails. The `OCID`__s of the subnets in which to run functions in the application.
Returns: The subnet_ids of this CreateApplicationDetails. Return type: list[str]
-
syslog_url
¶ Gets the syslog_url of this CreateApplicationDetails. A syslog URL to which to send all function logs. Supports tcp, udp, and tcp+tls. The syslog URL must be reachable from all of the subnets configured for the application. Note: If you enable the OCI Logging service for this application, the syslogUrl value is ignored. Function logs are sent to the OCI Logging service, and not to the syslog URL.
Example: tcp://logserver.myserver:1234
Returns: The syslog_url of this CreateApplicationDetails. Return type: str
-
trace_config
¶ Gets the trace_config of this CreateApplicationDetails.
Returns: The trace_config of this CreateApplicationDetails. Return type: oci.functions.models.ApplicationTraceConfig
-