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.



1165
1166
1167
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1165

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

Instance Attribute Details

#html_contentString

HTML content. Corresponds to the JSON property htmlContent

Returns:

  • (String)


1158
1159
1160
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1158

def html_content
  @html_content
end

#source_uriString

Policy URL. Corresponds to the JSON property sourceUri

Returns:

  • (String)


1163
1164
1165
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1163

def source_uri
  @source_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1170
1171
1172
1173
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1170

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