Class: Google::Iam::V2::CreatePolicyRequest
- Inherits:
-
Object
- Object
- Google::Iam::V2::CreatePolicyRequest
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/iam/v2/policy.rb
Overview
Request message for CreatePolicy
.
Instance Attribute Summary collapse
-
#parent ⇒ ::String
Required.
-
#policy ⇒ ::Google::Iam::V2::Policy
Required.
-
#policy_id ⇒ ::String
The ID to use for this policy, which will become the final component of the policy's resource name.
Instance Attribute Details
#parent ⇒ ::String
Returns Required. The resource that the policy is attached to, along with the kind of policy
to create. Format: policies/{attachment_point}/denypolicies
The attachment point is identified by its URL-encoded full resource name,
which means that the forward-slash character, /
, must be written as
%2F
. For example,
policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies
.
For organizations and folders, use the numeric ID in the full resource name. For projects, you can use the alphanumeric or the numeric ID.
187 188 189 190 |
# File 'proto_docs/google/iam/v2/policy.rb', line 187 class CreatePolicyRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#policy ⇒ ::Google::Iam::V2::Policy
Returns Required. The policy to create.
187 188 189 190 |
# File 'proto_docs/google/iam/v2/policy.rb', line 187 class CreatePolicyRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#policy_id ⇒ ::String
Returns The ID to use for this policy, which will become the final component of
the policy's resource name. The ID must contain 3 to 63 characters. It can
contain lowercase letters and numbers, as well as dashes (-
) and periods
(.
). The first character must be a lowercase letter.
187 188 189 190 |
# File 'proto_docs/google/iam/v2/policy.rb', line 187 class CreatePolicyRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |