Reference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::Job.
Describes a job
Inherits
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#error_code
def error_code() -> ::Integer Returns
- (::Integer) — Optional. If the job did not complete successfully, this field describes why.
#error_code=
def error_code=(value) -> ::Integer Parameter
- value (::Integer) — Optional. If the job did not complete successfully, this field describes why.
Returns
- (::Integer) — Optional. If the job did not complete successfully, this field describes why.
#location
def location() -> ::String Returns
- (::String) — Optional. Gives the location where the job ran, such as
USoreurope-west1
#location=
def location=(value) -> ::String Parameter
- value (::String) — Optional. Gives the location where the job ran, such as
USoreurope-west1
Returns
- (::String) — Optional. Gives the location where the job ran, such as
USoreurope-west1
#name
def name() -> ::String Returns
- (::String) — The fully-qualified name for a job. e.g.
projects/<project_id>/jobs/<job_id>
#name=
def name=(value) -> ::String Parameter
- value (::String) — The fully-qualified name for a job. e.g.
projects/<project_id>/jobs/<job_id>
Returns
- (::String) — The fully-qualified name for a job. e.g.
projects/<project_id>/jobs/<job_id>
#state
def state() -> ::Google::Cloud::SecurityCenter::V2::JobState Returns
- (::Google::Cloud::SecurityCenter::V2::JobState) — Output only. State of the job, such as
RUNNINGorPENDING.