Class: Google::Apis::CloudassetV1::GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedResource

Inherits:
Object
  • Object
show all
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 Google Cloud resources governed by the organization policies of the AnalyzeOrgPolicyGovernedAssetsRequest.constraint.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedResource

Returns a new instance of GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedResource.



1630
1631
1632
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1630

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

Instance Attribute Details

#asset_typeString

The asset type of the AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource. full_resource_name Example: cloudresourcemanager.googleapis.com/Project See Cloud Asset Inventory Supported Asset Types for all supported asset types. Corresponds to the JSON property assetType

Returns:

  • (String)


1589
1590
1591
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1589

def asset_type
  @asset_type
end

#effective_tagsArray<Google::Apis::CloudassetV1::EffectiveTagDetails>

The effective tags on this resource. Corresponds to the JSON property effectiveTags



1594
1595
1596
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1594

def effective_tags
  @effective_tags
end

#foldersArray<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

Returns:

  • (Array<String>)


1601
1602
1603
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1601

def folders
  @folders
end

#full_resource_nameString

The full resource name of the Google Cloud resource. Corresponds to the JSON property fullResourceName

Returns:

  • (String)


1607
1608
1609
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1607

def full_resource_name
  @full_resource_name
end

#organizationString

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

Returns:

  • (String)


1614
1615
1616
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1614

def organization
  @organization
end

#parentString

The full resource name of the parent of AnalyzeOrgPolicyGovernedAssetsResponse. GovernedResource.full_resource_name. Corresponds to the JSON property parent

Returns:

  • (String)


1621
1622
1623
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1621

def parent
  @parent
end

#projectString

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

Returns:

  • (String)


1628
1629
1630
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1628

def project
  @project
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1635
1636
1637
1638
1639
1640
1641
1642
1643
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 1635

def update!(**args)
  @asset_type = args[:asset_type] if args.key?(:asset_type)
  @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)
  @project = args[:project] if args.key?(:project)
end