Sha256: ed8b13c89690b5431ce41da1769a8926f796ee534f6823b2d37aaf9392451b48

Contents?: true

Size: 1.97 KB

Versions: 5

Compression:

Stored size: 1.97 KB

Contents

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/orgpolicy/v2/constraint.proto

require 'google/protobuf'

require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
  add_file("google/cloud/orgpolicy/v2/constraint.proto", :syntax => :proto3) do
    add_message "google.cloud.orgpolicy.v2.Constraint" do
      optional :name, :string, 1
      optional :display_name, :string, 2
      optional :description, :string, 3
      optional :constraint_default, :enum, 4, "google.cloud.orgpolicy.v2.Constraint.ConstraintDefault"
      oneof :constraint_type do
        optional :list_constraint, :message, 5, "google.cloud.orgpolicy.v2.Constraint.ListConstraint"
        optional :boolean_constraint, :message, 6, "google.cloud.orgpolicy.v2.Constraint.BooleanConstraint"
      end
    end
    add_message "google.cloud.orgpolicy.v2.Constraint.ListConstraint" do
      optional :supports_in, :bool, 1
      optional :supports_under, :bool, 2
    end
    add_message "google.cloud.orgpolicy.v2.Constraint.BooleanConstraint" do
    end
    add_enum "google.cloud.orgpolicy.v2.Constraint.ConstraintDefault" do
      value :CONSTRAINT_DEFAULT_UNSPECIFIED, 0
      value :ALLOW, 1
      value :DENY, 2
    end
  end
end

module Google
  module Cloud
    module OrgPolicy
      module V2
        Constraint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orgpolicy.v2.Constraint").msgclass
        Constraint::ListConstraint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orgpolicy.v2.Constraint.ListConstraint").msgclass
        Constraint::BooleanConstraint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orgpolicy.v2.Constraint.BooleanConstraint").msgclass
        Constraint::ConstraintDefault = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orgpolicy.v2.Constraint.ConstraintDefault").enummodule
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
google-cloud-org_policy-v2-0.2.3 lib/google/cloud/orgpolicy/v2/constraint_pb.rb
google-cloud-org_policy-v2-0.2.2 lib/google/cloud/orgpolicy/v2/constraint_pb.rb
google-cloud-org_policy-v2-0.2.1 lib/google/cloud/orgpolicy/v2/constraint_pb.rb
google-cloud-org_policy-v2-0.2.0 lib/google/cloud/orgpolicy/v2/constraint_pb.rb
google-cloud-org_policy-v2-0.1.0 lib/google/cloud/orgpolicy/v2/constraint_pb.rb