dynect_migration_details.go raw

   1  // Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates.  All rights reserved.
   2  // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
   3  // Code generated. DO NOT EDIT.
   4  
   5  // DNS API
   6  //
   7  // API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
   8  // For more information, see Overview of the DNS Service (https://docs.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
   9  //
  10  
  11  package dns
  12  
  13  import (
  14  	"fmt"
  15  	"strings"
  16  
  17  	"github.com/nrdcg/oci-go-sdk/common/v1065"
  18  )
  19  
  20  // DynectMigrationDetails Details specific to performing a DynECT zone migration.
  21  type DynectMigrationDetails struct {
  22  
  23  	// DynECT customer name the zone belongs to.
  24  	CustomerName *string `mandatory:"true" json:"customerName"`
  25  
  26  	// DynECT API username to perform the migration with.
  27  	Username *string `mandatory:"true" json:"username"`
  28  
  29  	// DynECT API password for the provided username.
  30  	Password *string `mandatory:"true" json:"password"`
  31  
  32  	// A map of fully-qualified domain names (FQDNs) to an array of `MigrationReplacement` objects.
  33  	HttpRedirectReplacements map[string][]MigrationReplacement `mandatory:"false" json:"httpRedirectReplacements"`
  34  }
  35  
  36  func (m DynectMigrationDetails) String() string {
  37  	return common.PointerString(m)
  38  }
  39  
  40  // ValidateEnumValue returns an error when providing an unsupported enum value
  41  // This function is being called during constructing API request process
  42  // Not recommended for calling this function directly
  43  func (m DynectMigrationDetails) ValidateEnumValue() (bool, error) {
  44  	errMessage := []string{}
  45  
  46  	if len(errMessage) > 0 {
  47  		return true, fmt.Errorf("%s", strings.Join(errMessage, "\n"))
  48  	}
  49  	return false, nil
  50  }
  51