Class: Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/alloydb/v1beta/resources.rb

Overview

SupportedDatabaseFlag gives general information about a database flag, like type and allowed values. This is a static value that is defined on the server side, and it cannot be modified by callers. To set the Database flags on a particular Instance, a caller should modify the Instance.database_flags field.

Defined Under Namespace

Modules: Scope, ValueType Classes: IntegerRestrictions, StringRestrictions

Instance Attribute Summary collapse

Instance Attribute Details

#accepts_multiple_values::Boolean

Returns Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.

Returns:

  • (::Boolean)

    Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.



1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 1594

class SupportedDatabaseFlag
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Restrictions on STRING type values
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     The list of allowed values, if bounded. This field will be empty
  #     if there is a unbounded number of allowed values.
  class StringRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Restrictions on INTEGER type values.
  # @!attribute [rw] min_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The minimum value that can be specified, if applicable.
  # @!attribute [rw] max_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The maximum value that can be specified, if applicable.
  class IntegerRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ValueType describes the semantic type of the value that the flag accepts.
  # Regardless of the ValueType, the Instance.database_flags field accepts the
  # stringified version of the value, i.e. "20" or "3.14".
  module ValueType
    # This is an unknown flag type.
    VALUE_TYPE_UNSPECIFIED = 0

    # String type flag.
    STRING = 1

    # Integer type flag.
    INTEGER = 2

    # Float type flag.
    FLOAT = 3

    # Denotes that the flag does not accept any values.
    NONE = 4
  end

  # The scope of the flag.
  module Scope
    # The scope of the flag is not specified. Default is DATABASE.
    SCOPE_UNSPECIFIED = 0

    # The flag is a database flag.
    DATABASE = 1

    # The flag is a connection pool flag.
    CONNECTION_POOL = 2
  end
end

#flag_name::String

Returns The name of the database flag, e.g. "max_allowed_packets". The is a possibly key for the Instance.database_flags map field.

Returns:

  • (::String)

    The name of the database flag, e.g. "max_allowed_packets". The is a possibly key for the Instance.database_flags map field.



1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 1594

class SupportedDatabaseFlag
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Restrictions on STRING type values
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     The list of allowed values, if bounded. This field will be empty
  #     if there is a unbounded number of allowed values.
  class StringRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Restrictions on INTEGER type values.
  # @!attribute [rw] min_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The minimum value that can be specified, if applicable.
  # @!attribute [rw] max_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The maximum value that can be specified, if applicable.
  class IntegerRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ValueType describes the semantic type of the value that the flag accepts.
  # Regardless of the ValueType, the Instance.database_flags field accepts the
  # stringified version of the value, i.e. "20" or "3.14".
  module ValueType
    # This is an unknown flag type.
    VALUE_TYPE_UNSPECIFIED = 0

    # String type flag.
    STRING = 1

    # Integer type flag.
    INTEGER = 2

    # Float type flag.
    FLOAT = 3

    # Denotes that the flag does not accept any values.
    NONE = 4
  end

  # The scope of the flag.
  module Scope
    # The scope of the flag is not specified. Default is DATABASE.
    SCOPE_UNSPECIFIED = 0

    # The flag is a database flag.
    DATABASE = 1

    # The flag is a connection pool flag.
    CONNECTION_POOL = 2
  end
end

#integer_restrictions::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::IntegerRestrictions

Returns Restriction on INTEGER type value.

Note: The following fields are mutually exclusive: integer_restrictions, string_restrictions. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 1594

class SupportedDatabaseFlag
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Restrictions on STRING type values
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     The list of allowed values, if bounded. This field will be empty
  #     if there is a unbounded number of allowed values.
  class StringRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Restrictions on INTEGER type values.
  # @!attribute [rw] min_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The minimum value that can be specified, if applicable.
  # @!attribute [rw] max_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The maximum value that can be specified, if applicable.
  class IntegerRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ValueType describes the semantic type of the value that the flag accepts.
  # Regardless of the ValueType, the Instance.database_flags field accepts the
  # stringified version of the value, i.e. "20" or "3.14".
  module ValueType
    # This is an unknown flag type.
    VALUE_TYPE_UNSPECIFIED = 0

    # String type flag.
    STRING = 1

    # Integer type flag.
    INTEGER = 2

    # Float type flag.
    FLOAT = 3

    # Denotes that the flag does not accept any values.
    NONE = 4
  end

  # The scope of the flag.
  module Scope
    # The scope of the flag is not specified. Default is DATABASE.
    SCOPE_UNSPECIFIED = 0

    # The flag is a database flag.
    DATABASE = 1

    # The flag is a connection pool flag.
    CONNECTION_POOL = 2
  end
