Skip to content

Commit

Permalink
feat: Automated regeneration of firestore v1 client (#19196)
Browse files Browse the repository at this point in the history
Auto-created at 2024-05-19 10:35:04 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot committed May 21, 2024
1 parent ae36302 commit 9c0e55b
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 5 deletions.
10 changes: 10 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206458,18 +206458,21 @@
"/firestore:v1/GoogleFirestoreAdminV1CmekConfig/kmsKeyName": kms_key_name
"/firestore:v1/GoogleFirestoreAdminV1CreateDatabaseMetadata": google_firestore_admin_v1_create_database_metadata
"/firestore:v1/GoogleFirestoreAdminV1DailyRecurrence": google_firestore_admin_v1_daily_recurrence
"/firestore:v1/GoogleFirestoreAdminV1DailyRecurrence/time": time
"/firestore:v1/GoogleFirestoreAdminV1Database": google_firestore_admin_v1_database
"/firestore:v1/GoogleFirestoreAdminV1Database/appEngineIntegrationMode": app_engine_integration_mode
"/firestore:v1/GoogleFirestoreAdminV1Database/cmekConfig": cmek_config
"/firestore:v1/GoogleFirestoreAdminV1Database/concurrencyMode": concurrency_mode
"/firestore:v1/GoogleFirestoreAdminV1Database/createTime": create_time
"/firestore:v1/GoogleFirestoreAdminV1Database/deleteProtectionState": delete_protection_state
"/firestore:v1/GoogleFirestoreAdminV1Database/deleteTime": delete_time
"/firestore:v1/GoogleFirestoreAdminV1Database/earliestVersionTime": earliest_version_time
"/firestore:v1/GoogleFirestoreAdminV1Database/etag": etag
"/firestore:v1/GoogleFirestoreAdminV1Database/keyPrefix": key_prefix
"/firestore:v1/GoogleFirestoreAdminV1Database/locationId": location_id
"/firestore:v1/GoogleFirestoreAdminV1Database/name": name
"/firestore:v1/GoogleFirestoreAdminV1Database/pointInTimeRecoveryEnablement": point_in_time_recovery_enablement
"/firestore:v1/GoogleFirestoreAdminV1Database/previousId": previous_id
"/firestore:v1/GoogleFirestoreAdminV1Database/type": type
"/firestore:v1/GoogleFirestoreAdminV1Database/uid": uid
"/firestore:v1/GoogleFirestoreAdminV1Database/updateTime": update_time
Expand Down Expand Up @@ -206609,6 +206612,7 @@
"/firestore:v1/GoogleFirestoreAdminV1VectorConfig/flat": flat
"/firestore:v1/GoogleFirestoreAdminV1WeeklyRecurrence": google_firestore_admin_v1_weekly_recurrence
"/firestore:v1/GoogleFirestoreAdminV1WeeklyRecurrence/day": day
"/firestore:v1/GoogleFirestoreAdminV1WeeklyRecurrence/time": time
"/firestore:v1/GoogleLongrunningCancelOperationRequest": google_longrunning_cancel_operation_request
"/firestore:v1/GoogleLongrunningListOperationsResponse": google_longrunning_list_operations_response
"/firestore:v1/GoogleLongrunningListOperationsResponse/nextPageToken": next_page_token
Expand Down Expand Up @@ -206769,6 +206773,11 @@
"/firestore:v1/TargetChange/targetChangeType": target_change_type
"/firestore:v1/TargetChange/targetIds": target_ids
"/firestore:v1/TargetChange/targetIds/target_id": target_id
"/firestore:v1/TimeOfDay": time_of_day
"/firestore:v1/TimeOfDay/hours": hours
"/firestore:v1/TimeOfDay/minutes": minutes
"/firestore:v1/TimeOfDay/nanos": nanos
"/firestore:v1/TimeOfDay/seconds": seconds
"/firestore:v1/TransactionOptions": transaction_options
"/firestore:v1/TransactionOptions/readOnly": read_only
"/firestore:v1/TransactionOptions/readWrite": read_write
Expand Down Expand Up @@ -206925,6 +206934,7 @@
"/firestore:v1/firestore.projects.databases.importDocuments/name": name
"/firestore:v1/firestore.projects.databases.list": list_project_databases
"/firestore:v1/firestore.projects.databases.list/parent": parent
"/firestore:v1/firestore.projects.databases.list/showDeleted": show_deleted
"/firestore:v1/firestore.projects.databases.operations.cancel": cancel_project_database_operation
"/firestore:v1/firestore.projects.databases.operations.cancel/name": name
"/firestore:v1/firestore.projects.databases.operations.delete": delete_project_database_operation
Expand Down
5 changes: 5 additions & 0 deletions generated/google-apis-firestore_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release history for google-apis-firestore_v1

### v0.66.0 (2024-05-19)

* Regenerated from discovery document revision 20240512
* Regenerated using generator version 0.15.0

### v0.65.0 (2024-04-28)

* Regenerated from discovery document revision 20240420
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ Gem::Specification.new do |gem|
gem.require_paths = ["lib"]

gem.required_ruby_version = '>= 2.7'
gem.add_runtime_dependency "google-apis-core", ">= 0.14.0", "< 2.a"
gem.add_runtime_dependency "google-apis-core", ">= 0.15.0", "< 2.a"
end
Original file line number Diff line number Diff line change
Expand Up @@ -1309,12 +1309,20 @@ def update!(**args)
class GoogleFirestoreAdminV1DailyRecurrence
include Google::Apis::Core::Hashable

# Represents a time of day. The date and time zone are either not significant or
# are specified elsewhere. An API may choose to allow leap seconds. Related
# types are google.type.Date and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `time`
# @return [Google::Apis::FirestoreV1::TimeOfDay]
attr_accessor :time

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

# Update properties of this object
def update!(**args)
@time = args[:time] if args.key?(:time)
end
end

Expand Down Expand Up @@ -1350,6 +1358,12 @@ class GoogleFirestoreAdminV1Database
# @return [String]
attr_accessor :delete_protection_state

# Output only. The timestamp at which this database was soft deleted. Only set
# if the database has been soft deleted.
# Corresponds to the JSON property `deleteTime`
# @return [String]
attr_accessor :delete_time

# Output only. The earliest timestamp at which older versions of the data can be
# read from the database. See [version_retention_period] above; this field is
# populated with `now - version_retention_period`. This value is continuously
Expand Down Expand Up @@ -1393,6 +1407,12 @@ class GoogleFirestoreAdminV1Database
# @return [String]
attr_accessor :point_in_time_recovery_enablement

# Output only. The database resource's prior database ID. This field is only
# populated for deleted databases.
# Corresponds to the JSON property `previousId`
# @return [String]
attr_accessor :previous_id

# The type of the database. See https://cloud.google.com/datastore/docs/
# firestore-or-datastore for information about how to choose.
# Corresponds to the JSON property `type`
Expand Down Expand Up @@ -1431,12 +1451,14 @@ def update!(**args)
@concurrency_mode = args[:concurrency_mode] if args.key?(:concurrency_mode)
@create_time = args[:create_time] if args.key?(:create_time)
@delete_protection_state = args[:delete_protection_state] if args.key?(:delete_protection_state)
@delete_time = args[:delete_time] if args.key?(:delete_time)
@earliest_version_time = args[:earliest_version_time] if args.key?(:earliest_version_time)
@etag = args[:etag] if args.key?(:etag)
@key_prefix = args[:key_prefix] if args.key?(:key_prefix)
@location_id = args[:location_id] if args.key?(:location_id)
@name = args[:name] if args.key?(:name)
@point_in_time_recovery_enablement = args[:point_in_time_recovery_enablement] if args.key?(:point_in_time_recovery_enablement)
@previous_id = args[:previous_id] if args.key?(:previous_id)
@type = args[:type] if args.key?(:type)
@uid = args[:uid] if args.key?(:uid)
@update_time = args[:update_time] if args.key?(:update_time)
Expand Down Expand Up @@ -2476,13 +2498,21 @@ class GoogleFirestoreAdminV1WeeklyRecurrence
# @return [String]
attr_accessor :day

# Represents a time of day. The date and time zone are either not significant or
# are specified elsewhere. An API may choose to allow leap seconds. Related
# types are google.type.Date and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `time`
# @return [Google::Apis::FirestoreV1::TimeOfDay]
attr_accessor :time

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

# Update properties of this object
def update!(**args)
@day = args[:day] if args.key?(:day)
@time = args[:time] if args.key?(:time)
end
end

Expand Down Expand Up @@ -3676,6 +3706,47 @@ def update!(**args)
end
end

# Represents a time of day. The date and time zone are either not significant or
# are specified elsewhere. An API may choose to allow leap seconds. Related
# types are google.type.Date and `google.protobuf.Timestamp`.
class TimeOfDay
include Google::Apis::Core::Hashable

# Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to
# allow the value "24:00:00" for scenarios like business closing time.
# Corresponds to the JSON property `hours`
# @return [Fixnum]
attr_accessor :hours

# Minutes of hour of day. Must be from 0 to 59.
# Corresponds to the JSON property `minutes`
# @return [Fixnum]
attr_accessor :minutes

# Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
# Corresponds to the JSON property `nanos`
# @return [Fixnum]
attr_accessor :nanos

# Seconds of minutes of the time. Must normally be from 0 to 59. An API may
# allow the value 60 if it allows leap-seconds.
# Corresponds to the JSON property `seconds`
# @return [Fixnum]
attr_accessor :seconds

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

# Update properties of this object
def update!(**args)
@hours = args[:hours] if args.key?(:hours)
@minutes = args[:minutes] if args.key?(:minutes)
@nanos = args[:nanos] if args.key?(:nanos)
@seconds = args[:seconds] if args.key?(:seconds)
end
end

# Options for creating a new transaction.
class TransactionOptions
include Google::Apis::Core::Hashable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module FirestoreV1
# Version of the google-apis-firestore_v1 gem
GEM_VERSION = "0.65.0"
GEM_VERSION = "0.66.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.14.0"
GENERATOR_VERSION = "0.15.0"

# Revision of the discovery document this client was generated from
REVISION = "20240420"
REVISION = "20240512"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class TimeOfDay
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class TransactionOptions
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -1055,6 +1061,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
class GoogleFirestoreAdminV1DailyRecurrence
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :time, as: 'time', class: Google::Apis::FirestoreV1::TimeOfDay, decorator: Google::Apis::FirestoreV1::TimeOfDay::Representation

end
end

Expand All @@ -1067,12 +1075,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :concurrency_mode, as: 'concurrencyMode'
property :create_time, as: 'createTime'
property :delete_protection_state, as: 'deleteProtectionState'
property :delete_time, as: 'deleteTime'
property :earliest_version_time, as: 'earliestVersionTime'
property :etag, as: 'etag'
property :key_prefix, as: 'keyPrefix'
property :location_id, as: 'locationId'
property :name, as: 'name'
property :point_in_time_recovery_enablement, as: 'pointInTimeRecoveryEnablement'
property :previous_id, as: 'previousId'
property :type, as: 'type'
property :uid, as: 'uid'
property :update_time, as: 'updateTime'
Expand Down Expand Up @@ -1368,6 +1378,8 @@ class GoogleFirestoreAdminV1WeeklyRecurrence
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :day, as: 'day'
property :time, as: 'time', class: Google::Apis::FirestoreV1::TimeOfDay, decorator: Google::Apis::FirestoreV1::TimeOfDay::Representation

end
end

Expand Down Expand Up @@ -1699,6 +1711,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class TimeOfDay
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :hours, as: 'hours'
property :minutes, as: 'minutes'
property :nanos, as: 'nanos'
property :seconds, as: 'seconds'
end
end

class TransactionOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ def import_project_database_documents(name, google_firestore_admin_v1_import_doc
# List all the databases in the project.
# @param [String] parent
# Required. A parent name of the form `projects/`project_id``
# @param [Boolean] show_deleted
# If true, also returns deleted resources.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
Expand All @@ -257,11 +259,12 @@ def import_project_database_documents(name, google_firestore_admin_v1_import_doc
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_databases(parent, fields: nil, quota_user: nil, options: nil, &block)
def list_project_databases(parent, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/databases', options)
command.response_representation = Google::Apis::FirestoreV1::GoogleFirestoreAdminV1ListDatabasesResponse::Representation
command.response_class = Google::Apis::FirestoreV1::GoogleFirestoreAdminV1ListDatabasesResponse
command.params['parent'] = parent unless parent.nil?
command.query['showDeleted'] = show_deleted unless show_deleted.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
Expand Down

0 comments on commit 9c0e55b

Please sign in to comment.