Documentation ¶
Index ¶
- Constants
- Variables
- func Abort_mpu_RuleGet(in []*s3.LifecycleRule) []interface{}
- func ApplyOnce(k, o, n string, d *schema.ResourceData) bool
- func ArchiveRuleGet(in []*s3.LifecycleRule) []interface{}
- func CfIdParts(id string) ([]string, error)
- func ConvertCisToTfFourVar(firewallType string, ID string, ID2 string, cisID string) (buildID string)
- func ConvertCisToTfThreeVar(Id string, Id2 string, cisId string) (buildId string)
- func ConvertCisToTfTwoVar(Id string, cisId string) (buildId string)
- func ConvertCisToTfTwoVarSlice(Ids []string, cisId string) (buildIds []string)
- func ConvertTfToCisFourVar(TfID string) (firewallType string, ID string, zoneID string, cisID string, err error)
- func ConvertTfToCisThreeVar(glbTfId string) (glbId string, zoneId string, cisId string, err error)
- func ConvertTfToCisTwoVarSlice(tfIds []string) (Ids []string, cisId string, err error)
- func ConvertTftoCisTwoVar(tfId string) (Id string, cisId string, err error)
- func DateTimeToString(dt *strfmt.DateTime) (s string)
- func DateToString(d *strfmt.Date) (s string)
- func DefaultResourceGroup(meta interface{}) (string, error)
- func EscapeUrlParm(urlParm string) string
- func ExpandAllowlist(allowList *schema.Set) (entries []clouddatabasesv5.AllowlistEntry)
- func ExpandAnnotations(annotations string) (whisk.KeyValueArr, error)
- func ExpandCosConfig(cos []interface{}) *kubernetesserviceapiv1.COSBucket
- func ExpandCosCredentials(cos []interface{}) *kubernetesserviceapiv1.COSAuthorization
- func ExpandExec(execs []interface{}) *whisk.Exec
- func ExpandIntList(input []interface{}) []int
- func ExpandLimits(l []interface{}) *whisk.Limits
- func ExpandMembers(configured []interface{}) []datatypes.Network_LBaaS_LoadBalancerServerInstanceInfo
- func ExpandParameters(annotations string) (whisk.KeyValueArr, error)
- func ExpandPlatformOptions(deployment clouddatabasesv5.Deployment) []map[string]interface{}
- func ExpandStringList(input []interface{}) []string
- func ExpandUsers(userList *schema.Set) (users []icdv4.User)
- func ExpireRuleGet(in []*s3.LifecycleRule) []interface{}
- func FetchResourceInstanceDetails(d *schema.ResourceData, meta interface{}, instanceID string) error
- func FilterActionAnnotations(in whisk.KeyValueArr) (string, error)
- func FilterActionParameters(in whisk.KeyValueArr) (string, error)
- func FilterInheritedAnnotations(inheritedAnnotations, annotations whisk.KeyValueArr) whisk.KeyValueArr
- func FilterInheritedParameters(inheritedParameters, parameters whisk.KeyValueArr) whisk.KeyValueArr
- func FilterTriggerAnnotations(in whisk.KeyValueArr) (string, error)
- func FindRoleByCRN(supported []iampolicymanagementv1.PolicyRole, crn string) (iampolicymanagementv1.PolicyRole, error)
- func FindRoleByName(supported []iampolicymanagementv1.PolicyRole, name string) (iampolicymanagementv1.PolicyRole, error)
- func FlattenAccessGroupMembers(list []iamaccessgroupsv2.ListGroupMembersResponseMember, ...) []map[string]interface{}
- func FlattenAccessGroupRules(list *iamaccessgroupsv2.RulesList) []map[string]interface{}
- func FlattenActionbyDisplayName(displayName string, object []iampolicymanagementv1.Role) []string
- func FlattenActivityTrack(in *resourceconfigurationv1.ActivityTracking) []interface{}
- func FlattenAlbs(list []containerv1.ALBConfig, filterType string) []map[string]interface{}
- func FlattenAllowlist(allowlist []clouddatabasesv5.AllowlistEntry) []map[string]interface{}
- func FlattenAnnotations(in whisk.KeyValueArr) (string, error)
- func FlattenBlockStorageID(in []datatypes.Network_Storage) *schema.Set
- func FlattenConditions(list []iamaccessgroupsv2.RuleConditions) []map[string]interface{}
- func FlattenConnectionStrings(cs []CsEntry) []map[string]interface{}
- func FlattenCosObejctVersioning(in *s3.GetBucketVersioningOutput) []interface{}
- func FlattenCustomRoleData(object []iampolicymanagementv1.CustomRole, roleType string) []map[string]string
- func FlattenDisks(result datatypes.Virtual_Guest) []int
- func FlattenDisksForWindows(result datatypes.Virtual_Guest) []int
- func FlattenExec(in *whisk.Exec, d *schema.ResourceData) []interface{}
- func FlattenFeed(feedName string) []interface{}
- func FlattenFileStorageID(in []datatypes.Network_Storage) *schema.Set
- func FlattenGatewayMembers(d *schema.ResourceData, list []datatypes.Network_Gateway_Member) []map[string]interface{}
- func FlattenGatewayVlans(list []datatypes.Network_Gateway_Vlan) []map[string]interface{}
- func FlattenHealthMonitors(list []datatypes.Network_LBaaS_Listener) []map[string]interface{}
- func FlattenHostLabels(hostLabels []interface{}) map[string]string
- func FlattenIcdGroups(grouplist icdv4.GroupList) []map[string]interface{}
- func FlattenInstancePolicy(policyType string, policies []kp.InstancePolicy) []map[string]interface{}
- func FlattenIntList(list []int) []interface{}
- func FlattenKeyIndividualPolicy(policy string, policies []kp.Policy) []map[string]interface{}
- func FlattenKeyPolicies(policies []kp.Policy) []map[string]interface{}
- func FlattenKeyPoliciesKey(policies []kp.Policy) []map[string]interface{}
- func FlattenLimits(in *whisk.Limits) []interface{}
- func FlattenMembersData(list []iamaccessgroupsv2.ListGroupMembersResponseMember, ...) ([]string, []string, []string)
- func FlattenMetricsMonitor(in *resourceconfigurationv1.MetricsMonitoring) []interface{}
- func FlattenNetworkInterfaces(list []containerv2.Network) []map[string]interface{}
- func FlattenNlbConfigs(nlbData []containerv2.NlbVPCListConfig) []map[string]interface{}
- func FlattenOpaqueSecret(fields containerv2.Fields) []map[string]interface{}
- func FlattenOrgRole(in []mccpv2.OrgRole, excludeUsername string) *schema.Set
- func FlattenParameters(in whisk.KeyValueArr) (string, error)
- func FlattenPhaseOneAttributes(vpn *datatypes.Network_Tunnel_Module_Context) []map[string]interface{}
- func FlattenPhaseTwoAttributes(vpn *datatypes.Network_Tunnel_Module_Context) []map[string]interface{}
- func FlattenPolicyResource(list []iampolicymanagementv1.PolicyResource) []map[string]interface{}
- func FlattenPolicyResourceAttributes(list []iampolicymanagementv1.PolicyResource) []map[string]interface{}
- func FlattenPolicyResourceTags(resources []iampolicymanagementv1.PolicyResource) []map[string]interface{}
- func FlattenProtocols(list []datatypes.Network_LBaaS_Listener) []map[string]interface{}
- func FlattenRoleData(object []iampolicymanagementv1.Role, roleType string) []map[string]string
- func FlattenRoute(in []mccpv2.Route) *schema.Set
- func FlattenRuleConditions(rule iampolicymanagementv1.V2PolicyRule) []map[string]interface{}
- func FlattenSSHKeyIDs(in []datatypes.Security_Ssh_Key) *schema.Set
- func FlattenSSLCiphers(ciphers []datatypes.Network_LBaaS_SSLCipher) *schema.Set
- func FlattenSatelliteClusterZones(list []string) []map[string]interface{}
- func FlattenSatelliteHosts(hostList []kubernetesserviceapiv1.MultishiftQueueNode) []map[string]interface{}
- func FlattenSatelliteWorkerPoolZones(zones *schema.Set) []kubernetesserviceapiv1.SatelliteCreateWorkerPoolZone
- func FlattenSatelliteWorkerPools(list []kubernetesserviceapiv1.GetWorkerPoolResponse) []map[string]interface{}
- func FlattenSatelliteZones(zones *schema.Set) []string
- func FlattenServerInstances(list []datatypes.Network_LBaaS_Member) []map[string]interface{}
- func FlattenServiceBindings(in []mccpv2.ServiceBinding) *schema.Set
- func FlattenServiceInstanceCredentials(keys []mccpv2.ServiceKeyFields) []interface{}
- func FlattenSpaceRoleUsers(in []mccpv2.SpaceRole) *schema.Set
- func FlattenStringList(list []string) []interface{}
- func FlattenSubnets(list []containerv2.Subnet) []map[string]interface{}
- func FlattenUserIds(accountID string, users []string, meta interface{}) ([]string, error)
- func FlattenUsersSet(userList *schema.Set) []string
- func FlattenV2PolicyResource(resource iampolicymanagementv1.V2PolicyResource) []map[string]interface{}
- func FlattenV2PolicyResourceAttributes(attributes []iampolicymanagementv1.V2PolicyResourceAttribute) []map[string]interface{}
- func FlattenV2PolicyResourceTags(resource iampolicymanagementv1.V2PolicyResource) []map[string]interface{}
- func FlattenVlans(list []containerv1.Vlan) []map[string]interface{}
- func FlattenVpcAlbs(list []containerv2.AlbConfig, filterType string) []map[string]interface{}
- func FlattenVpcWorkerPoolSecondaryDisk(secondaryDisk containerv2.DiskConfigResp) []map[string]interface{}
- func FlattenVpcWorkerPools(list []containerv2.GetWorkerPoolResponse) []map[string]interface{}
- func FlattenWorkerPoolHostLabels(hostLabels map[string]string) *schema.Set
- func FlattenWorkerPools(list []containerv1.WorkerPoolResponse) []map[string]interface{}
- func FlattenZones(list []containerv1.WorkerPoolZoneResponse) []map[string]interface{}
- func FlattenaddressTranslation(vpn *datatypes.Network_Tunnel_Module_Context, fwID int) []map[string]interface{}
- func FlattenremoteSubnet(vpn *datatypes.Network_Tunnel_Module_Context) []map[string]interface{}
- func GeneratePolicyOptions(d *schema.ResourceData, meta interface{}) (iampolicymanagementv1.CreatePolicyOptions, error)
- func GeneratePolicyRule(d *schema.ResourceData, ruleConditions interface{}) *iampolicymanagementv1.V2PolicyRule
- func GenerateV2PolicyOptions(d *schema.ResourceData, meta interface{}) (iampolicymanagementv1.CreateV2PolicyOptions, error)
- func GetBaseController(meta interface{}) (string, error)
- func GetErrorDocument(in *s3.ErrorDocument) []map[string]interface{}
- func GetGlobalTagsUsingCRN(meta interface{}, resourceID, resourceType, tagType string) (*schema.Set, error)
- func GetGlobalTagsUsingSearchAPI(meta interface{}, resourceID, resourceType, tagType string) (*schema.Set, error)
- func GetIBMUniqueId(accountID, userEmail string, meta interface{}) (string, error)
- func GetIndexDocument(in *s3.IndexDocument) []map[string]interface{}
- func GetLocation(instance models.ServiceInstanceV2) string
- func GetLocationV2(instance rc.ResourceInstance) string
- func GetNext(next interface{}) string
- func GetNextIAM(next interface{}) string
- func GetResourceAttribute(name string, r iampolicymanagementv1.PolicyResource) *string
- func GetResourceInstanceURL(d *schema.ResourceData, meta interface{}) (*string, error)
- func GetRoleNamesFromPolicyResponse(policy iampolicymanagementv1.V2PolicyTemplateMetaData, d *schema.ResourceData, ...) ([]string, error)
- func GetRolesFromRoleNames(roleNames []string, roles []iampolicymanagementv1.PolicyRole) ([]iampolicymanagementv1.PolicyRole, error)
- func GetSubjectAttribute(name string, s iampolicymanagementv1.PolicySubject) *string
- func GetTags(d *schema.ResourceData, meta interface{}) error
- func GetTagsUsingCRN(meta interface{}, resourceCRN string) (*schema.Set, error)
- func GetV2PolicyCustomAttributes(r iampolicymanagementv1.V2PolicyResource) []iampolicymanagementv1.V2PolicyResourceAttribute
- func GetV2PolicyResourceAttribute(key string, r iampolicymanagementv1.V2PolicyResource) string
- func GetV2PolicySubjectAttribute(key string, s iampolicymanagementv1.V2PolicySubject) *string
- func HashInt(v interface{}) int
- func IdParts(id string) ([]string, error)
- func IgnoreSystemLabels(labels map[string]string) map[string]string
- func ImmutableResourceCustomizeDiff(resourceList []string, diff *schema.ResourceDiff) error
- func IndexOf(element string, data []string) int
- func IntValue(i64 *int64) (i int)
- func IsEmpty(object interface{}) bool
- func Listdifference(a, b []string) []string
- func MapPolicyRolesToRoles(policyRoles []iampolicymanagementv1.PolicyRole) []iampolicymanagementv1.Roles
- func MapRoleListToPolicyRoles(roleList iampolicymanagementv1.RoleCollection) []iampolicymanagementv1.PolicyRole
- func MapRolesToPolicyRoles(roles []iampolicymanagementv1.Roles) []iampolicymanagementv1.PolicyRole
- func Nc_exp_RuleGet(in []*s3.LifecycleRule) []interface{}
- func NewStringSet(f schema.SchemaSetFunc, in []string) *schema.Set
- func NormalizeJSONString(jsonString interface{}) (string, error)
- func ObjectLockConfigurationGet(in *s3.ObjectLockConfiguration) []map[string]interface{}
- func ObjectLockDefaultRetentionGet(in *s3.DefaultRetention) []map[string]interface{}
- func ObjectLockRuleGet(in *s3.ObjectLockRule) []map[string]interface{}
- func PtrToString(s string) *string
- func RedirectAllRequestsGet(in *s3.RedirectAllRequestsTo) []map[string]interface{}
- func ReplicationRuleGet(in *s3.ReplicationConfiguration) []map[string]interface{}
- func ResourceIBMISLBPoolCookieValidate(diff *schema.ResourceDiff) error
- func ResourceIBMVPCHash(v interface{}) int
- func ResourceIPSecPolicyValidate(diff *schema.ResourceDiff) error
- func ResourceLBListenerPolicyCustomizeDiff(diff *schema.ResourceDiff) error
- func ResourceRouteModeValidate(diff *schema.ResourceDiff) error
- func ResourceTagsCustomizeDiff(diff *schema.ResourceDiff) error
- func ResourceValidateAccessTags(diff *schema.ResourceDiff, meta interface{}) error
- func ResourceVolumeAttachmentValidate(diff *schema.ResourceDiff) error
- func ResourceVolumeValidate(diff *schema.ResourceDiff) error
- func RetentionRuleGet(in *s3.ProtectionConfiguration) []interface{}
- func RoutingRuleConditionGet(in *s3.Condition) []map[string]interface{}
- func RoutingRuleRedirectGet(in *s3.Redirect) []map[string]interface{}
- func RoutingRulesGet(in []*s3.RoutingRule) []map[string]interface{}
- func SepIdParts(id string, separator string) ([]string, error)
- func SetResourceAttribute(name *string, value *string, r []iampolicymanagementv1.ResourceAttribute) []iampolicymanagementv1.ResourceAttribute
- func SetTags(d *schema.ResourceData) []iampolicymanagementv1.ResourceTag
- func SetV2PolicyResourceAttribute(key *string, value *string, ...) []iampolicymanagementv1.V2PolicyResourceAttribute
- func SetV2PolicyTags(d *schema.ResourceData) []iampolicymanagementv1.V2PolicyResourceTag
- func StringContains(s []string, str string) bool
- func StructToMap(obj interface{}) (newMap map[string]interface{}, err error)
- func SuppressAllowBlank(k, old, new string, d *schema.ResourceData) bool
- func SuppressEquivalentJSON(k, old, new string, d *schema.ResourceData) bool
- func SuppressGenericWebhookRawSecret(k, old, new string, d *schema.ResourceData) bool
- func SuppressHashedRawSecret(k, old, new string, d *schema.ResourceData) bool
- func SuppressPipelinePropertyRawSecret(k, old, new string, d *schema.ResourceData) bool
- func SuppressTriggerEvents(key, oldValue, newValue string, d *schema.ResourceData) bool
- func SuppressTriggerPropertyRawSecret(k, old, new string, d *schema.ResourceData) bool
- func TransformToIBMCISDnsData(recordType string, id string, value interface{}) (newValue interface{}, err error)
- func UpdateGlobalTagsUsingCRN(oldList, newList interface{}, meta interface{}, ...) error
- func UpdateTagsUsingCRN(oldList, newList interface{}, meta interface{}, resourceCRN string) error
- func VmIdParts(id string) ([]string, error)
- func WebsiteConfigurationGet(in *s3.WebsiteConfiguration) []map[string]interface{}
- type CRN
- type CsEntry
- type Map
- type ServiceErrorResponse
Constants ¶
const ( //ResourceControllerURL ... ResourceControllerURL = "resource_controller_url" //ResourceName ... ResourceName = "resource_name" //ResourceCRN ... ResourceCRN = "resource_crn" //ResourceStatus ... ResourceStatus = "resource_status" //ResourceGroupName ... ResourceGroupName = "resource_group_name" //RelatedCRN ... RelatedCRN = "related_crn" SystemIBMLabelPrefix = "ibm-cloud.kubernetes.io/" KubernetesLabelPrefix = "kubernetes.io/" K8sLabelPrefix = "k8s.io/" )
Variables ¶
var ( ErrMalformedCRN = errors.New("malformed CRN") ErrMalformedScope = errors.New("malformed scope in CRN") )
Functions ¶
func Abort_mpu_RuleGet ¶
func Abort_mpu_RuleGet(in []*s3.LifecycleRule) []interface{}
func ApplyOnce ¶
func ApplyOnce(k, o, n string, d *schema.ResourceData) bool
Use this function for attributes which only should be applied in resource creation time.
func ArchiveRuleGet ¶
func ArchiveRuleGet(in []*s3.LifecycleRule) []interface{}
func ConvertCisToTfFourVar ¶
func ConvertCisToTfThreeVar ¶
Cloud Internet Services
func ConvertCisToTfTwoVar ¶
Cloud Internet Services
func ConvertCisToTfTwoVarSlice ¶
Cloud Internet Services
func ConvertTfToCisFourVar ¶
func ConvertTfToCisThreeVar ¶
Cloud Internet Services
func ConvertTfToCisTwoVarSlice ¶
Cloud Internet Services
func ConvertTftoCisTwoVar ¶
Cloud Internet Services
func DateTimeToString ¶
func DateToString ¶ added in v1.43.0
func DefaultResourceGroup ¶
Return the default resource group
func ExpandAllowlist ¶ added in v1.48.0
func ExpandAllowlist(allowList *schema.Set) (entries []clouddatabasesv5.AllowlistEntry)
IBM Cloud Databases
func ExpandAnnotations ¶
func ExpandAnnotations(annotations string) (whisk.KeyValueArr, error)
func ExpandCosConfig ¶
func ExpandCosConfig(cos []interface{}) *kubernetesserviceapiv1.COSBucket
ExpandCosConfig ..
func ExpandCosCredentials ¶
func ExpandCosCredentials(cos []interface{}) *kubernetesserviceapiv1.COSAuthorization
expandCosCredentials ..
func ExpandExec ¶
func ExpandIntList ¶
func ExpandIntList(input []interface{}) []int
func ExpandLimits ¶
func ExpandMembers ¶
func ExpandMembers(configured []interface{}) []datatypes.Network_LBaaS_LoadBalancerServerInstanceInfo
func ExpandParameters ¶
func ExpandParameters(annotations string) (whisk.KeyValueArr, error)
func ExpandPlatformOptions ¶ added in v1.45.0
func ExpandPlatformOptions(deployment clouddatabasesv5.Deployment) []map[string]interface{}
func ExpandStringList ¶
func ExpandStringList(input []interface{}) []string
func ExpireRuleGet ¶
func ExpireRuleGet(in []*s3.LifecycleRule) []interface{}
func FetchResourceInstanceDetails ¶ added in v1.48.0
func FetchResourceInstanceDetails(d *schema.ResourceData, meta interface{}, instanceID string) error
func FilterActionAnnotations ¶
func FilterActionAnnotations(in whisk.KeyValueArr) (string, error)
func FilterActionParameters ¶
func FilterActionParameters(in whisk.KeyValueArr) (string, error)
func FilterInheritedAnnotations ¶
func FilterInheritedAnnotations(inheritedAnnotations, annotations whisk.KeyValueArr) whisk.KeyValueArr
func FilterInheritedParameters ¶
func FilterInheritedParameters(inheritedParameters, parameters whisk.KeyValueArr) whisk.KeyValueArr
func FilterTriggerAnnotations ¶
func FilterTriggerAnnotations(in whisk.KeyValueArr) (string, error)
func FindRoleByCRN ¶ added in v1.52.0
func FindRoleByCRN(supported []iampolicymanagementv1.PolicyRole, crn string) (iampolicymanagementv1.PolicyRole, error)
func FindRoleByName ¶
func FindRoleByName(supported []iampolicymanagementv1.PolicyRole, name string) (iampolicymanagementv1.PolicyRole, error)
func FlattenAccessGroupMembers ¶
func FlattenAccessGroupMembers(list []iamaccessgroupsv2.ListGroupMembersResponseMember, users []usermanagementv2.UserInfo, serviceids []iamidentityv1.ServiceID) []map[string]interface{}
func FlattenAccessGroupRules ¶
func FlattenAccessGroupRules(list *iamaccessgroupsv2.RulesList) []map[string]interface{}
func FlattenActionbyDisplayName ¶
func FlattenActionbyDisplayName(displayName string, object []iampolicymanagementv1.Role) []string
func FlattenActivityTrack ¶
func FlattenActivityTrack(in *resourceconfigurationv1.ActivityTracking) []interface{}
func FlattenAlbs ¶
func FlattenAlbs(list []containerv1.ALBConfig, filterType string) []map[string]interface{}
func FlattenAllowlist ¶ added in v1.49.0
func FlattenAllowlist(allowlist []clouddatabasesv5.AllowlistEntry) []map[string]interface{}
IBM Cloud Databases
func FlattenAnnotations ¶
func FlattenAnnotations(in whisk.KeyValueArr) (string, error)
func FlattenBlockStorageID ¶
func FlattenBlockStorageID(in []datatypes.Network_Storage) *schema.Set
func FlattenConditions ¶
func FlattenConditions(list []iamaccessgroupsv2.RuleConditions) []map[string]interface{}
func FlattenConnectionStrings ¶
IBM Cloud Databases
func FlattenCosObejctVersioning ¶
func FlattenCosObejctVersioning(in *s3.GetBucketVersioningOutput) []interface{}
func FlattenCustomRoleData ¶
func FlattenCustomRoleData(object []iampolicymanagementv1.CustomRole, roleType string) []map[string]string
func FlattenDisks ¶
func FlattenDisks(result datatypes.Virtual_Guest) []int
func FlattenDisksForWindows ¶
func FlattenDisksForWindows(result datatypes.Virtual_Guest) []int
func FlattenExec ¶
func FlattenExec(in *whisk.Exec, d *schema.ResourceData) []interface{}
func FlattenFeed ¶
func FlattenFeed(feedName string) []interface{}
func FlattenFileStorageID ¶
func FlattenFileStorageID(in []datatypes.Network_Storage) *schema.Set
func FlattenGatewayMembers ¶
func FlattenGatewayMembers(d *schema.ResourceData, list []datatypes.Network_Gateway_Member) []map[string]interface{}
func FlattenGatewayVlans ¶
func FlattenGatewayVlans(list []datatypes.Network_Gateway_Vlan) []map[string]interface{}
func FlattenHealthMonitors ¶
func FlattenHealthMonitors(list []datatypes.Network_LBaaS_Listener) []map[string]interface{}
Cloud Internet Services
func FlattenHostLabels ¶
flattenHostLabels ..
func FlattenIcdGroups ¶
func FlattenInstancePolicy ¶ added in v1.48.0
func FlattenInstancePolicy(policyType string, policies []kp.InstancePolicy) []map[string]interface{}
func FlattenIntList ¶
func FlattenIntList(list []int) []interface{}
func FlattenKeyPolicies ¶
func FlattenKeyPoliciesKey ¶ added in v1.48.0
func FlattenLimits ¶
func FlattenMembersData ¶
func FlattenMembersData(list []iamaccessgroupsv2.ListGroupMembersResponseMember, users []usermanagementv2.UserInfo, serviceids []iamidentityv1.ServiceID, profileids []iamidentityv1.TrustedProfile) ([]string, []string, []string)
func FlattenMetricsMonitor ¶
func FlattenMetricsMonitor(in *resourceconfigurationv1.MetricsMonitoring) []interface{}
func FlattenNetworkInterfaces ¶
func FlattenNetworkInterfaces(list []containerv2.Network) []map[string]interface{}
func FlattenNlbConfigs ¶
func FlattenNlbConfigs(nlbData []containerv2.NlbVPCListConfig) []map[string]interface{}
func FlattenOpaqueSecret ¶ added in v1.55.0
func FlattenOpaqueSecret(fields containerv2.Fields) []map[string]interface{}
func FlattenParameters ¶
func FlattenParameters(in whisk.KeyValueArr) (string, error)
func FlattenPhaseOneAttributes ¶
func FlattenPhaseOneAttributes(vpn *datatypes.Network_Tunnel_Module_Context) []map[string]interface{}
func FlattenPhaseTwoAttributes ¶
func FlattenPhaseTwoAttributes(vpn *datatypes.Network_Tunnel_Module_Context) []map[string]interface{}
func FlattenPolicyResource ¶
func FlattenPolicyResource(list []iampolicymanagementv1.PolicyResource) []map[string]interface{}
func FlattenPolicyResourceAttributes ¶
func FlattenPolicyResourceAttributes(list []iampolicymanagementv1.PolicyResource) []map[string]interface{}
func FlattenPolicyResourceTags ¶
func FlattenPolicyResourceTags(resources []iampolicymanagementv1.PolicyResource) []map[string]interface{}
func FlattenProtocols ¶
func FlattenProtocols(list []datatypes.Network_LBaaS_Listener) []map[string]interface{}
func FlattenRoleData ¶
func FlattenRoleData(object []iampolicymanagementv1.Role, roleType string) []map[string]string
func FlattenRuleConditions ¶ added in v1.52.0
func FlattenRuleConditions(rule iampolicymanagementv1.V2PolicyRule) []map[string]interface{}
func FlattenSSHKeyIDs ¶
func FlattenSSHKeyIDs(in []datatypes.Security_Ssh_Key) *schema.Set
func FlattenSSLCiphers ¶
func FlattenSSLCiphers(ciphers []datatypes.Network_LBaaS_SSLCipher) *schema.Set
func FlattenSatelliteHosts ¶
func FlattenSatelliteHosts(hostList []kubernetesserviceapiv1.MultishiftQueueNode) []map[string]interface{}
func FlattenSatelliteWorkerPoolZones ¶
func FlattenSatelliteWorkerPoolZones(zones *schema.Set) []kubernetesserviceapiv1.SatelliteCreateWorkerPoolZone
func FlattenSatelliteWorkerPools ¶
func FlattenSatelliteWorkerPools(list []kubernetesserviceapiv1.GetWorkerPoolResponse) []map[string]interface{}
func FlattenSatelliteZones ¶
func FlattenServerInstances ¶
func FlattenServerInstances(list []datatypes.Network_LBaaS_Member) []map[string]interface{}
func FlattenServiceBindings ¶
func FlattenServiceBindings(in []mccpv2.ServiceBinding) *schema.Set
func FlattenServiceInstanceCredentials ¶
func FlattenServiceInstanceCredentials(keys []mccpv2.ServiceKeyFields) []interface{}
func FlattenStringList ¶
func FlattenStringList(list []string) []interface{}
func FlattenSubnets ¶
func FlattenSubnets(list []containerv2.Subnet) []map[string]interface{}
func FlattenUserIds ¶
func FlattenUsersSet ¶
func FlattenV2PolicyResource ¶ added in v1.52.0
func FlattenV2PolicyResource(resource iampolicymanagementv1.V2PolicyResource) []map[string]interface{}
func FlattenV2PolicyResourceAttributes ¶ added in v1.52.0
func FlattenV2PolicyResourceAttributes(attributes []iampolicymanagementv1.V2PolicyResourceAttribute) []map[string]interface{}
func FlattenV2PolicyResourceTags ¶ added in v1.52.0
func FlattenV2PolicyResourceTags(resource iampolicymanagementv1.V2PolicyResource) []map[string]interface{}
func FlattenVlans ¶
func FlattenVlans(list []containerv1.Vlan) []map[string]interface{}
func FlattenVpcAlbs ¶
func FlattenVpcAlbs(list []containerv2.AlbConfig, filterType string) []map[string]interface{}
func FlattenVpcWorkerPoolSecondaryDisk ¶ added in v1.50.0
func FlattenVpcWorkerPoolSecondaryDisk(secondaryDisk containerv2.DiskConfigResp) []map[string]interface{}
func FlattenVpcWorkerPools ¶
func FlattenVpcWorkerPools(list []containerv2.GetWorkerPoolResponse) []map[string]interface{}
func FlattenWorkerPools ¶
func FlattenWorkerPools(list []containerv1.WorkerPoolResponse) []map[string]interface{}
func FlattenZones ¶
func FlattenZones(list []containerv1.WorkerPoolZoneResponse) []map[string]interface{}
func FlattenaddressTranslation ¶
func FlattenaddressTranslation(vpn *datatypes.Network_Tunnel_Module_Context, fwID int) []map[string]interface{}
func FlattenremoteSubnet ¶
func FlattenremoteSubnet(vpn *datatypes.Network_Tunnel_Module_Context) []map[string]interface{}
func GeneratePolicyOptions ¶
func GeneratePolicyOptions(d *schema.ResourceData, meta interface{}) (iampolicymanagementv1.CreatePolicyOptions, error)
func GeneratePolicyRule ¶ added in v1.52.0
func GeneratePolicyRule(d *schema.ResourceData, ruleConditions interface{}) *iampolicymanagementv1.V2PolicyRule
func GenerateV2PolicyOptions ¶ added in v1.52.0
func GenerateV2PolicyOptions(d *schema.ResourceData, meta interface{}) (iampolicymanagementv1.CreateV2PolicyOptions, error)
func GetBaseController ¶
func GetErrorDocument ¶ added in v1.58.0
func GetErrorDocument(in *s3.ErrorDocument) []map[string]interface{}
func GetGlobalTagsUsingCRN ¶
func GetGlobalTagsUsingSearchAPI ¶ added in v1.47.1
func GetIBMUniqueId ¶
func GetIndexDocument ¶ added in v1.58.0
func GetIndexDocument(in *s3.IndexDocument) []map[string]interface{}
func GetLocation ¶
func GetLocation(instance models.ServiceInstanceV2) string
func GetLocationV2 ¶ added in v1.48.0
func GetLocationV2(instance rc.ResourceInstance) string
func GetResourceAttribute ¶
func GetResourceAttribute(name string, r iampolicymanagementv1.PolicyResource) *string
IAM Policy Management
func GetResourceInstanceURL ¶ added in v1.48.0
func GetResourceInstanceURL(d *schema.ResourceData, meta interface{}) (*string, error)
func GetRoleNamesFromPolicyResponse ¶ added in v1.52.0
func GetRoleNamesFromPolicyResponse(policy iampolicymanagementv1.V2PolicyTemplateMetaData, d *schema.ResourceData, meta interface{}) ([]string, error)
func GetRolesFromRoleNames ¶
func GetRolesFromRoleNames(roleNames []string, roles []iampolicymanagementv1.PolicyRole) ([]iampolicymanagementv1.PolicyRole, error)
func GetSubjectAttribute ¶
func GetSubjectAttribute(name string, s iampolicymanagementv1.PolicySubject) *string
func GetTags ¶
func GetTags(d *schema.ResourceData, meta interface{}) error
func GetTagsUsingCRN ¶
func GetV2PolicyCustomAttributes ¶ added in v1.52.0
func GetV2PolicyCustomAttributes(r iampolicymanagementv1.V2PolicyResource) []iampolicymanagementv1.V2PolicyResourceAttribute
func GetV2PolicyResourceAttribute ¶ added in v1.52.0
func GetV2PolicyResourceAttribute(key string, r iampolicymanagementv1.V2PolicyResource) string
func GetV2PolicySubjectAttribute ¶ added in v1.52.0
func GetV2PolicySubjectAttribute(key string, s iampolicymanagementv1.V2PolicySubject) *string
func IgnoreSystemLabels ¶
IgnoreSystemLabels returns non-IBM tag keys.
func ImmutableResourceCustomizeDiff ¶
func ImmutableResourceCustomizeDiff(resourceList []string, diff *schema.ResourceDiff) error
func Listdifference ¶ added in v1.53.0
This function takes two lists and returns the difference between the two lists Listdifference([1,2] [2,3]) = [1]
func MapPolicyRolesToRoles ¶ added in v1.52.0
func MapPolicyRolesToRoles(policyRoles []iampolicymanagementv1.PolicyRole) []iampolicymanagementv1.Roles
func MapRoleListToPolicyRoles ¶
func MapRoleListToPolicyRoles(roleList iampolicymanagementv1.RoleCollection) []iampolicymanagementv1.PolicyRole
func MapRolesToPolicyRoles ¶ added in v1.52.0
func MapRolesToPolicyRoles(roles []iampolicymanagementv1.Roles) []iampolicymanagementv1.PolicyRole
func Nc_exp_RuleGet ¶
func Nc_exp_RuleGet(in []*s3.LifecycleRule) []interface{}
func NewStringSet ¶
func NewStringSet(f schema.SchemaSetFunc, in []string) *schema.Set
func NormalizeJSONString ¶
func ObjectLockConfigurationGet ¶ added in v1.52.0
func ObjectLockConfigurationGet(in *s3.ObjectLockConfiguration) []map[string]interface{}
func ObjectLockDefaultRetentionGet ¶ added in v1.52.0
func ObjectLockDefaultRetentionGet(in *s3.DefaultRetention) []map[string]interface{}
func ObjectLockRuleGet ¶ added in v1.52.0
func ObjectLockRuleGet(in *s3.ObjectLockRule) []map[string]interface{}
func PtrToString ¶
func RedirectAllRequestsGet ¶ added in v1.58.0
func RedirectAllRequestsGet(in *s3.RedirectAllRequestsTo) []map[string]interface{}
func ReplicationRuleGet ¶ added in v1.44.0
func ReplicationRuleGet(in *s3.ReplicationConfiguration) []map[string]interface{}
func ResourceIBMISLBPoolCookieValidate ¶
func ResourceIBMISLBPoolCookieValidate(diff *schema.ResourceDiff) error
func ResourceIBMVPCHash ¶
func ResourceIBMVPCHash(v interface{}) int
func ResourceIPSecPolicyValidate ¶ added in v1.46.0
func ResourceIPSecPolicyValidate(diff *schema.ResourceDiff) error
func ResourceLBListenerPolicyCustomizeDiff ¶
func ResourceLBListenerPolicyCustomizeDiff(diff *schema.ResourceDiff) error
func ResourceRouteModeValidate ¶
func ResourceRouteModeValidate(diff *schema.ResourceDiff) error
func ResourceTagsCustomizeDiff ¶
func ResourceTagsCustomizeDiff(diff *schema.ResourceDiff) error
func ResourceValidateAccessTags ¶ added in v1.48.0
func ResourceValidateAccessTags(diff *schema.ResourceDiff, meta interface{}) error
func ResourceVolumeAttachmentValidate ¶
func ResourceVolumeAttachmentValidate(diff *schema.ResourceDiff) error
func ResourceVolumeValidate ¶
func ResourceVolumeValidate(diff *schema.ResourceDiff) error
func RetentionRuleGet ¶
func RetentionRuleGet(in *s3.ProtectionConfiguration) []interface{}
func RoutingRuleConditionGet ¶ added in v1.58.0
func RoutingRuleRedirectGet ¶ added in v1.58.0
func RoutingRulesGet ¶ added in v1.58.0
func RoutingRulesGet(in []*s3.RoutingRule) []map[string]interface{}
func SetResourceAttribute ¶
func SetResourceAttribute(name *string, value *string, r []iampolicymanagementv1.ResourceAttribute) []iampolicymanagementv1.ResourceAttribute
func SetTags ¶
func SetTags(d *schema.ResourceData) []iampolicymanagementv1.ResourceTag
func SetV2PolicyResourceAttribute ¶ added in v1.52.0
func SetV2PolicyResourceAttribute(key *string, value *string, r []iampolicymanagementv1.V2PolicyResourceAttribute) []iampolicymanagementv1.V2PolicyResourceAttribute
func SetV2PolicyTags ¶ added in v1.52.0
func SetV2PolicyTags(d *schema.ResourceData) []iampolicymanagementv1.V2PolicyResourceTag
func StringContains ¶
func StructToMap ¶ added in v1.49.0
Converts a struct to a map while maintaining the json alias as keys
func SuppressAllowBlank ¶ added in v1.48.0
func SuppressAllowBlank(k, old, new string, d *schema.ResourceData) bool
func SuppressEquivalentJSON ¶
func SuppressEquivalentJSON(k, old, new string, d *schema.ResourceData) bool
func SuppressGenericWebhookRawSecret ¶ added in v1.46.0
func SuppressGenericWebhookRawSecret(k, old, new string, d *schema.ResourceData) bool
func SuppressHashedRawSecret ¶ added in v1.43.0
func SuppressHashedRawSecret(k, old, new string, d *schema.ResourceData) bool
func SuppressPipelinePropertyRawSecret ¶ added in v1.46.0
func SuppressPipelinePropertyRawSecret(k, old, new string, d *schema.ResourceData) bool
func SuppressTriggerEvents ¶ added in v1.52.0
func SuppressTriggerEvents(key, oldValue, newValue string, d *schema.ResourceData) bool
func SuppressTriggerPropertyRawSecret ¶ added in v1.46.0
func SuppressTriggerPropertyRawSecret(k, old, new string, d *schema.ResourceData) bool
func TransformToIBMCISDnsData ¶
func TransformToIBMCISDnsData(recordType string, id string, value interface{}) (newValue interface{}, err error)
Cloud Internet Services
func UpdateTagsUsingCRN ¶
func WebsiteConfigurationGet ¶ added in v1.58.0
func WebsiteConfigurationGet(in *s3.WebsiteConfiguration) []map[string]interface{}
Types ¶
type CRN ¶ added in v1.48.0
type CsEntry ¶
type CsEntry struct { Name string Password string String string Composed string CertName string CertBase64 string Hosts []struct { HostName string `json:"hostname"` Port int `json:"port"` } Scheme string QueryOptions map[string]interface{} Path string Database string BundleName string BundleBase64 string }
type Map ¶
Map is a wrapper around map[string]string that provides some helpers above it that assume the map is in the format that flatmap expects (the result of Flatten).
All modifying functions such as Delete are done in-place unless otherwise noted.
func Flatten ¶
Flatten takes a structure and turns into a flat map[string]string.
Within the "thing" parameter, only primitive values are allowed. Structs are not supported. Therefore, it can only be slices, maps, primitives, and any combination of those together.
See the tests for examples of what inputs are turned into.
func (Map) Merge ¶
Merge merges the contents of the other Map into this one.
This merge is smarter than a simple map iteration because it will fully replace arrays and other complex structures that are present in this map with the other map's. For example, if this map has a 3 element "foo" list, and m2 has a 2 element "foo" list, then the result will be that m has a 2 element "foo" list.
type ServiceErrorResponse ¶
error object
func BeautifyError ¶
func BeautifyError(err error, response *core.DetailedResponse) *ServiceErrorResponse
func (*ServiceErrorResponse) String ¶
func (response *ServiceErrorResponse) String() string