Class: Google::Cloud::Compute::V1::ResourcePolicy

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/compute/v1/compute.rb

Overview

Represents a Resource Policy resource. You can use resource policies to schedule actions for some Compute Engine resources. For example, you can use them to schedule persistent disk snapshots.

Defined Under Namespace

Modules: Status

Instance Attribute Summary collapse

Instance Attribute Details

#creation_timestamp::String

Returns [Output Only] Creation timestamp in RFC3339 text format.

Returns:

  • (::String)

    [Output Only] Creation timestamp in RFC3339 text format.



30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30407

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

  # [Output Only] The status of resource policy creation.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    # Resource policy is being created.
    CREATING = 455_564_985

    # Resource policy is being deleted.
    DELETING = 528_602_024

    # Resource policy is expired and will not run again.
    EXPIRED = 482_489_093

    INVALID = 530_283_991

    # Resource policy is ready to be used.
    READY = 77_848_963
  end
end

#description::String

Returns:

  • (::String)


30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30407

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

  # [Output Only] The status of resource policy creation.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    # Resource policy is being created.
    CREATING = 455_564_985

    # Resource policy is being deleted.
    DELETING = 528_602_024

    # Resource policy is expired and will not run again.
    EXPIRED = 482_489_093

    INVALID = 530_283_991

    # Resource policy is ready to be used.
    READY = 77_848_963
  end
end

#disk_consistency_group_policy::Google::Cloud::Compute::V1::ResourcePolicyDiskConsistencyGroupPolicy

Returns Resource policy for disk consistency groups.

Returns:



30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30407

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

  # [Output Only] The status of resource policy creation.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    # Resource policy is being created.
    CREATING = 455_564_985

    # Resource policy is being deleted.
    DELETING = 528_602_024

    # Resource policy is expired and will not run again.
    EXPIRED = 482_489_093

    INVALID = 530_283_991

    # Resource policy is ready to be used.
    READY = 77_848_963
  end
end

#group_placement_policy::Google::Cloud::Compute::V1::ResourcePolicyGroupPlacementPolicy

Returns Resource policy for instances for placement configuration.

Returns:



30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30407

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

  # [Output Only] The status of resource policy creation.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    # Resource policy is being created.
    CREATING = 455_564_985

    # Resource policy is being deleted.
    DELETING = 528_602_024

    # Resource policy is expired and will not run again.
    EXPIRED = 482_489_093

    INVALID = 530_283_991

    # Resource policy is ready to be used.
    READY = 77_848_963
  end
end

#id::Integer

Returns [Output Only] The unique identifier for the resource. This identifier is defined by the server.

Returns:

  • (::Integer)

    [Output Only] The unique identifier for the resource. This identifier is defined by the server.



30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30407

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

  # [Output Only] The status of resource policy creation.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    # Resource policy is being created.
    CREATING = 455_564_985

    # Resource policy is being deleted.
    DELETING = 528_602_024

    # Resource policy is expired and will not run again.
    EXPIRED = 482_489_093

    INVALID = 530_283_991

    # Resource policy is ready to be used.
    READY = 77_848_963
  end
end

#instance_schedule_policy::Google::Cloud::Compute::V1::ResourcePolicyInstanceSchedulePolicy

Returns Resource policy for scheduling instance operations.

Returns:



30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30407

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

  # [Output Only] The status of resource policy creation.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    # Resource policy is being created.
    CREATING = 455_564_985

    # Resource policy is being deleted.
    DELETING = 528_602_024

    # Resource policy is expired and will not run again.
    EXPIRED = 482_489_093

    INVALID = 530_283_991

    # Resource policy is ready to be used.
    READY = 77_848_963
  end
end

#kind::String

Returns [Output Only] Type of the resource. Always compute#resource_policies for resource policies.

Returns:

  • (::String)

    [Output Only] Type of the resource. Always compute#resource_policies for resource policies.



