Class: Google::Apis::ChecksV1alpha::GoogleChecksReportV1alphaPolicyFragment

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/checks_v1alpha/classes.rb,
lib/google/apis/checks_v1alpha/representations.rb,
lib/google/apis/checks_v1alpha/representations.rb

Overview

Information about a policy fragment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChecksReportV1alphaPolicyFragment

Returns a new instance of GoogleChecksReportV1alphaPolicyFragment.



1578
1579
1580
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1578

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

Instance Attribute Details

#html_contentString

HTML content. Corresponds to the JSON property htmlContent

Returns:

  • (String)


1571
1572
1573
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1571

def html_content
  @html_content
end

#source_uriString

Policy URL. Corresponds to the JSON property sourceUri

Returns:

  • (String)


1576
1577
1578
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1576

def source_uri
  @source_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1583
1584
1585
1586
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1583

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