Class: Google::Apis::ToolresultsV1::NonSdkApiUsageViolation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/toolresults_v1/classes.rb,
generated/google/apis/toolresults_v1/representations.rb,
generated/google/apis/toolresults_v1/representations.rb

Overview

Additional details for a non-sdk API usage violation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NonSdkApiUsageViolation

Returns a new instance of NonSdkApiUsageViolation.



370
371
372
# File 'generated/google/apis/toolresults_v1/classes.rb', line 370

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

Instance Attribute Details

#api_signaturesArray<String>

Signatures of a subset of those hidden API's. Corresponds to the JSON property apiSignatures

Returns:

  • (Array<String>)


363
364
365
# File 'generated/google/apis/toolresults_v1/classes.rb', line 363

def api_signatures
  @api_signatures
end

#unique_apisFixnum

Total number of unique hidden API's accessed. Corresponds to the JSON property uniqueApis

Returns:

  • (Fixnum)


368
369
370
# File 'generated/google/apis/toolresults_v1/classes.rb', line 368

def unique_apis
  @unique_apis
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



375
376
377
378
# File 'generated/google/apis/toolresults_v1/classes.rb', line 375

def update!(**args)
  @api_signatures = args[:api_signatures] if args.key?(:api_signatures)
  @unique_apis = args[:unique_apis] if args.key?(:unique_apis)
end