30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30407

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

  # [Output Only] The status of resource policy creation.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    # Resource policy is being created.
    CREATING = 455_564_985

    # Resource policy is being deleted.
    DELETING = 528_602_024

    # Resource policy is expired and will not run again.
    EXPIRED = 482_489_093

    INVALID = 530_283_991

    # Resource policy is ready to be used.
    READY = 77_848_963
  end
end

#name::String

Returns The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Returns:

  • (::String)

    The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.



30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30407

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

  # [Output Only] The status of resource policy creation.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    # Resource policy is being created.
    CREATING = 455_564_985

    # Resource policy is being deleted.
    DELETING = 528_602_024

    # Resource policy is expired and will not run again.
    EXPIRED = 482_489_093

    INVALID = 530_283_991

    # Resource policy is ready to be used.
    READY = 77_848_963
  end
end

#region::String

Returns:

  • (::String)


30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30407

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

  # [Output Only] The status of resource policy creation.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    # Resource policy is being created.
    CREATING = 455_564_985

    # Resource policy is being deleted.
    DELETING = 528_602_024

    # Resource policy is expired and will not run again.
    EXPIRED = 482_489_093

    INVALID = 530_283_991

    # Resource policy is ready to be used.
    READY = 77_848_963
  end
end

#resource_status::Google::Cloud::Compute::V1::ResourcePolicyResourceStatus

Returns [Output Only] The system status of the resource policy.

Returns:



30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30407

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

  # [Output Only] The status of resource policy creation.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    # Resource policy is being created.
    CREATING = 455_564_985

    # Resource policy is being deleted.
    DELETING = 528_602_024

    # Resource policy is expired and will not run again.
    EXPIRED = 482_489_093

    INVALID = 530_283_991

    # Resource policy is ready to be used.
    READY = 77_848_963
  end
end

Returns [Output Only] Server-defined fully-qualified URL for this resource.

Returns:

  • (::String)

    [Output Only] Server-defined fully-qualified URL for this resource.



30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30407

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

  # [Output Only] The status of resource policy creation.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    # Resource policy is being created.
    CREATING = 455_564_985

    # Resource policy is being deleted.
    DELETING = 528_602_024

    # Resource policy is expired and will not run again.
    EXPIRED = 482_489_093

    INVALID = 530_283_991

    # Resource policy is ready to be used.
    READY = 77_848_963
  end
end

#snapshot_schedule_policy::Google::Cloud::Compute::V1::ResourcePolicySnapshotSchedulePolicy

Returns Resource policy for persistent disks for creating snapshots.

Returns:



30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30407

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

  # [Output Only] The status of resource policy creation.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    # Resource policy is being created.
    CREATING = 455_564_985

    # Resource policy is being deleted.
    DELETING = 528_602_024

    # Resource policy is expired and will not run again.
    EXPIRED = 482_489_093

    INVALID = 530_283_991

    # Resource policy is ready to be used.
    READY = 77_848_963
  end
end

#status::String

Returns [Output Only] The status of resource policy creation. Check the Status enum for the list of possible values.

Returns:

  • (::String)

    [Output Only] The status of resource policy creation. Check the Status enum for the list of possible values.



30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30407

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

  # [Output Only] The status of resource policy creation.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    # Resource policy is being created.
    CREATING = 455_564_985

    # Resource policy is being deleted.
    DELETING = 528_602_024

    # Resource policy is expired and will not run again.
    EXPIRED = 482_489_093

    INVALID = 530_283_991

    # Resource policy is ready to be used.
    READY = 77_848_963
  end
end

#workload_policy::Google::Cloud::Compute::V1::ResourcePolicyWorkloadPolicy

Returns Resource policy for defining instance placement for MIGs.

Returns:



30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 30407

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

  # [Output Only] The status of resource policy creation.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    # Resource policy is being created.
    CREATING = 455_564_985

    # Resource policy is being deleted.
    DELETING = 528_602_024

    # Resource policy is expired and will not run again.
    EXPIRED = 482_489_093

    INVALID = 530_283_991

    # Resource policy is ready to be used.
    READY = 77_848_963
  end
end