Skip to content

Commit

Permalink
Added retry mechanism and new SDK generator 3.78 (#4776)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarjoram committed Sep 14, 2023
1 parent 62d24a0 commit bcb1ee8
Show file tree
Hide file tree
Showing 92 changed files with 1,168 additions and 1,839 deletions.
4 changes: 2 additions & 2 deletions ibm/service/cdtoolchain/data_source_ibm_cd_toolchain.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2022, 2023 All Rights Reserved.
// Copyright IBM Corp. 2023 All Rights Reserved.
// Licensed under the Mozilla Public License v2.0

package cdtoolchain
Expand Down Expand Up @@ -34,7 +34,7 @@ func DataSourceIBMCdToolchain() *schema.Resource {
"description": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Toolchain description.",
Description: "Describes the toolchain.",
},
"account_id": &schema.Schema{
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2022 All Rights Reserved.
// Copyright IBM Corp. 2023 All Rights Reserved.
// Licensed under the Mozilla Public License v2.0

package cdtoolchain
Expand Down Expand Up @@ -73,7 +73,7 @@ func DataSourceIBMCdToolchainToolAppconfig() *schema.Resource {
"name": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Tool name.",
Description: "Name of the tool.",
},
"updated_at": &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -213,10 +213,10 @@ func dataSourceIBMCdToolchainToolAppconfigRead(context context.Context, d *schem
func dataSourceIBMCdToolchainToolAppconfigToolModelReferentToMap(model *cdtoolchainv2.ToolModelReferent) (map[string]interface{}, error) {
modelMap := make(map[string]interface{})
if model.UIHref != nil {
modelMap["ui_href"] = *model.UIHref
modelMap["ui_href"] = model.UIHref
}
if model.APIHref != nil {
modelMap["api_href"] = *model.APIHref
modelMap["api_href"] = model.APIHref
}
return modelMap, nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func DataSourceIBMCdToolchainToolArtifactory() *schema.Resource {
"name": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Tool name.",
Description: "Name of the tool.",
},
"updated_at": &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -227,10 +227,10 @@ func dataSourceIBMCdToolchainToolArtifactoryRead(context context.Context, d *sch
func dataSourceIBMCdToolchainToolArtifactoryToolModelReferentToMap(model *cdtoolchainv2.ToolModelReferent) (map[string]interface{}, error) {
modelMap := make(map[string]interface{})
if model.UIHref != nil {
modelMap["ui_href"] = *model.UIHref
modelMap["ui_href"] = model.UIHref
}
if model.APIHref != nil {
modelMap["api_href"] = *model.APIHref
modelMap["api_href"] = model.APIHref
}
return modelMap, nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func DataSourceIBMCdToolchainToolBitbucketgit() *schema.Resource {
"name": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Tool name.",
Description: "Name of the tool.",
},
"updated_at": &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -249,10 +249,10 @@ func dataSourceIBMCdToolchainToolBitbucketgitRead(context context.Context, d *sc
func dataSourceIBMCdToolchainToolBitbucketgitToolModelReferentToMap(model *cdtoolchainv2.ToolModelReferent) (map[string]interface{}, error) {
modelMap := make(map[string]interface{})
if model.UIHref != nil {
modelMap["ui_href"] = *model.UIHref
modelMap["ui_href"] = model.UIHref
}
if model.APIHref != nil {
modelMap["api_href"] = *model.APIHref
modelMap["api_href"] = model.APIHref
}
return modelMap, nil
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2022 All Rights Reserved.
// Copyright IBM Corp. 2023 All Rights Reserved.
// Licensed under the Mozilla Public License v2.0

package cdtoolchain
Expand Down Expand Up @@ -73,7 +73,7 @@ func DataSourceIBMCdToolchainToolCustom() *schema.Resource {
"name": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Tool name.",
Description: "Name of the tool.",
},
"updated_at": &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -222,10 +222,10 @@ func dataSourceIBMCdToolchainToolCustomRead(context context.Context, d *schema.R
func dataSourceIBMCdToolchainToolCustomToolModelReferentToMap(model *cdtoolchainv2.ToolModelReferent) (map[string]interface{}, error) {
modelMap := make(map[string]interface{})
if model.UIHref != nil {
modelMap["ui_href"] = *model.UIHref
modelMap["ui_href"] = model.UIHref
}
if model.APIHref != nil {
modelMap["api_href"] = *model.APIHref
modelMap["api_href"] = model.APIHref
}
return modelMap, nil
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2022 All Rights Reserved.
// Copyright IBM Corp. 2023 All Rights Reserved.
// Licensed under the Mozilla Public License v2.0

package cdtoolchain
Expand Down Expand Up @@ -73,7 +73,7 @@ func DataSourceIBMCdToolchainToolDevopsinsights() *schema.Resource {
"name": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Tool name.",
Description: "Name of the tool.",
},
"updated_at": &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -158,10 +158,10 @@ func dataSourceIBMCdToolchainToolDevopsinsightsRead(context context.Context, d *
func dataSourceIBMCdToolchainToolDevopsinsightsToolModelReferentToMap(model *cdtoolchainv2.ToolModelReferent) (map[string]interface{}, error) {
modelMap := make(map[string]interface{})
if model.UIHref != nil {
modelMap["ui_href"] = *model.UIHref
modelMap["ui_href"] = model.UIHref
}
if model.APIHref != nil {
modelMap["api_href"] = *model.APIHref
modelMap["api_href"] = model.APIHref
}
return modelMap, nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func DataSourceIBMCdToolchainToolEventnotifications() *schema.Resource {
"name": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Tool name.",
Description: "Name of the tool.",
},
"updated_at": &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -189,10 +189,10 @@ func dataSourceIBMCdToolchainToolEventnotificationsRead(context context.Context,
func dataSourceIBMCdToolchainToolEventnotificationsToolModelReferentToMap(model *cdtoolchainv2.ToolModelReferent) (map[string]interface{}, error) {
modelMap := make(map[string]interface{})
if model.UIHref != nil {
modelMap["ui_href"] = *model.UIHref
modelMap["ui_href"] = model.UIHref
}
if model.APIHref != nil {
modelMap["api_href"] = *model.APIHref
modelMap["api_href"] = model.APIHref
}
return modelMap, nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func DataSourceIBMCdToolchainToolGithubconsolidated() *schema.Resource {
"name": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Tool name.",
Description: "Name of the tool.",
},
"updated_at": &schema.Schema{
Type: schema.TypeString,
Expand All @@ -89,7 +89,7 @@ func DataSourceIBMCdToolchainToolGithubconsolidated() *schema.Resource {
"git_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Set this value to 'github' for github.com, the GUID of an existing custom GitHub Enterprise server, or 'githubcustom'.",
Description: "Set this value to 'github' for github.com, or 'githubcustom' for a custom GitHub Enterprise server.",
},
"title": &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -280,10 +280,10 @@ func dataSourceIBMCdToolchainToolGithubconsolidatedRead(context context.Context,
func dataSourceIBMCdToolchainToolGithubconsolidatedToolModelReferentToMap(model *cdtoolchainv2.ToolModelReferent) (map[string]interface{}, error) {
modelMap := make(map[string]interface{})
if model.UIHref != nil {
modelMap["ui_href"] = *model.UIHref
modelMap["ui_href"] = model.UIHref
}
if model.APIHref != nil {
modelMap["api_href"] = *model.APIHref
modelMap["api_href"] = model.APIHref
}
return modelMap, nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func DataSourceIBMCdToolchainToolGitlab() *schema.Resource {
"name": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Tool name.",
Description: "Name of the tool.",
},
"updated_at": &schema.Schema{
Type: schema.TypeString,
Expand All @@ -89,7 +89,7 @@ func DataSourceIBMCdToolchainToolGitlab() *schema.Resource {
"git_id": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Set this value to 'gitlab' for gitlab.com, the GUID of an existing custom GitLab server, or 'gitlabcustom'.",
Description: "Set this value to 'gitlab' for gitlab.com, or 'gitlabcustom' for a custom GitLab server.",
},
"title": &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -275,10 +275,10 @@ func dataSourceIBMCdToolchainToolGitlabRead(context context.Context, d *schema.R
func dataSourceIBMCdToolchainToolGitlabToolModelReferentToMap(model *cdtoolchainv2.ToolModelReferent) (map[string]interface{}, error) {
modelMap := make(map[string]interface{})
if model.UIHref != nil {
modelMap["ui_href"] = *model.UIHref
modelMap["ui_href"] = model.UIHref
}
if model.APIHref != nil {
modelMap["api_href"] = *model.APIHref
modelMap["api_href"] = model.APIHref
}
return modelMap, nil
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2022 All Rights Reserved.
// Copyright IBM Corp. 2023 All Rights Reserved.
// Licensed under the Mozilla Public License v2.0

package cdtoolchain
Expand Down Expand Up @@ -73,7 +73,7 @@ func DataSourceIBMCdToolchainToolHashicorpvault() *schema.Resource {
"name": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Tool name.",
Description: "Name of the tool.",
},
"updated_at": &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -240,10 +240,10 @@ func dataSourceIBMCdToolchainToolHashicorpvaultRead(context context.Context, d *
func dataSourceIBMCdToolchainToolHashicorpvaultToolModelReferentToMap(model *cdtoolchainv2.ToolModelReferent) (map[string]interface{}, error) {
modelMap := make(map[string]interface{})
if model.UIHref != nil {
modelMap["ui_href"] = *model.UIHref
modelMap["ui_href"] = model.UIHref
}
if model.APIHref != nil {
modelMap["api_href"] = *model.APIHref
modelMap["api_href"] = model.APIHref
}
return modelMap, nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func DataSourceIBMCdToolchainToolHostedgit() *schema.Resource {
"name": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Tool name.",
Description: "Name of the tool.",
},
"updated_at": &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -260,10 +260,10 @@ func dataSourceIBMCdToolchainToolHostedgitRead(context context.Context, d *schem
func dataSourceIBMCdToolchainToolHostedgitToolModelReferentToMap(model *cdtoolchainv2.ToolModelReferent) (map[string]interface{}, error) {
modelMap := make(map[string]interface{})
if model.UIHref != nil {
modelMap["ui_href"] = *model.UIHref
modelMap["ui_href"] = model.UIHref
}
if model.APIHref != nil {
modelMap["api_href"] = *model.APIHref
modelMap["api_href"] = model.APIHref
}
return modelMap, nil
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2022 All Rights Reserved.
// Copyright IBM Corp. 2023 All Rights Reserved.
// Licensed under the Mozilla Public License v2.0

package cdtoolchain
Expand Down Expand Up @@ -73,7 +73,7 @@ func DataSourceIBMCdToolchainToolJenkins() *schema.Resource {
"name": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Tool name.",
Description: "Name of the tool.",
},
"updated_at": &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -203,10 +203,10 @@ func dataSourceIBMCdToolchainToolJenkinsRead(context context.Context, d *schema.
func dataSourceIBMCdToolchainToolJenkinsToolModelReferentToMap(model *cdtoolchainv2.ToolModelReferent) (map[string]interface{}, error) {
modelMap := make(map[string]interface{})
if model.UIHref != nil {
modelMap["ui_href"] = *model.UIHref
modelMap["ui_href"] = model.UIHref
}
if model.APIHref != nil {
modelMap["api_href"] = *model.APIHref
modelMap["api_href"] = model.APIHref
}
return modelMap, nil
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2022 All Rights Reserved.
// Copyright IBM Corp. 2023 All Rights Reserved.
// Licensed under the Mozilla Public License v2.0

package cdtoolchain
Expand Down Expand Up @@ -73,7 +73,7 @@ func DataSourceIBMCdToolchainToolJira() *schema.Resource {
"name": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Tool name.",
Description: "Name of the tool.",
},
"updated_at": &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -205,10 +205,10 @@ func dataSourceIBMCdToolchainToolJiraRead(context context.Context, d *schema.Res
func dataSourceIBMCdToolchainToolJiraToolModelReferentToMap(model *cdtoolchainv2.ToolModelReferent) (map[string]interface{}, error) {
modelMap := make(map[string]interface{})
if model.UIHref != nil {
modelMap["ui_href"] = *model.UIHref
modelMap["ui_href"] = model.UIHref
}
if model.APIHref != nil {
modelMap["api_href"] = *model.APIHref
modelMap["api_href"] = model.APIHref
}
return modelMap, nil
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2022 All Rights Reserved.
// Copyright IBM Corp. 2023 All Rights Reserved.
// Licensed under the Mozilla Public License v2.0

package cdtoolchain
Expand Down Expand Up @@ -73,7 +73,7 @@ func DataSourceIBMCdToolchainToolKeyprotect() *schema.Resource {
"name": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Tool name.",
Description: "Name of the tool.",
},
"updated_at": &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -201,10 +201,10 @@ func dataSourceIBMCdToolchainToolKeyprotectRead(context context.Context, d *sche
func dataSourceIBMCdToolchainToolKeyprotectToolModelReferentToMap(model *cdtoolchainv2.ToolModelReferent) (map[string]interface{}, error) {
modelMap := make(map[string]interface{})
if model.UIHref != nil {
modelMap["ui_href"] = *model.UIHref
modelMap["ui_href"] = model.UIHref
}
if model.APIHref != nil {
modelMap["api_href"] = *model.APIHref
modelMap["api_href"] = model.APIHref
}
return modelMap, nil
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright IBM Corp. 2022 All Rights Reserved.
// Copyright IBM Corp. 2023 All Rights Reserved.
// Licensed under the Mozilla Public License v2.0

package cdtoolchain
Expand Down Expand Up @@ -73,7 +73,7 @@ func DataSourceIBMCdToolchainToolNexus() *schema.Resource {
"name": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Description: "Tool name.",
Description: "Name of the tool.",
},
"updated_at": &schema.Schema{
Type: schema.TypeString,
Expand Down Expand Up @@ -220,10 +220,10 @@ func dataSourceIBMCdToolchainToolNexusRead(context context.Context, d *schema.Re
func dataSourceIBMCdToolchainToolNexusToolModelReferentToMap(model *cdtoolchainv2.ToolModelReferent) (map[string]interface{}, error) {
modelMap := make(map[string]interface{})
if model.UIHref != nil {
modelMap["ui_href"] = *model.UIHref
modelMap["ui_href"] = model.UIHref
}
if model.APIHref != nil {
modelMap["api_href"] = *model.APIHref
modelMap["api_href"] = model.APIHref
}
return modelMap, nil
}

0 comments on commit bcb1ee8

Please sign in to comment.