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.



1040
1041
1042
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1040

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

Instance Attribute Details

#html_content ⇒ String

HTML content. Corresponds to the JSON property htmlContent

Returns:

  • (String)


1033
1034
1035
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1033

def html_content
  @html_content
end

#source_uri ⇒ String

Policy URL. Corresponds to the JSON property sourceUri

Returns:

  • (String)


1038
1039
1040
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1038

def source_uri
  @source_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1045
1046
1047
1048
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1045

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