Skip to content

Commit 50bb075

Browse files
authored
Merge pull request #42 from IBM/shacharn-3850-sign-fail
fix sign intermediate command
2 parents ad26cfc + 47a4221 commit 50bb075

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

secretsmanagerv1/secrets_manager_v1.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
/*
18-
* IBM OpenAPI SDK Code Generator Version: 3.48.0-e80b60a1-20220414-145125
18+
* IBM OpenAPI SDK Code Generator Version: 3.47.1-be944570-20220406-170244
1919
*/
2020

2121
// Package secretsmanagerv1 : Operations and models for the SecretsManagerV1 service
@@ -2395,7 +2395,7 @@ type ConfigAction struct {
23952395
//
23962396
// The value can be supplied as a string representation of a duration in hours, such as `12h`. The value can't exceed
23972397
// the `max_ttl` that is defined in the associated certificate template.
2398-
TTL *string `json:"ttl,omitempty"`
2398+
TTL interface{} `json:"ttl,omitempty"`
23992399

24002400
// The format of the returned data.
24012401
Format *string `json:"format,omitempty"`
@@ -2671,7 +2671,7 @@ type ConfigElementActionResultConfig struct {
26712671
//
26722672
// The value can be supplied as a string representation of a duration in hours, such as `12h`. The value can't exceed
26732673
// the `max_ttl` that is defined in the associated certificate template.
2674-
TTL *string `json:"ttl,omitempty"`
2674+
TTL interface{} `json:"ttl,omitempty"`
26752675

26762676
// The format of the returned data.
26772677
Format *string `json:"format,omitempty"`
@@ -12948,7 +12948,7 @@ type SignCsrAction struct {
1294812948
//
1294912949
// The value can be supplied as a string representation of a duration in hours, such as `12h`. The value can't exceed
1295012950
// the `max_ttl` that is defined in the associated certificate template.
12951-
TTL *string `json:"ttl,omitempty"`
12951+
TTL interface{} `json:"ttl,omitempty"`
1295212952

1295312953
// The format of the returned data.
1295412954
Format *string `json:"format,omitempty"`
@@ -13143,7 +13143,7 @@ type SignCsrActionResult struct {
1314313143
//
1314413144
// The value can be supplied as a string representation of a duration in hours, such as `12h`. The value can't exceed
1314513145
// the `max_ttl` that is defined in the associated certificate template.
13146-
TTL *string `json:"ttl,omitempty"`
13146+
TTL interface{} `json:"ttl,omitempty"`
1314713147

1314813148
// The format of the returned data.
1314913149
Format *string `json:"format,omitempty"`
@@ -13336,7 +13336,7 @@ type SignIntermediateAction struct {
1333613336
//
1333713337
// The value can be supplied as a string representation of a duration in hours, such as `12h`. The value can't exceed
1333813338
// the `max_ttl` that is defined in the associated certificate template.
13339-
TTL *string `json:"ttl,omitempty"`
13339+
TTL interface{} `json:"ttl,omitempty"`
1334013340

1334113341
// The format of the returned data.
1334213342
Format *string `json:"format,omitempty"`
@@ -13532,7 +13532,7 @@ type SignIntermediateActionResult struct {
1353213532
//
1353313533
// The value can be supplied as a string representation of a duration in hours, such as `12h`. The value can't exceed
1353413534
// the `max_ttl` that is defined in the associated certificate template.
13535-
TTL *string `json:"ttl,omitempty"`
13535+
TTL interface{} `json:"ttl,omitempty"`
1353613536

1353713537
// The format of the returned data.
1353813538
Format *string `json:"format,omitempty"`

secretsmanagerv1/secrets_manager_v1_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6006,7 +6006,7 @@ var _ = Describe(`SecretsManagerV1`, func() {
60066006
// Set mock response
60076007
res.Header().Set("Content-type", "application/json")
60086008
res.WriteHeader(200)
6009-
fmt.Fprintf(res, "%s", `{"metadata": {"collection_type": "application/vnd.ibm.secrets-manager.config+json", "collection_total": 1}, "resources": [{"name": "Name", "type": "letsencrypt", "config": {"common_name": "example.com", "alt_names": "AltNames", "ip_sans": "IPSans", "uri_sans": "URISans", "other_sans": ["OtherSans"], "ttl": "12h", "format": "pem", "max_path_length": 13, "exclude_cn_from_sans": false, "permitted_dns_domains": ["PermittedDNSDomains"], "use_csr_values": false, "ou": ["Ou"], "organization": ["Organization"], "country": ["Country"], "locality": ["Locality"], "province": ["Province"], "street_address": ["StreetAddress"], "postal_code": ["PostalCode"], "serial_number": "d9:be:fe:35:ba:09:42:b5", "data": {"certificate": "Certificate", "serial_number": "d9:be:fe:35:ba:09:42:b5", "issuing_ca": "IssuingCa", "ca_chain": ["CaChain"], "expiration": 10}, "csr": "Csr"}}]}`)
6009+
fmt.Fprintf(res, "%s", `{"metadata": {"collection_type": "application/vnd.ibm.secrets-manager.config+json", "collection_total": 1}, "resources": [{"name": "Name", "type": "letsencrypt", "config": {"common_name": "example.com", "alt_names": "AltNames", "ip_sans": "IPSans", "uri_sans": "URISans", "other_sans": ["OtherSans"], "ttl": "anyValue", "format": "pem", "max_path_length": 13, "exclude_cn_from_sans": false, "permitted_dns_domains": ["PermittedDNSDomains"], "use_csr_values": false, "ou": ["Ou"], "organization": ["Organization"], "country": ["Country"], "locality": ["Locality"], "province": ["Province"], "street_address": ["StreetAddress"], "postal_code": ["PostalCode"], "serial_number": "d9:be:fe:35:ba:09:42:b5", "data": {"certificate": "Certificate", "serial_number": "d9:be:fe:35:ba:09:42:b5", "issuing_ca": "IssuingCa", "ca_chain": ["CaChain"], "expiration": 10}, "csr": "Csr"}}]}`)
60106010
}))
60116011
})
60126012
It(`Invoke ActionOnConfigElement successfully with retries`, func() {
@@ -6104,7 +6104,7 @@ var _ = Describe(`SecretsManagerV1`, func() {
61046104
// Set mock response
61056105
res.Header().Set("Content-type", "application/json")
61066106
res.WriteHeader(200)
6107-
fmt.Fprintf(res, "%s", `{"metadata": {"collection_type": "application/vnd.ibm.secrets-manager.config+json", "collection_total": 1}, "resources": [{"name": "Name", "type": "letsencrypt", "config": {"common_name": "example.com", "alt_names": "AltNames", "ip_sans": "IPSans", "uri_sans": "URISans", "other_sans": ["OtherSans"], "ttl": "12h", "format": "pem", "max_path_length": 13, "exclude_cn_from_sans": false, "permitted_dns_domains": ["PermittedDNSDomains"], "use_csr_values": false, "ou": ["Ou"], "organization": ["Organization"], "country": ["Country"], "locality": ["Locality"], "province": ["Province"], "street_address": ["StreetAddress"], "postal_code": ["PostalCode"], "serial_number": "d9:be:fe:35:ba:09:42:b5", "data": {"certificate": "Certificate", "serial_number": "d9:be:fe:35:ba:09:42:b5", "issuing_ca": "IssuingCa", "ca_chain": ["CaChain"], "expiration": 10}, "csr": "Csr"}}]}`)
6107+
fmt.Fprintf(res, "%s", `{"metadata": {"collection_type": "application/vnd.ibm.secrets-manager.config+json", "collection_total": 1}, "resources": [{"name": "Name", "type": "letsencrypt", "config": {"common_name": "example.com", "alt_names": "AltNames", "ip_sans": "IPSans", "uri_sans": "URISans", "other_sans": ["OtherSans"], "ttl": "anyValue", "format": "pem", "max_path_length": 13, "exclude_cn_from_sans": false, "permitted_dns_domains": ["PermittedDNSDomains"], "use_csr_values": false, "ou": ["Ou"], "organization": ["Organization"], "country": ["Country"], "locality": ["Locality"], "province": ["Province"], "street_address": ["StreetAddress"], "postal_code": ["PostalCode"], "serial_number": "d9:be:fe:35:ba:09:42:b5", "data": {"certificate": "Certificate", "serial_number": "d9:be:fe:35:ba:09:42:b5", "issuing_ca": "IssuingCa", "ca_chain": ["CaChain"], "expiration": 10}, "csr": "Csr"}}]}`)
61086108
}))
61096109
})
61106110
It(`Invoke ActionOnConfigElement successfully`, func() {

0 commit comments

Comments
 (0)