end

#name::String

Returns The name of the flag resource, following Google Cloud conventions, e.g.:

  • projects/{project}/locations/{location}/flags/{flag} This field currently has no semantic meaning.

Returns:

  • (::String)

    The name of the flag resource, following Google Cloud conventions, e.g.:

    • projects/{project}/locations/{location}/flags/{flag} This field currently has no semantic meaning.


1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 1594

class SupportedDatabaseFlag
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Restrictions on STRING type values
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     The list of allowed values, if bounded. This field will be empty
  #     if there is a unbounded number of allowed values.
  class StringRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Restrictions on INTEGER type values.
  # @!attribute [rw] min_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The minimum value that can be specified, if applicable.
  # @!attribute [rw] max_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The maximum value that can be specified, if applicable.
  class IntegerRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ValueType describes the semantic type of the value that the flag accepts.
  # Regardless of the ValueType, the Instance.database_flags field accepts the
  # stringified version of the value, i.e. "20" or "3.14".
  module ValueType
    # This is an unknown flag type.
    VALUE_TYPE_UNSPECIFIED = 0

    # String type flag.
    STRING = 1

    # Integer type flag.
    INTEGER = 2

    # Float type flag.
    FLOAT = 3

    # Denotes that the flag does not accept any values.
    NONE = 4
  end

  # The scope of the flag.
  module Scope
    # The scope of the flag is not specified. Default is DATABASE.
    SCOPE_UNSPECIFIED = 0

    # The flag is a database flag.
    DATABASE = 1

    # The flag is a connection pool flag.
    CONNECTION_POOL = 2
  end
end

Returns The recommended value for an INTEGER flag.

Note: The following fields are mutually exclusive: recommended_integer_value, recommended_string_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Protobuf::Int64Value)

    The recommended value for an INTEGER flag.

    Note: The following fields are mutually exclusive: recommended_integer_value, recommended_string_value. If a field in that set is populated, all other fields in the set will automatically be cleared.



1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 1594

class SupportedDatabaseFlag
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Restrictions on STRING type values
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     The list of allowed values, if bounded. This field will be empty
  #     if there is a unbounded number of allowed values.
  class StringRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Restrictions on INTEGER type values.
  # @!attribute [rw] min_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The minimum value that can be specified, if applicable.
  # @!attribute [rw] max_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The maximum value that can be specified, if applicable.
  class IntegerRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ValueType describes the semantic type of the value that the flag accepts.
  # Regardless of the ValueType, the Instance.database_flags field accepts the
  # stringified version of the value, i.e. "20" or "3.14".
  module ValueType
    # This is an unknown flag type.
    VALUE_TYPE_UNSPECIFIED = 0

    # String type flag.
    STRING = 1

    # Integer type flag.
    INTEGER = 2

    # Float type flag.
    FLOAT = 3

    # Denotes that the flag does not accept any values.
    NONE = 4
  end

  # The scope of the flag.
  module Scope
    # The scope of the flag is not specified. Default is DATABASE.
    SCOPE_UNSPECIFIED = 0

    # The flag is a database flag.
    DATABASE = 1

    # The flag is a connection pool flag.
    CONNECTION_POOL = 2
  end
end

Returns The recommended value for a STRING flag.

Note: The following fields are mutually exclusive: recommended_string_value, recommended_integer_value. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::String)

    The recommended value for a STRING flag.

    Note: The following fields are mutually exclusive: recommended_string_value, recommended_integer_value. If a field in that set is populated, all other fields in the set will automatically be cleared.



1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 1594

