Class: Google::Apis::FirebasehostingV1beta1::Site
- Inherits:
-
Object
- Object
- Google::Apis::FirebasehostingV1beta1::Site
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebasehosting_v1beta1/classes.rb,
lib/google/apis/firebasehosting_v1beta1/representations.rb,
lib/google/apis/firebasehosting_v1beta1/representations.rb
Overview
A Site represents a Firebase Hosting Site.
Instance Attribute Summary collapse
-
#app_id ⇒ String
Optional.
-
#default_url ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Output only.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Site
constructor
A new instance of Site.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Site
Returns a new instance of Site.
1048 1049 1050 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1048 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_id ⇒ String
Optional. The ID of a Web App associated with the Site.
Corresponds to the JSON property appId
1023 1024 1025 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1023 def app_id @app_id end |
#default_url ⇒ String
Output only. The default URL for this Hosting Site.
Corresponds to the JSON property defaultUrl
1028 1029 1030 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1028 def default_url @default_url end |
#labels ⇒ Hash<String,String>
Optional. User-specified labels for the Hosting Site.
Corresponds to the JSON property labels
1033 1034 1035 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1033 def labels @labels end |
#name ⇒ String
Output only. The fully qualified resource name of the Hosting Site, e.g.:
projects/project-number/sites/site-id`.
Corresponds to the JSON propertyname`
1039 1040 1041 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1039 def name @name end |
#type ⇒ String
Output only. The Hosting site type. There will always be a single DEFAULT_SITE,
which is created when Hosting is provisioned. All additional sites are
USER_SITE.
Corresponds to the JSON property type
1046 1047 1048 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1046 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1053 1054 1055 1056 1057 1058 1059 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1053 def update!(**args) @app_id = args[:app_id] if args.key?(:app_id) @default_url = args[:default_url] if args.key?(:default_url) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end |