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.
1610 1611 1612 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1610 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_id ⇒ String
Optional. The ID of a Web App
associated with the Hosting site.
Corresponds to the JSON property appId
1579 1580 1581 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1579 def app_id @app_id end |
#default_url ⇒ String
Output only. The default URL for the Hosting site.
Corresponds to the JSON property defaultUrl
1584 1585 1586 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1584 def default_url @default_url end |
#labels ⇒ Hash<String,String>
Optional. User-specified labels for the Hosting site.
Corresponds to the JSON property labels
1589 1590 1591 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1589 def labels @labels end |
#name ⇒ String
Output only. The fully-qualified resource name of the Hosting site, in the
format: projects/PROJECT_IDENTIFIER/sites/SITE_ID PROJECT_IDENTIFIER: the
Firebase project's ProjectNumber
(recommended) or its ProjectId
. Learn more about using project identifiers
in Google's AIP 2510 standard.
Corresponds to the JSON property name
1601 1602 1603 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1601 def name @name end |
#type ⇒ String
Output only. The type of Hosting site. Every Firebase project has a
DEFAULT_SITE
, which is created when Hosting is provisioned for the project.
All additional sites are USER_SITE
.
Corresponds to the JSON property type
1608 1609 1610 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1608 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1615 1616 1617 1618 1619 1620 1621 |
# File 'lib/google/apis/firebasehosting_v1beta1/classes.rb', line 1615 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 |