class Google::Apis::FirebasehostingV1beta1::Site

A `Site` represents a Firebase Hosting site.

Attributes

app_id[RW]

Optional. The [ID of a Web App](firebase.google.com/docs/projects/api/ reference/rest/v1beta1/projects.webApps#WebApp.FIELDS.app_id) associated with the Hosting site. Corresponds to the JSON property `appId` @return [String]

default_url[RW]

Output only. The default URL for the Hosting site. Corresponds to the JSON property `defaultUrl` @return [String]

labels[RW]

Optional. User-specified labels for the Hosting site. Corresponds to the JSON property `labels` @return [Hash<String,String>]

name[RW]

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`](firebase.google.com/docs/projects/ api/reference/rest/v1beta1/projects#FirebaseProject.FIELDS.project_number) ***( recommended)*** or its [`ProjectId`](firebase.google.com/docs/projects/ api/reference/rest/v1beta1/projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https:// google.aip.dev/cloud/2510). Corresponds to the JSON property `name` @return [String]

type[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/firebasehosting_v1beta1/classes.rb, line 1028
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/firebasehosting_v1beta1/classes.rb, line 1033
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