Class: Google::Cloud::Config::V1::Resource

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#cai_assets::Google::Protobuf::Map{::String => ::Google::Cloud::Config::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.

Returns:



808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
# File 'proto_docs/google/cloud/config/v1/config.rb', line 808

class Resource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::Config::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::Config::V1::Resource::Intent (readonly)

Returns Output only. Intent of the resource.

Returns:



808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
# File 'proto_docs/google/cloud/config/v1/config.rb', line 808

class Resource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::Config::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}.

Returns:

  • (::String)

    Output only. Resource name. Format: projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}



808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
# File 'proto_docs/google/cloud/config/v1/config.rb', line 808

class Resource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::Config::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::Config::V1::Resource::State (readonly)

Returns Output only. Current state of the resource.

Returns:



808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
# File 'proto_docs/google/cloud/config/v1/config.rb', line 808

class Resource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::Config::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::Config::V1::ResourceTerraformInfo (readonly)

Returns Output only. Terraform-specific info if this resource was created using Terraform.

Returns:



808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
# File 'proto_docs/google/cloud/config/v1/config.rb', line 808

class Resource
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::Google::Cloud::Config::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