Class: Google::Apis::HealthcareV1beta1::ConsentStore
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::ConsentStore
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/healthcare_v1beta1/classes.rb,
generated/google/apis/healthcare_v1beta1/representations.rb,
generated/google/apis/healthcare_v1beta1/representations.rb
Overview
Represents a Consent store.
Instance Attribute Summary collapse
-
#default_consent_ttl ⇒ String
Default time to live for consents in this store.
-
#enable_consent_create_on_update ⇒ Boolean
(also: #enable_consent_create_on_update?)
If true, UpdateConsent creates the consent if it does not already exist.
-
#labels ⇒ Hash<String,String>
User-supplied key-value pairs used to organize Consent stores.
-
#name ⇒ String
Resource name of the Consent store, of the form
projects/
project_id/ locations/
location_id/datasets/
dataset_id/consentStores/
consent_store_id`` .
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConsentStore
constructor
A new instance of ConsentStore.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConsentStore
Returns a new instance of ConsentStore.
877 878 879 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 877 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_consent_ttl ⇒ String
Default time to live for consents in this store. Must be at least 24 hours.
Updating this field will not affect the expiration time of existing consents.
Corresponds to the JSON property defaultConsentTtl
851 852 853 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 851 def @default_consent_ttl end |
#enable_consent_create_on_update ⇒ Boolean Also known as: enable_consent_create_on_update?
If true, UpdateConsent creates the consent if it does not already exist.
Corresponds to the JSON property enableConsentCreateOnUpdate
856 857 858 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 856 def @enable_consent_create_on_update end |
#labels ⇒ Hash<String,String>
User-supplied key-value pairs used to organize Consent stores. Label keys must
be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128
bytes, and must conform to the following PCRE regular expression: \pLl
\pLo
0,62
Label values must be between 1 and 63 characters long, have a UTF-8
encoding of maximum 128 bytes, and must conform to the following PCRE regular
expression: [\pLl
\pLo
\pN
_-]0,63
No more than 64 labels can be
associated with a given store.
Corresponds to the JSON property labels
868 869 870 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 868 def labels @labels end |
#name ⇒ String
Resource name of the Consent store, of the form projects/
project_id/
locations/
location_id/datasets/
dataset_id/consentStores/
consent_store_id`
.
Corresponds to the JSON property
name`
875 876 877 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 875 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
882 883 884 885 886 887 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 882 def update!(**args) @default_consent_ttl = args[:default_consent_ttl] if args.key?(:default_consent_ttl) @enable_consent_create_on_update = args[:enable_consent_create_on_update] if args.key?(:enable_consent_create_on_update) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) end |