Class: Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/integrations_v1alpha/classes.rb,
lib/google/apis/integrations_v1alpha/representations.rb,
lib/google/apis/integrations_v1alpha/representations.rb

Overview

Rule used to validate strings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex

Returns a new instance of EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleStringRegex.



1903
1904
1905
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1903

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#exclusiveBoolean Also known as: exclusive?

Whether the regex matcher is applied exclusively (if true, matching values will be rejected). Corresponds to the JSON property exclusive

Returns:

  • (Boolean)


1895
1896
1897
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1895

def exclusive
  @exclusive
end

#regexString

The regex applied to the input value(s). Corresponds to the JSON property regex

Returns:

  • (String)


1901
1902
1903
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1901

def regex
  @regex
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1908
1909
1910
1911
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1908

def update!(**args)
  @exclusive = args[:exclusive] if args.key?(:exclusive)
  @regex = args[:regex] if args.key?(:regex)
end