Class: Google::Cloud::ConfigService::V1::Resource
- Inherits:
-
Object
- Object
- Google::Cloud::ConfigService::V1::Resource
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/config/v1/config.rb
Overview
Resource represents a Google Cloud Platform resource actuated by IM. Resources are child resources of Revisions.
Defined Under Namespace
Modules: Intent, State Classes: CaiAssetsEntry
Instance Attribute Summary collapse
-
#cai_assets ⇒ ::Google::Protobuf::Map{::String => ::Google::Cloud::ConfigService::V1::ResourceCAIInfo}
readonly
Output only.
-
#intent ⇒ ::Google::Cloud::ConfigService::V1::Resource::Intent
readonly
Output only.
-
#name ⇒ ::String
readonly
Output only.
-
#state ⇒ ::Google::Cloud::ConfigService::V1::Resource::State
readonly
Output only.
-
#terraform_info ⇒ ::Google::Cloud::ConfigService::V1::ResourceTerraformInfo
readonly
Output only.
Instance Attribute Details
#cai_assets ⇒ ::Google::Protobuf::Map{::String => ::Google::Cloud::ConfigService::V1::ResourceCAIInfo} (readonly)
Returns Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types.
882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 882 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::ConfigService::V1::ResourceCAIInfo] class CaiAssetsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible intent of the resource. module Intent # The default value. This value is used if the intent is omitted. INTENT_UNSPECIFIED = 0 # Infra Manager will create this Resource. CREATE = 1 # Infra Manager will update this Resource. UPDATE = 2 # Infra Manager will delete this Resource. DELETE = 3 # Infra Manager will destroy and recreate this Resource. RECREATE = 4 # Infra Manager will leave this Resource untouched. UNCHANGED = 5 end # Possible states of a resource. module State # The default value. This value is used if the state is omitted. STATE_UNSPECIFIED = 0 # Resource has been planned for reconcile. PLANNED = 1 # Resource is actively reconciling into the intended state. IN_PROGRESS = 2 # Resource has reconciled to intended state. RECONCILED = 3 # Resource failed to reconcile. FAILED = 4 end end |
#intent ⇒ ::Google::Cloud::ConfigService::V1::Resource::Intent (readonly)
Returns Output only. Intent of the resource.
882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 882 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::ConfigService::V1::ResourceCAIInfo] class CaiAssetsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible intent of the resource. module Intent # The default value. This value is used if the intent is omitted. INTENT_UNSPECIFIED = 0 # Infra Manager will create this Resource. CREATE = 1 # Infra Manager will update this Resource. UPDATE = 2 # Infra Manager will delete this Resource. DELETE = 3 # Infra Manager will destroy and recreate this Resource. RECREATE = 4 # Infra Manager will leave this Resource untouched. UNCHANGED = 5 end # Possible states of a resource. module State # The default value. This value is used if the state is omitted. STATE_UNSPECIFIED = 0 # Resource has been planned for reconcile. PLANNED = 1 # Resource is actively reconciling into the intended state. IN_PROGRESS = 2 # Resource has reconciled to intended state. RECONCILED = 3 # Resource failed to reconcile. FAILED = 4 end end |
#name ⇒ ::String (readonly)
Returns Output only. Resource name.
Format:
projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}.
882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 882 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::ConfigService::V1::ResourceCAIInfo] class CaiAssetsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible intent of the resource. module Intent # The default value. This value is used if the intent is omitted. INTENT_UNSPECIFIED = 0 # Infra Manager will create this Resource. CREATE = 1 # Infra Manager will update this Resource. UPDATE = 2 # Infra Manager will delete this Resource. DELETE = 3 # Infra Manager will destroy and recreate this Resource. RECREATE = 4 # Infra Manager will leave this Resource untouched. UNCHANGED = 5 end # Possible states of a resource. module State # The default value. This value is used if the state is omitted. STATE_UNSPECIFIED = 0 # Resource has been planned for reconcile. PLANNED = 1 # Resource is actively reconciling into the intended state. IN_PROGRESS = 2 # Resource has reconciled to intended state. RECONCILED = 3 # Resource failed to reconcile. FAILED = 4 end end |
#state ⇒ ::Google::Cloud::ConfigService::V1::Resource::State (readonly)
Returns Output only. Current state of the resource.
882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 882 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::ConfigService::V1::ResourceCAIInfo] class CaiAssetsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible intent of the resource. module Intent # The default value. This value is used if the intent is omitted. INTENT_UNSPECIFIED = 0 # Infra Manager will create this Resource. CREATE = 1 # Infra Manager will update this Resource. UPDATE = 2 # Infra Manager will delete this Resource. DELETE = 3 # Infra Manager will destroy and recreate this Resource. RECREATE = 4 # Infra Manager will leave this Resource untouched. UNCHANGED = 5 end # Possible states of a resource. module State # The default value. This value is used if the state is omitted. STATE_UNSPECIFIED = 0 # Resource has been planned for reconcile. PLANNED = 1 # Resource is actively reconciling into the intended state. IN_PROGRESS = 2 # Resource has reconciled to intended state. RECONCILED = 3 # Resource failed to reconcile. FAILED = 4 end end |
#terraform_info ⇒ ::Google::Cloud::ConfigService::V1::ResourceTerraformInfo (readonly)
Returns Output only. Terraform-specific info if this resource was created using Terraform.
882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 |
# File 'proto_docs/google/cloud/config/v1/config.rb', line 882 class Resource include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::ConfigService::V1::ResourceCAIInfo] class CaiAssetsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Possible intent of the resource. module Intent # The default value. This value is used if the intent is omitted. INTENT_UNSPECIFIED = 0 # Infra Manager will create this Resource. CREATE = 1 # Infra Manager will update this Resource. UPDATE = 2 # Infra Manager will delete this Resource. DELETE = 3 # Infra Manager will destroy and recreate this Resource. RECREATE = 4 # Infra Manager will leave this Resource untouched. UNCHANGED = 5 end # Possible states of a resource. module State # The default value. This value is used if the state is omitted. STATE_UNSPECIFIED = 0 # Resource has been planned for reconcile. PLANNED = 1 # Resource is actively reconciling into the intended state. IN_PROGRESS = 2 # Resource has reconciled to intended state. RECONCILED = 3 # Resource failed to reconcile. FAILED = 4 end end |