class SupportedDatabaseFlag
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Restrictions on STRING type values
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     The list of allowed values, if bounded. This field will be empty
  #     if there is a unbounded number of allowed values.
  class StringRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Restrictions on INTEGER type values.
  # @!attribute [rw] min_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The minimum value that can be specified, if applicable.
  # @!attribute [rw] max_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The maximum value that can be specified, if applicable.
  class IntegerRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ValueType describes the semantic type of the value that the flag accepts.
  # Regardless of the ValueType, the Instance.database_flags field accepts the
  # stringified version of the value, i.e. "20" or "3.14".
  module ValueType
    # This is an unknown flag type.
    VALUE_TYPE_UNSPECIFIED = 0

    # String type flag.
    STRING = 1

    # Integer type flag.
    INTEGER = 2

    # Float type flag.
    FLOAT = 3

    # Denotes that the flag does not accept any values.
    NONE = 4
  end

  # The scope of the flag.
  module Scope
    # The scope of the flag is not specified. Default is DATABASE.
    SCOPE_UNSPECIFIED = 0

    # The flag is a database flag.
    DATABASE = 1

    # The flag is a connection pool flag.
    CONNECTION_POOL = 2
  end
end

#requires_db_restart::Boolean

Returns Whether setting or updating this flag on an Instance requires a database restart. If a flag that requires database restart is set, the backend will automatically restart the database (making sure to satisfy any availability SLO's).

Returns:

  • (::Boolean)

    Whether setting or updating this flag on an Instance requires a database restart. If a flag that requires database restart is set, the backend will automatically restart the database (making sure to satisfy any availability SLO's).



1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 1594

class SupportedDatabaseFlag
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Restrictions on STRING type values
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     The list of allowed values, if bounded. This field will be empty
  #     if there is a unbounded number of allowed values.
  class StringRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Restrictions on INTEGER type values.
  # @!attribute [rw] min_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The minimum value that can be specified, if applicable.
  # @!attribute [rw] max_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The maximum value that can be specified, if applicable.
  class IntegerRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ValueType describes the semantic type of the value that the flag accepts.
  # Regardless of the ValueType, the Instance.database_flags field accepts the
  # stringified version of the value, i.e. "20" or "3.14".
  module ValueType
    # This is an unknown flag type.
    VALUE_TYPE_UNSPECIFIED = 0

    # String type flag.
    STRING = 1

    # Integer type flag.
    INTEGER = 2

    # Float type flag.
    FLOAT = 3

    # Denotes that the flag does not accept any values.
    NONE = 4
  end

  # The scope of the flag.
  module Scope
    # The scope of the flag is not specified. Default is DATABASE.
    SCOPE_UNSPECIFIED = 0

    # The flag is a database flag.
    DATABASE = 1

    # The flag is a connection pool flag.
    CONNECTION_POOL = 2
  end
end

#scope::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::Scope

Returns The scope of the flag.



1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 1594

class SupportedDatabaseFlag
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Restrictions on STRING type values
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     The list of allowed values, if bounded. This field will be empty
  #     if there is a unbounded number of allowed values.
  class StringRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Restrictions on INTEGER type values.
  # @!attribute [rw] min_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The minimum value that can be specified, if applicable.
  # @!attribute [rw] max_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The maximum value that can be specified, if applicable.
  class IntegerRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ValueType describes the semantic type of the value that the flag accepts.
  # Regardless of the ValueType, the Instance.database_flags field accepts the
  # stringified version of the value, i.e. "20" or "3.14".
  module ValueType
    # This is an unknown flag type.
    VALUE_TYPE_UNSPECIFIED = 0

    # String type flag.
    STRING = 1

    # Integer type flag.
    INTEGER = 2

    # Float type flag.
    FLOAT = 3

    # Denotes that the flag does not accept any values.
    NONE = 4
  end

  # The scope of the flag.
  module Scope
    # The scope of the flag is not specified. Default is DATABASE.
    SCOPE_UNSPECIFIED = 0

    # The flag is a database flag.
    DATABASE = 1

    # The flag is a connection pool flag.
    CONNECTION_POOL = 2
  end
end

#string_restrictions::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::StringRestrictions

Returns Restriction on STRING type value.

Note: The following fields are mutually exclusive: string_restrictions, integer_restrictions. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 1594

class SupportedDatabaseFlag
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Restrictions on STRING type values
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     The list of allowed values, if bounded. This field will be empty
  #     if there is a unbounded number of allowed values.
  class StringRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Restrictions on INTEGER type values.
  # @!attribute [rw] min_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The minimum value that can be specified, if applicable.
  # @!attribute [rw] max_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The maximum value that can be specified, if applicable.
  class IntegerRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ValueType describes the semantic type of the value that the flag accepts.
  # Regardless of the ValueType, the Instance.database_flags field accepts the
  # stringified version of the value, i.e. "20" or "3.14".
  module ValueType
    # This is an unknown flag type.
    VALUE_TYPE_UNSPECIFIED = 0

    # String type flag.
    STRING = 1

    # Integer type flag.
    INTEGER = 2

    # Float type flag.
    FLOAT = 3

    # Denotes that the flag does not accept any values.
    NONE = 4
  end

  # The scope of the flag.
  module Scope
    # The scope of the flag is not specified. Default is DATABASE.
    SCOPE_UNSPECIFIED = 0

    # The flag is a database flag.
    DATABASE = 1

    # The flag is a connection pool flag.
    CONNECTION_POOL = 2
  end
end

#supported_db_versions::Array<::Google::Cloud::AlloyDB::V1beta::DatabaseVersion>

Returns Major database engine versions for which this flag is supported.

Returns:



1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 1594

class SupportedDatabaseFlag
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Restrictions on STRING type values
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     The list of allowed values, if bounded. This field will be empty
  #     if there is a unbounded number of allowed values.
  class StringRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Restrictions on INTEGER type values.
  # @!attribute [rw] min_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The minimum value that can be specified, if applicable.
  # @!attribute [rw] max_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The maximum value that can be specified, if applicable.
  class IntegerRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ValueType describes the semantic type of the value that the flag accepts.
  # Regardless of the ValueType, the Instance.database_flags field accepts the
  # stringified version of the value, i.e. "20" or "3.14".
  module ValueType
    # This is an unknown flag type.
    VALUE_TYPE_UNSPECIFIED = 0

    # String type flag.
    STRING = 1

    # Integer type flag.
    INTEGER = 2

    # Float type flag.
    FLOAT = 3

    # Denotes that the flag does not accept any values.
    NONE = 4
  end

  # The scope of the flag.
  module Scope
    # The scope of the flag is not specified. Default is DATABASE.
    SCOPE_UNSPECIFIED = 0

    # The flag is a database flag.
    DATABASE = 1

    # The flag is a connection pool flag.
    CONNECTION_POOL = 2
  end
end

#value_type::Google::Cloud::AlloyDB::V1beta::SupportedDatabaseFlag::ValueType



1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
# File 'proto_docs/google/cloud/alloydb/v1beta/resources.rb', line 1594

class SupportedDatabaseFlag
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Restrictions on STRING type values
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     The list of allowed values, if bounded. This field will be empty
  #     if there is a unbounded number of allowed values.
  class StringRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Restrictions on INTEGER type values.
  # @!attribute [rw] min_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The minimum value that can be specified, if applicable.
  # @!attribute [rw] max_value
  #   @return [::Google::Protobuf::Int64Value]
  #     The maximum value that can be specified, if applicable.
  class IntegerRestrictions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # ValueType describes the semantic type of the value that the flag accepts.
  # Regardless of the ValueType, the Instance.database_flags field accepts the
  # stringified version of the value, i.e. "20" or "3.14".
  module ValueType
    # This is an unknown flag type.
    VALUE_TYPE_UNSPECIFIED = 0

    # String type flag.
    STRING = 1

    # Integer type flag.
    INTEGER = 2

    # Float type flag.
    FLOAT = 3

    # Denotes that the flag does not accept any values.
    NONE = 4
  end

  # The scope of the flag.
  module Scope
    # The scope of the flag is not specified. Default is DATABASE.
    SCOPE_UNSPECIFIED = 0

    # The flag is a database flag.
    DATABASE = 1

    # The flag is a connection pool flag.
    CONNECTION_POOL = 2
  end
end