Class: Google::Apis::CloudassetV1::GoogleCloudAssetV1GovernedContainer
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::GoogleCloudAssetV1GovernedContainer
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb
Overview
The organization/folder/project resource governed by organization policies of AnalyzeOrgPolicyGovernedContainersRequest.constraint.
Instance Attribute Summary collapse
-
#consolidated_policy ⇒ Google::Apis::CloudassetV1::AnalyzerOrgPolicy
This organization policy message is a modified version of the one defined in the Organization Policy system.
-
#effective_tags ⇒ Array<Google::Apis::CloudassetV1::EffectiveTagDetails>
The effective tags on this resource.
-
#folders ⇒ Array<String>
The folder(s) that this resource belongs to, in the format of folders/
FOLDER_NUMBER
. -
#full_resource_name ⇒ String
The full resource name of an organization/folder/project resource.
-
#organization ⇒ String
The organization that this resource belongs to, in the format of organizations/
ORGANIZATION_NUMBER
. -
#parent ⇒ String
The full resource name of the parent of AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.
-
#policy_bundle ⇒ Array<Google::Apis::CloudassetV1::AnalyzerOrgPolicy>
The ordered list of all organization policies from the AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.
-
#project ⇒ String
The project that this resource belongs to, in the format of projects/
PROJECT_NUMBER
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssetV1GovernedContainer
constructor
A new instance of GoogleCloudAssetV1GovernedContainer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssetV1GovernedContainer
Returns a new instance of GoogleCloudAssetV1GovernedContainer.
1953 1954 1955 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1953 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consolidated_policy ⇒ Google::Apis::CloudassetV1::AnalyzerOrgPolicy
This organization policy message is a modified version of the one defined in
the Organization Policy system. This message contains several fields defined
in the original organization policy with some new fields for analysis purpose.
Corresponds to the JSON property consolidatedPolicy
1903 1904 1905 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1903 def consolidated_policy @consolidated_policy end |
#effective_tags ⇒ Array<Google::Apis::CloudassetV1::EffectiveTagDetails>
The effective tags on this resource.
Corresponds to the JSON property effectiveTags
1908 1909 1910 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1908 def @effective_tags end |
#folders ⇒ Array<String>
The folder(s) that this resource belongs to, in the format of folders/
FOLDER_NUMBER
. This field is available when the resource belongs (directly or
cascadingly) to one or more folders.
Corresponds to the JSON property folders
1915 1916 1917 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1915 def folders @folders end |
#full_resource_name ⇒ String
The full resource name of an organization/folder/project resource.
Corresponds to the JSON property fullResourceName
1921 1922 1923 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1921 def full_resource_name @full_resource_name end |
#organization ⇒ String
The organization that this resource belongs to, in the format of organizations/
ORGANIZATION_NUMBER
. This field is available when the resource belongs (
directly or cascadingly) to an organization.
Corresponds to the JSON property organization
1928 1929 1930 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1928 def organization @organization end |
#parent ⇒ String
The full resource name of the parent of
AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.
full_resource_name.
Corresponds to the JSON property parent
1936 1937 1938 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1936 def parent @parent end |
#policy_bundle ⇒ Array<Google::Apis::CloudassetV1::AnalyzerOrgPolicy>
The ordered list of all organization policies from the
AnalyzeOrgPoliciesResponse.OrgPolicyResult.consolidated_policy.
attached_resource. to the scope specified in the request. If the constraint is
defined with default policy, it will also appear in the list.
Corresponds to the JSON property policyBundle
1944 1945 1946 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1944 def policy_bundle @policy_bundle end |
#project ⇒ String
The project that this resource belongs to, in the format of projects/
PROJECT_NUMBER
. This field is available when the resource belongs to a
project.
Corresponds to the JSON property project
1951 1952 1953 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1951 def project @project end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1958 def update!(**args) @consolidated_policy = args[:consolidated_policy] if args.key?(:consolidated_policy) @effective_tags = args[:effective_tags] if args.key?(:effective_tags) @folders = args[:folders] if args.key?(:folders) @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name) @organization = args[:organization] if args.key?(:organization) @parent = args[:parent] if args.key?(:parent) @policy_bundle = args[:policy_bundle] if args.key?(:policy_bundle) @project = args[:project] if args.key?(:project) end |