Sha256: b74031f14b031566d89f6d369dd5e876291b405234ada18565310cf4d7012b4b

Contents?: true

Size: 1.97 KB

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
google-cloud-org_policy-v2-0.3.0 lib/google/cloud/orgpolicy/v2/constraint_pb.rb