Class: Google::Apis::ChecksV1alpha::PrivacyPolicy

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

Privacy policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PrivacyPolicy

Returns a new instance of PrivacyPolicy.



467
468
469
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 467

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

Instance Attribute Details

#html_contentString

HTML content for the privacy policy page. Corresponds to the JSON property htmlContent

Returns:

  • (String)


444
445
446
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 444

def html_content
  @html_content
end

#nameString

Resource name. Example: projects/123/privacyPolicies/456 Corresponds to the JSON property name

Returns:

  • (String)


449
450
451
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 449

def name
  @name
end

#privacy_policy_uriString

URI of the privacy policy corresponding to this resource. Corresponds to the JSON property privacyPolicyUri

Returns:

  • (String)


454
455
456
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 454

def privacy_policy_uri
  @privacy_policy_uri
end

#scoreFloat

Confidence that the privacy policy URI is indeed from a privacy policy. Corresponds to the JSON property score

Returns:

  • (Float)


459
460
461
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 459

def score
  @score
end

#website_uriString

URI of the original website used to find this privacy policy. Only populated for resources created by the FindPrivacyPolicy API. Corresponds to the JSON property websiteUri

Returns:

  • (String)


465
466
467
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 465

def website_uri
  @website_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



472
473
474
475
476
477
478
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 472

def update!(**args)
  @html_content = args[:html_content] if args.key?(:html_content)
  @name = args[:name] if args.key?(:name)
  @privacy_policy_uri = args[:privacy_policy_uri] if args.key?(:privacy_policy_uri)
  @score = args[:score] if args.key?(:score)
  @website_uri = args[:website_uri] if args.key?(:website_uri)
end