diff --git a/crates/cloudtruth-restapi/src/apis/projects_api.rs b/crates/cloudtruth-restapi/src/apis/projects_api.rs index f9be791d..85930ef8 100644 --- a/crates/cloudtruth-restapi/src/apis/projects_api.rs +++ b/crates/cloudtruth-restapi/src/apis/projects_api.rs @@ -2452,6 +2452,7 @@ pub fn projects_parameters_values_create( parameter_pk: &str, project_pk: &str, value_create: crate::models::ValueCreate, + environment: Option<&str>, evaluate: Option, ) -> Result> { let local_var_configuration = configuration; @@ -2467,6 +2468,10 @@ pub fn projects_parameters_values_create( let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + if let Some(ref local_var_str) = environment { + local_var_req_builder = + local_var_req_builder.query(&[("environment", &local_var_str.to_string())]); + } if let Some(ref local_var_str) = evaluate { local_var_req_builder = local_var_req_builder.query(&[("evaluate", &local_var_str.to_string())]); @@ -2540,6 +2545,7 @@ pub fn projects_parameters_values_destroy( id: &str, parameter_pk: &str, project_pk: &str, + environment: Option<&str>, evaluate: Option, ) -> Result<(), Error> { let local_var_configuration = configuration; @@ -2556,6 +2562,10 @@ pub fn projects_parameters_values_destroy( let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + if let Some(ref local_var_str) = environment { + local_var_req_builder = + local_var_req_builder.query(&[("environment", &local_var_str.to_string())]); + } if let Some(ref local_var_str) = evaluate { local_var_req_builder = local_var_req_builder.query(&[("evaluate", &local_var_str.to_string())]); @@ -2627,6 +2637,7 @@ pub fn projects_parameters_values_list( parameter_pk: &str, project_pk: &str, as_of: Option, + environment: Option<&str>, evaluate: Option, exclude: Option<&str>, include: Option<&str>, @@ -2652,6 +2663,10 @@ pub fn projects_parameters_values_list( local_var_req_builder = local_var_req_builder.query(&[("as_of", &local_var_str.to_string())]); } + if let Some(ref local_var_str) = environment { + local_var_req_builder = + local_var_req_builder.query(&[("environment", &local_var_str.to_string())]); + } if let Some(ref local_var_str) = evaluate { local_var_req_builder = local_var_req_builder.query(&[("evaluate", &local_var_str.to_string())]); @@ -2747,6 +2762,7 @@ pub fn projects_parameters_values_partial_update( id: &str, parameter_pk: &str, project_pk: &str, + environment: Option<&str>, evaluate: Option, patched_value_update: Option, ) -> Result> { @@ -2764,6 +2780,10 @@ pub fn projects_parameters_values_partial_update( let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); + if let Some(ref local_var_str) = environment { + local_var_req_builder = + local_var_req_builder.query(&[("environment", &local_var_str.to_string())]); + } if let Some(ref local_var_str) = evaluate { local_var_req_builder = local_var_req_builder.query(&[("evaluate", &local_var_str.to_string())]); @@ -2838,6 +2858,7 @@ pub fn projects_parameters_values_retrieve( parameter_pk: &str, project_pk: &str, as_of: Option, + environment: Option<&str>, evaluate: Option, exclude: Option<&str>, include: Option<&str>, @@ -2862,6 +2883,10 @@ pub fn projects_parameters_values_retrieve( local_var_req_builder = local_var_req_builder.query(&[("as_of", &local_var_str.to_string())]); } + if let Some(ref local_var_str) = environment { + local_var_req_builder = + local_var_req_builder.query(&[("environment", &local_var_str.to_string())]); + } if let Some(ref local_var_str) = evaluate { local_var_req_builder = local_var_req_builder.query(&[("evaluate", &local_var_str.to_string())]); @@ -2949,6 +2974,7 @@ pub fn projects_parameters_values_update( id: &str, parameter_pk: &str, project_pk: &str, + environment: Option<&str>, evaluate: Option, value_update: Option, ) -> Result> { @@ -2966,6 +2992,10 @@ pub fn projects_parameters_values_update( let mut local_var_req_builder = local_var_client.request(reqwest::Method::PUT, local_var_uri_str.as_str()); + if let Some(ref local_var_str) = environment { + local_var_req_builder = + local_var_req_builder.query(&[("environment", &local_var_str.to_string())]); + } if let Some(ref local_var_str) = evaluate { local_var_req_builder = local_var_req_builder.query(&[("evaluate", &local_var_str.to_string())]); diff --git a/crates/cloudtruth-restapi/src/models/environment.rs b/crates/cloudtruth-restapi/src/models/environment.rs index 4f4cb921..456715f5 100644 --- a/crates/cloudtruth-restapi/src/models/environment.rs +++ b/crates/cloudtruth-restapi/src/models/environment.rs @@ -24,7 +24,7 @@ pub struct Environment { #[serde(rename = "description", skip_serializing_if = "Option::is_none")] pub description: Option, /// Environments can inherit from a single parent environment which provides values for parameters when specific environments do not have a value set. Every organization has one default environment that cannot be removed. - #[serde(rename = "parent", skip_serializing_if = "Option::is_none")] + #[serde(rename = "parent")] pub parent: Option, /// This is the opposite of `parent`, see that field for more details. #[serde(rename = "children")] @@ -47,6 +47,7 @@ impl Environment { id: String, ledger_id: String, name: String, + parent: Option, children: Vec, role: Option, created_at: String, @@ -58,7 +59,7 @@ impl Environment { ledger_id, name, description: None, - parent: None, + parent, children, access_controlled: None, role: role.map(Box::new), diff --git a/crates/cloudtruth-restapi/src/models/parameter.rs b/crates/cloudtruth-restapi/src/models/parameter.rs index b68d8cf7..4e4f10cf 100644 --- a/crates/cloudtruth-restapi/src/models/parameter.rs +++ b/crates/cloudtruth-restapi/src/models/parameter.rs @@ -24,9 +24,9 @@ pub struct Parameter { pub name: String, #[serde(rename = "description", skip_serializing_if = "Option::is_none")] pub description: Option, - #[serde(rename = "secret", skip_serializing_if = "Option::is_none")] - pub secret: Option, - /// The type of this Parameter. + #[serde(rename = "secret")] + pub secret: bool, + /// The type of this Parameter. If not provided, this will default to a string for Parameters that are not overrides or to the overridden Parameter's type for Parameters that are overrides. #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub _type: Option, /// Rules applied to this parameter. @@ -66,6 +66,7 @@ impl Parameter { id: String, ledger_id: String, name: String, + secret: bool, rules: Vec, project: String, project_name: String, @@ -83,7 +84,7 @@ impl Parameter { ledger_id, name, description: None, - secret: None, + secret, _type: None, rules, project, diff --git a/crates/cloudtruth-restapi/src/models/parameter_create.rs b/crates/cloudtruth-restapi/src/models/parameter_create.rs index 4ffda13a..6e3a9d7a 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_create.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_create.rs @@ -21,7 +21,7 @@ pub struct ParameterCreate { /// Indicates if this content is secret or not. External values are inspected on-demand to ensure they align with the parameter's secret setting and if they do not, those external values are not allowed to be used. #[serde(rename = "secret", skip_serializing_if = "Option::is_none")] pub secret: Option, - /// The type of this Parameter. + /// The type of this Parameter. If not provided, this will default to a string for Parameters that are not overrides or to the overridden Parameter's type for Parameters that are overrides. #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub _type: Option, } diff --git a/crates/cloudtruth-restapi/src/models/parameter_type.rs b/crates/cloudtruth-restapi/src/models/parameter_type.rs index 1c07917b..2f2571bb 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_type.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_type.rs @@ -27,7 +27,7 @@ pub struct ParameterType { #[serde(rename = "rules")] pub rules: Vec, /// The URL for this parameter type's parent - #[serde(rename = "parent", skip_serializing_if = "Option::is_none")] + #[serde(rename = "parent")] pub parent: Option, /// Name of the parent ParameterType (if any). #[serde(rename = "parent_name")] @@ -45,6 +45,7 @@ impl ParameterType { ledger_id: String, name: String, rules: Vec, + parent: Option, parent_name: Option, created_at: String, modified_at: Option, @@ -56,7 +57,7 @@ impl ParameterType { name, description: None, rules, - parent: None, + parent, parent_name, created_at, modified_at, diff --git a/crates/cloudtruth-restapi/src/models/parameter_update.rs b/crates/cloudtruth-restapi/src/models/parameter_update.rs index 02d03b83..66268537 100644 --- a/crates/cloudtruth-restapi/src/models/parameter_update.rs +++ b/crates/cloudtruth-restapi/src/models/parameter_update.rs @@ -21,9 +21,9 @@ pub struct ParameterUpdate { #[serde(rename = "description", skip_serializing_if = "Option::is_none")] pub description: Option, /// Indicates if this content is secret or not. External values are inspected on-demand to ensure they align with the parameter's secret setting and if they do not, those external values are not allowed to be used. - #[serde(rename = "secret", skip_serializing_if = "Option::is_none")] - pub secret: Option, - /// The type of this Parameter. + #[serde(rename = "secret")] + pub secret: bool, + /// The type of this Parameter. If not provided, this will default to a string for Parameters that are not overrides or to the overridden Parameter's type for Parameters that are overrides. #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub _type: Option, /// The project url. @@ -40,6 +40,7 @@ impl ParameterUpdate { pub fn new( id: String, name: String, + secret: bool, project: String, created_at: String, modified_at: Option, @@ -48,7 +49,7 @@ impl ParameterUpdate { id, name, description: None, - secret: None, + secret, _type: None, project, created_at, diff --git a/crates/cloudtruth-restapi/src/models/patched_parameter_update.rs b/crates/cloudtruth-restapi/src/models/patched_parameter_update.rs index 11fdc45d..7d8f108b 100644 --- a/crates/cloudtruth-restapi/src/models/patched_parameter_update.rs +++ b/crates/cloudtruth-restapi/src/models/patched_parameter_update.rs @@ -23,7 +23,7 @@ pub struct PatchedParameterUpdate { /// Indicates if this content is secret or not. External values are inspected on-demand to ensure they align with the parameter's secret setting and if they do not, those external values are not allowed to be used. #[serde(rename = "secret", skip_serializing_if = "Option::is_none")] pub secret: Option, - /// The type of this Parameter. + /// The type of this Parameter. If not provided, this will default to a string for Parameters that are not overrides or to the overridden Parameter's type for Parameters that are overrides. #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub _type: Option, /// The project url. diff --git a/crates/cloudtruth-restapi/src/models/project.rs b/crates/cloudtruth-restapi/src/models/project.rs index 3f5974f9..471d438c 100644 --- a/crates/cloudtruth-restapi/src/models/project.rs +++ b/crates/cloudtruth-restapi/src/models/project.rs @@ -33,7 +33,7 @@ pub struct Project { #[serde(rename = "dependents")] pub dependents: Vec, /// Project dependencies allow projects to be used for shared configuration, for example a database used by many applications needs to advertise its port number. Projects can depend on another project which will add the parameters from the parent project into the current project. All of the parameter names between the two projects must be unique. When retrieving values or rendering templates, all of the parameters from the parent project will also be available in the current project. - #[serde(rename = "depends_on", skip_serializing_if = "Option::is_none")] + #[serde(rename = "depends_on")] pub depends_on: Option, /// Indicates if access control is being enforced through grants. #[serde(rename = "access_controlled", skip_serializing_if = "Option::is_none")] @@ -41,10 +41,10 @@ pub struct Project { /// Your role in the project, if the project is access-controlled. #[serde(rename = "role")] pub role: Option>, - /// Deprecated. Only shows pushes for aws integrations in /api/v1/. + /// Deprecated. Blank. #[serde(rename = "pushes")] - pub pushes: Vec, - /// Push actions associated with the project. + pub pushes: Vec, + /// Deprecated. Blank. #[serde(rename = "push_urls")] pub push_urls: Vec, #[serde(rename = "created_at")] @@ -60,8 +60,9 @@ impl Project { ledger_id: String, name: String, dependents: Vec, + depends_on: Option, role: Option, - pushes: Vec, + pushes: Vec, push_urls: Vec, created_at: String, modified_at: Option, @@ -74,7 +75,7 @@ impl Project { parameter_name_pattern: None, description: None, dependents, - depends_on: None, + depends_on, access_controlled: None, role: role.map(Box::new), pushes, diff --git a/crates/cloudtruth-restapi/src/models/tag.rs b/crates/cloudtruth-restapi/src/models/tag.rs index b1bdc6fc..93d62ace 100644 --- a/crates/cloudtruth-restapi/src/models/tag.rs +++ b/crates/cloudtruth-restapi/src/models/tag.rs @@ -12,6 +12,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct Tag { + /// The URL for the tag. #[serde(rename = "url")] pub url: String, /// A unique identifier for the tag. @@ -29,7 +30,7 @@ pub struct Tag { /// If True, this tag cannot be modified once it is created. #[serde(rename = "immutable", skip_serializing_if = "Option::is_none")] pub immutable: Option, - /// Deprecated. Only shows pushes for aws integrations in /api/v1/. + /// Deprecated. Use `push_urls` instead. #[serde(rename = "pushes")] pub pushes: Vec, /// Push actions associated with the tag. diff --git a/openapi.json b/openapi.json index 0eab3261..a2eed776 100644 --- a/openapi.json +++ b/openapi.json @@ -10136,6 +10136,14 @@ }, "description": "Specify a point in time to retrieve configuration from. Cannot be specified with `tag`." }, + { + "in": "query", + "name": "environment", + "schema": { + "type": "string" + }, + "description": "When fetching a single value, if that value is dynamic and evaluate is true, uses this environment for template evaluation. If none is specified, uses the value's environment. Note that the value must be active in the specified environment.\nNo effect on values that are not dynamic." + }, { "in": "query", "name": "evaluate", @@ -10249,6 +10257,14 @@ "description": "Set the value of a parameter in an environment.", "summary": "Set a value.", "parameters": [ + { + "in": "query", + "name": "environment", + "schema": { + "type": "string" + }, + "description": "When fetching a single value, if that value is dynamic and evaluate is true, uses this environment for template evaluation. If none is specified, uses the value's environment. Note that the value must be active in the specified environment.\nNo effect on values that are not dynamic." + }, { "in": "query", "name": "evaluate", @@ -10342,6 +10358,14 @@ }, "description": "Specify a point in time to retrieve configuration from. Cannot be specified with `tag`." }, + { + "in": "query", + "name": "environment", + "schema": { + "type": "string" + }, + "description": "When fetching a single value, if that value is dynamic and evaluate is true, uses this environment for template evaluation. If none is specified, uses the value's environment. Note that the value must be active in the specified environment.\nNo effect on values that are not dynamic." + }, { "in": "query", "name": "evaluate", @@ -10447,6 +10471,14 @@ "description": "Update the value of a parameter in an environment.", "summary": "Update a value.", "parameters": [ + { + "in": "query", + "name": "environment", + "schema": { + "type": "string" + }, + "description": "When fetching a single value, if that value is dynamic and evaluate is true, uses this environment for template evaluation. If none is specified, uses the value's environment. Note that the value must be active in the specified environment.\nNo effect on values that are not dynamic." + }, { "in": "query", "name": "evaluate", @@ -10538,6 +10570,14 @@ "description": "Update the value of a parameter in an environment.", "summary": "Update a value.", "parameters": [ + { + "in": "query", + "name": "environment", + "schema": { + "type": "string" + }, + "description": "When fetching a single value, if that value is dynamic and evaluate is true, uses this environment for template evaluation. If none is specified, uses the value's environment. Note that the value must be active in the specified environment.\nNo effect on values that are not dynamic." + }, { "in": "query", "name": "evaluate", @@ -10629,6 +10669,14 @@ "description": "Destroy the value of a parameter in an environment.", "summary": "Destroy a value.", "parameters": [ + { + "in": "query", + "name": "environment", + "schema": { + "type": "string" + }, + "description": "When fetching a single value, if that value is dynamic and evaluate is true, uses this environment for template evaluation. If none is specified, uses the value's environment. Note that the value must be active in the specified environment.\nNo effect on values that are not dynamic." + }, { "in": "query", "name": "evaluate", @@ -15764,6 +15812,7 @@ "parent": { "type": "string", "format": "uri", + "readOnly": true, "nullable": true, "description": "Environments can inherit from a single parent environment which provides values for parameters when specific environments do not have a value set. Every organization has one default environment that cannot be removed." }, @@ -15809,6 +15858,7 @@ "ledger_id", "modified_at", "name", + "parent", "role", "url" ] @@ -18101,12 +18151,12 @@ "type": "string" }, "secret": { - "type": "boolean" + "type": "boolean", + "readOnly": true }, "type": { "type": "string", - "default": "string", - "description": "The type of this Parameter." + "description": "\n The type of this Parameter. If not provided, this will default to\n a string for Parameters that are not overrides or to the overridden\n Parameter's type for Parameters that are overrides.\n " }, "rules": { "type": "array", @@ -18195,6 +18245,7 @@ "referencing_templates", "referencing_values", "rules", + "secret", "url", "values", "values_flat" @@ -18243,8 +18294,7 @@ }, "type": { "type": "string", - "default": "string", - "description": "The type of this Parameter." + "description": "\n The type of this Parameter. If not provided, this will default to\n a string for Parameters that are not overrides or to the overridden\n Parameter's type for Parameters that are overrides.\n " } }, "required": [ @@ -18582,6 +18632,7 @@ "parent": { "type": "string", "format": "uri", + "readOnly": true, "nullable": true, "description": "The URL for this parameter type's parent" }, @@ -18609,6 +18660,7 @@ "ledger_id", "modified_at", "name", + "parent", "parent_name", "rules", "url" @@ -18819,12 +18871,12 @@ }, "secret": { "type": "boolean", + "readOnly": true, "description": "Indicates if this content is secret or not. External values are inspected on-demand to ensure they align with the parameter's secret setting and if they do not, those external values are not allowed to be used." }, "type": { "type": "string", - "default": "string", - "description": "The type of this Parameter." + "description": "\n The type of this Parameter. If not provided, this will default to\n a string for Parameters that are not overrides or to the overridden\n Parameter's type for Parameters that are overrides.\n " }, "project": { "type": "string", @@ -18849,7 +18901,8 @@ "id", "modified_at", "name", - "project" + "project", + "secret" ] }, "PatchedAwsIntegration": { @@ -19905,12 +19958,12 @@ }, "secret": { "type": "boolean", + "readOnly": true, "description": "Indicates if this content is secret or not. External values are inspected on-demand to ensure they align with the parameter's secret setting and if they do not, those external values are not allowed to be used." }, "type": { "type": "string", - "default": "string", - "description": "The type of this Parameter." + "description": "\n The type of this Parameter. If not provided, this will default to\n a string for Parameters that are not overrides or to the overridden\n Parameter's type for Parameters that are overrides.\n " }, "project": { "type": "string", @@ -20204,6 +20257,7 @@ "depends_on": { "type": "string", "format": "uri", + "readOnly": true, "nullable": true, "description": "Project dependencies allow projects to be used for shared configuration, for example a database used by many applications needs to advertise its port number.\n\nProjects can depend on another project which will add the parameters from the parent project into the current project. All of the parameter names between the two projects must be unique. When retrieving values or rendering templates, all of the parameters from the parent project will also be available in the current project." }, @@ -20224,19 +20278,18 @@ "pushes": { "type": "array", "items": { - "$ref": "#/components/schemas/AwsPush" + "type": "string" }, "readOnly": true, - "description": "Deprecated. Only shows pushes for aws integrations in /api/v1/." + "description": "Deprecated. Blank." }, "push_urls": { "type": "array", "items": { - "type": "string", - "format": "uri" + "type": "string" }, "readOnly": true, - "description": "Push actions associated with the project." + "description": "Deprecated. Blank." }, "created_at": { "type": "string", @@ -20253,6 +20306,7 @@ "required": [ "created_at", "dependents", + "depends_on", "id", "ledger_id", "modified_at", @@ -20594,7 +20648,8 @@ "url": { "type": "string", "format": "uri", - "readOnly": true + "readOnly": true, + "description": "The URL for the tag." }, "id": { "type": "string", @@ -20627,7 +20682,7 @@ "$ref": "#/components/schemas/AwsPush" }, "readOnly": true, - "description": "Deprecated. Only shows pushes for aws integrations in /api/v1/." + "description": "Deprecated. Use `push_urls` instead." }, "push_urls": { "type": "array", diff --git a/openapi.yml b/openapi.yml index 5dee6023..46b7bb2d 100644 --- a/openapi.yml +++ b/openapi.yml @@ -6239,6 +6239,13 @@ paths: format: date-time description: Specify a point in time to retrieve configuration from. Cannot be specified with `tag`. + - in: query + name: environment + schema: + type: string + description: |- + When fetching a single value, if that value is dynamic and evaluate is true, uses this environment for template evaluation. If none is specified, uses the value's environment. Note that the value must be active in the specified environment. + No effect on values that are not dynamic. - in: query name: evaluate schema: @@ -6313,6 +6320,13 @@ paths: description: Set the value of a parameter in an environment. summary: Set a value. parameters: + - in: query + name: environment + schema: + type: string + description: |- + When fetching a single value, if that value is dynamic and evaluate is true, uses this environment for template evaluation. If none is specified, uses the value's environment. Note that the value must be active in the specified environment. + No effect on values that are not dynamic. - in: query name: evaluate schema: @@ -6373,6 +6387,13 @@ paths: format: date-time description: Specify a point in time to retrieve configuration from. Cannot be specified with `tag`. + - in: query + name: environment + schema: + type: string + description: |- + When fetching a single value, if that value is dynamic and evaluate is true, uses this environment for template evaluation. If none is specified, uses the value's environment. Note that the value must be active in the specified environment. + No effect on values that are not dynamic. - in: query name: evaluate schema: @@ -6442,6 +6463,13 @@ paths: description: Update the value of a parameter in an environment. summary: Update a value. parameters: + - in: query + name: environment + schema: + type: string + description: |- + When fetching a single value, if that value is dynamic and evaluate is true, uses this environment for template evaluation. If none is specified, uses the value's environment. Note that the value must be active in the specified environment. + No effect on values that are not dynamic. - in: query name: evaluate schema: @@ -6500,6 +6528,13 @@ paths: description: Update the value of a parameter in an environment. summary: Update a value. parameters: + - in: query + name: environment + schema: + type: string + description: |- + When fetching a single value, if that value is dynamic and evaluate is true, uses this environment for template evaluation. If none is specified, uses the value's environment. Note that the value must be active in the specified environment. + No effect on values that are not dynamic. - in: query name: evaluate schema: @@ -6558,6 +6593,13 @@ paths: description: Destroy the value of a parameter in an environment. summary: Destroy a value. parameters: + - in: query + name: environment + schema: + type: string + description: |- + When fetching a single value, if that value is dynamic and evaluate is true, uses this environment for template evaluation. If none is specified, uses the value's environment. Note that the value must be active in the specified environment. + No effect on values that are not dynamic. - in: query name: evaluate schema: @@ -10346,6 +10388,7 @@ components: parent: type: string format: uri + readOnly: true nullable: true description: Environments can inherit from a single parent environment which provides values for parameters when specific environments do not have @@ -10383,6 +10426,7 @@ components: - ledger_id - modified_at - name + - parent - role - url EnvironmentCopy: @@ -12161,10 +12205,13 @@ components: type: string secret: type: boolean + readOnly: true type: type: string - default: string - description: The type of this Parameter. + description: "\n The type of this Parameter. If not provided, this\ + \ will default to\n a string for Parameters that are not overrides\ + \ or to the overridden\n Parameter's type for Parameters that are\ + \ overrides.\n " rules: type: array items: @@ -12266,6 +12313,7 @@ components: - referencing_templates - referencing_values - rules + - secret - url - values - values_flat @@ -12310,8 +12358,10 @@ components: used. type: type: string - default: string - description: The type of this Parameter. + description: "\n The type of this Parameter. If not provided, this\ + \ will default to\n a string for Parameters that are not overrides\ + \ or to the overridden\n Parameter's type for Parameters that are\ + \ overrides.\n " required: - name ParameterDuality: @@ -12588,6 +12638,7 @@ components: parent: type: string format: uri + readOnly: true nullable: true description: The URL for this parameter type's parent parent_name: @@ -12610,6 +12661,7 @@ components: - ledger_id - modified_at - name + - parent - parent_name - rules - url @@ -12798,14 +12850,17 @@ components: maintain software that uses this content. secret: type: boolean + readOnly: true description: Indicates if this content is secret or not. External values are inspected on-demand to ensure they align with the parameter's secret setting and if they do not, those external values are not allowed to be used. type: type: string - default: string - description: The type of this Parameter. + description: "\n The type of this Parameter. If not provided, this\ + \ will default to\n a string for Parameters that are not overrides\ + \ or to the overridden\n Parameter's type for Parameters that are\ + \ overrides.\n " project: type: string format: uri @@ -12826,6 +12881,7 @@ components: - modified_at - name - project + - secret PatchedAwsIntegration: type: object properties: @@ -13781,14 +13837,17 @@ components: maintain software that uses this content. secret: type: boolean + readOnly: true description: Indicates if this content is secret or not. External values are inspected on-demand to ensure they align with the parameter's secret setting and if they do not, those external values are not allowed to be used. type: type: string - default: string - description: The type of this Parameter. + description: "\n The type of this Parameter. If not provided, this\ + \ will default to\n a string for Parameters that are not overrides\ + \ or to the overridden\n Parameter's type for Parameters that are\ + \ overrides.\n " project: type: string format: uri @@ -14058,6 +14117,7 @@ components: depends_on: type: string format: uri + readOnly: true nullable: true description: |- Project dependencies allow projects to be used for shared configuration, for example a database used by many applications needs to advertise its port number. @@ -14075,16 +14135,15 @@ components: pushes: type: array items: - $ref: '#/components/schemas/AwsPush' + type: string readOnly: true - description: Deprecated. Only shows pushes for aws integrations in /api/v1/. + description: Deprecated. Blank. push_urls: type: array items: type: string - format: uri readOnly: true - description: Push actions associated with the project. + description: Deprecated. Blank. created_at: type: string format: date-time @@ -14097,6 +14156,7 @@ components: required: - created_at - dependents + - depends_on - id - ledger_id - modified_at @@ -14383,6 +14443,7 @@ components: type: string format: uri readOnly: true + description: The URL for the tag. id: type: string format: uuid @@ -14412,7 +14473,7 @@ components: items: $ref: '#/components/schemas/AwsPush' readOnly: true - description: Deprecated. Only shows pushes for aws integrations in /api/v1/. + description: Deprecated. Use `push_urls` instead. push_urls: type: array items: diff --git a/src/database/parameter_details.rs b/src/database/parameter_details.rs index 709e0d72..ca13fed2 100644 --- a/src/database/parameter_details.rs +++ b/src/database/parameter_details.rs @@ -170,7 +170,7 @@ impl From<&Parameter> for ParameterDetails { ParameterDetails { id: api_param.id.clone(), key: api_param.name.clone(), - secret: api_param.secret.unwrap_or(false) || env_value.secret.unwrap_or(false), + secret: api_param.secret || env_value.secret.unwrap_or(false), description: api_param.description.clone().unwrap_or_default(), param_type: api_param._type.clone().unwrap_or_default(), project_url: api_param.project.clone(), diff --git a/src/database/parameters.rs b/src/database/parameters.rs index a1cc0676..6cfce6e1 100644 --- a/src/database/parameters.rs +++ b/src/database/parameters.rs @@ -142,6 +142,7 @@ impl Parameters { &details.id, proj_id, None, + None, ); match del_resp { Ok(_) => Ok(Some(details.val_id)), @@ -581,8 +582,14 @@ impl Parameters { external_filter: jmes_path.map(|v| v.to_string()), interpolated: evaluated, }; - let response = - projects_parameters_values_create(rest_cfg, param_id, proj_id, value_create, None); + let response = projects_parameters_values_create( + rest_cfg, + param_id, + proj_id, + value_create, + None, + None, + ); match response { Ok(api_value) => Ok(api_value.id), Err(ResponseError(ref content)) => match content.status.as_u16() { @@ -627,6 +634,7 @@ impl Parameters { param_id, proj_id, None, + None, Some(value_update), ); match response {