source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/list_snapshots.rb
Ruby
mit
99
master
603
module Fog module Google class Compute class Mock def list_snapshots # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def list_snapshots(project = @project, filter: nil, max_results: nil, ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/insert_firewall.rb
Ruby
mit
99
master
2,062
module Fog module Google class Compute class Mock def insert_firewall(_firewall_name, _options = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real INSERTABLE_FIREWALL_FIELDS = %i{ allowed de...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/set_target_https_proxy_url_map.rb
Ruby
mit
99
master
608
module Fog module Google class Compute class Mock def set_target_https_proxy_url_map(_proxy_name, _url_map) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def set_target_https_proxy_url_map(proxy_name, url_map) ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/get_region.rb
Ruby
mit
99
master
362
module Fog module Google class Compute class Mock def get_region(_identity) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def get_region(identity) @compute.get_region(@project, identity.split("/")[-1]...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/delete_image.rb
Ruby
mit
99
master
399
module Fog module Google class Compute class Mock def delete_image(_image_name, _project = @project) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def delete_image(image_name, project = @project) @com...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/set_server_metadata.rb
Ruby
mit
99
master
1,391
module Fog module Google class Compute class Mock def set_server_metadata(_instance, _zone, _fingerprint, _metadata_items = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real # Set an instance metadata #...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/list_regions.rb
Ruby
mit
99
master
554
module Fog module Google class Compute class Mock def list_regions # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def list_regions(filter: nil, max_results: nil, order_by: nil, page_toke...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/remove_target_pool_health_checks.rb
Ruby
mit
99
master
833
module Fog module Google class Compute class Mock def remove_target_pool_health_checks(_target_pool, _region, _health_checks) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def remove_target_pool_health_checks(t...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/abandon_instances.rb
Ruby
mit
99
master
990
module Fog module Google class Compute class Mock def abandon_instances(_instance_group_manager, _instances) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def abandon_instances(instance_group_manager, instances...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/delete_target_http_proxy.rb
Ruby
mit
99
master
395
module Fog module Google class Compute class Mock def delete_target_http_proxy(_proxy_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def delete_target_http_proxy(proxy_name) @compute.delete_targe...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/list_target_instances.rb
Ruby
mit
99
master
710
module Fog module Google class Compute class Mock def list_target_instances(_zone, _opts: {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def list_target_instances(zone, filter: nil, max_results: nil, ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/insert_forwarding_rule.rb
Ruby
mit
99
master
788
module Fog module Google class Compute class Mock def insert_forwarding_rule(_rule_name, _region, _opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real ## # Create a forwarding rule. # ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/add_instance_group_instances.rb
Ruby
mit
99
master
1,082
module Fog module Google class Compute class Mock def add_instance_group_instances(_group_name, _zone, _instances) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def add_instance_group_instances(group_name, zone...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/set_server_scheduling.rb
Ruby
mit
99
master
894
module Fog module Google class Compute class Mock def set_server_scheduling(_identity, _zone, _on_host_maintenance, _automatic_restart, _preemptible) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def set_server...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/delete_forwarding_rule.rb
Ruby
mit
99
master
466
module Fog module Google class Compute class Mock def delete_forwarding_rule(_rule, _region) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def delete_forwarding_rule(rule, region) region = region.spli...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/delete_target_https_proxy.rb
Ruby
mit
99
master
398
module Fog module Google class Compute class Mock def delete_target_https_proxy(_proxy_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def delete_target_https_proxy(proxy_name) @compute.delete_tar...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/list_aggregated_target_pools.rb
Ruby
mit
99
master
644
module Fog module Google class Compute class Mock def list_aggregated_target_pools(_opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def list_aggregated_target_pools(filter: nil, max_results: nil, ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/insert_subnetwork.rb
Ruby
mit
99
master
2,509
module Fog module Google class Compute class Mock def insert_subnetwork(_subnetwork_name, _region_name, _network, _ip_range, _options = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real ## # Create a su...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/list_ssl_certificates.rb
Ruby
mit
99
master
616
module Fog module Google class Compute class Mock def list_ssl_certificates # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def list_ssl_certificates(filter: nil, max_results: nil, ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/list_instance_group_managers.rb
Ruby
mit
99
master
632
module Fog module Google class Compute class Mock def list_instance_group_managers(_zone, _opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def list_instance_group_managers(zone, filter: nil, max_result...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/delete_http_health_check.rb
Ruby
mit
99
master
395
module Fog module Google class Compute class Mock def delete_http_health_check(_check_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def delete_http_health_check(check_name) @compute.delete_http_...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/list_aggregated_instance_groups.rb
Ruby
mit
99
master
419
module Fog module Google class Compute class Mock def list_aggregated_instance_groups(_options = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def list_aggregated_instance_groups(options = {}) @co...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/patch_firewall.rb
Ruby
mit
99
master
738
module Fog module Google class Compute class Mock def patch_firewall(_firewall_name, _firewall_opts = {}) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real ## # Patch a Firewall resource. Supports PATCH sem...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/compute/requests/delete_snapshot.rb
Ruby
mit
99
master
377
module Fog module Google class Compute class Mock def delete_snapshot(_snapshot_name) # :no-coverage: Fog::Mock.not_implemented # :no-coverage: end end class Real def delete_snapshot(snapshot_name) @compute.delete_snapshot(@project...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/pubsub/real.rb
Ruby
mit
99
master
584
module Fog module Google class Pubsub class Real include Fog::Google::Shared attr_accessor :client attr_reader :pubsub def initialize(options) shared_initialize(options[:google_project], GOOGLE_PUBSUB_API_VERSION, GOOGLE_PUBSUB_BASE_URL) options[:google_...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/pubsub/mock.rb
Ruby
mit
99
master
673
module Fog module Google class Pubsub class Mock include Fog::Google::Shared def initialize(options) shared_initialize(options[:google_project], GOOGLE_PUBSUB_API_VERSION, GOOGLE_PUBSUB_BASE_URL) end def self.data @data ||= Hash.new do |hash, key| ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/monitoring/real.rb
Ruby
mit
99
master
580
module Fog module Google class Monitoring class Real include Fog::Google::Shared attr_reader :monitoring def initialize(options) shared_initialize(options[:google_project], GOOGLE_MONITORING_API_VERSION, GOOGLE_MONITORING_BASE_URL) options[:google_api_scope_url]...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/monitoring/mock.rb
Ruby
mit
99
master
746
module Fog module Google class Monitoring class Mock include Fog::Google::Shared def initialize(options) shared_initialize(options[:google_project], GOOGLE_MONITORING_API_VERSION, GOOGLE_MONITORING_BASE_URL) end def self.data @data ||= Hash.new do |hash,...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/pubsub/delete_subscription.rb
Ruby
mit
99
master
583
module Fog module Google class Pubsub class Real # Delete a subscription on the remote service. # # @param subscription_name [#to_s] name of subscription to delete # @see https://cloud.google.com/pubsub/reference/rest/v1/projects.subscriptions/delete def delete_subscr...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/pubsub/acknowledge_subscription.rb
Ruby
mit
99
master
900
module Fog module Google class Pubsub class Real # Acknowledges a message received from a subscription. # # @see https://cloud.google.com/pubsub/reference/rest/v1/projects.subscriptions/acknowledge def acknowledge_subscription(subscription, ack_ids) # Previous behav...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/pubsub/list_subscriptions.rb
Ruby
mit
99
master
841
module Fog module Google class Pubsub class Real # Gets a list of all subscriptions for a given project. # # @param_name project [#to_s] Project path to list subscriptions under; # must be a project url prefix (e.g. 'projects/my-project'). If nil, # the project co...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/pubsub/get_topic.rb
Ruby
mit
99
master
506
module Fog module Google class Pubsub class Real # Retrieves a resource describing a topic. # # @param topic_name [#to_s] name of topic to retrieve # @see https://cloud.google.com/pubsub/reference/rest/v1/projects.topics/get def get_topic(topic_name) @pubsub...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/pubsub/get_subscription.rb
Ruby
mit
99
master
579
module Fog module Google class Pubsub class Real # Retrieves a subscription by name from the remote service. # # @param subscription_name [#to_s] name of subscription to retrieve # @see https://cloud.google.com/pubsub/reference/rest/v1/projects.topics/get def get_subs...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/pubsub/pull_subscription.rb
Ruby
mit
99
master
1,638
module Fog module Google class Pubsub class Real # Pulls from a subscription. If option 'return_immediately' is # false, then this method blocks until one or more messages is # available or the remote server closes the connection. # # @param subscription [Subscription...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/pubsub/list_topics.rb
Ruby
mit
99
master
806
module Fog module Google class Pubsub class Real # Gets a list of all topics for a given project. # # @param_name project [#to_s] Project path to list topics under; must # be a project url prefix (e.g. 'projects/my-project'). If nil, the # project configured on th...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/pubsub/create_subscription.rb
Ruby
mit
99
master
1,548
module Fog module Google class Pubsub class Real # Create a subscription resource on a topic. # # @param subscription_name [#to_s] name of the subscription to create. # Note that it must follow the restrictions of subscription names; # specifically it must be name...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/pubsub/delete_topic.rb
Ruby
mit
99
master
513
module Fog module Google class Pubsub class Real # Delete a topic on the remote service. # # @param topic_name [#to_s] name of topic to delete # @see https://cloud.google.com/pubsub/reference/rest/v1/projects.topics/delete def delete_topic(topic_name) @pubsu...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/pubsub/publish_topic.rb
Ruby
mit
99
master
870
module Fog module Google class Pubsub class Real # Publish a list of messages to a topic. # # @param messages [Array<Hash>] List of messages to be published to a # topic; each hash should have a value defined for 'data' or for # 'attributes' (or both). Note that t...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/pubsub/create_topic.rb
Ruby
mit
99
master
634
module Fog module Google class Pubsub class Real # Create a topic on the remote service. # # @param topic_name [#to_s] name of topic to create; note that it must # obey the naming rules for a topic (e.g. # 'projects/myProject/topics/my_topic') # @see https...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/export_instance.rb
Ruby
mit
99
master
1,691
module Fog module Google class SQL ## # Exports data from a Cloud SQL instance to a Google Cloud Storage # bucket as a MySQL dump or CSV file. # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/export class Real def export_instance(instance_id,...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/list_operations.rb
Ruby
mit
99
master
822
module Fog module Google class SQL ## # Lists all instance operations that have been performed on the given Cloud SQL instance # in the reverse chronological order of the start time # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/operations/list class Real ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/import_instance.rb
Ruby
mit
99
master
1,416
module Fog module Google class SQL ## # Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud Storage # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/import class Real def import_instance(instance_id, uri, database: nil, ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/delete_ssl_cert.rb
Ruby
mit
99
master
623
module Fog module Google class SQL ## # Deletes a SSL certificate. The change will not take effect until the instance is restarted. # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/sslCerts/delete class Real def delete_ssl_cert(instance_id, sha1_fingerprint...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/get_ssl_cert.rb
Ruby
mit
99
master
593
module Fog module Google class SQL ## # Retrieves a particular SSL certificate (does not include the private key) # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/sslCerts/get class Real def get_ssl_cert(instance_id, sha1_fingerprint) @sql.get_ssl...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/restore_instance_backup.rb
Ruby
mit
99
master
930
module Fog module Google class SQL ## # Restores a backup of a Cloud SQL instance # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/restoreBackup class Real def restore_instance_backup(instance_id, backup_run_id) request = ::Google::Apis:...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/list_instances.rb
Ruby
mit
99
master
744
module Fog module Google class SQL ## # Lists instances under a given project in the alphabetical order of the instance name # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/list class Real def list_instances(filter: nil, max_results: nil, page_to...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/insert_user.rb
Ruby
mit
99
master
595
module Fog module Google class SQL ## # Create a new user in a Cloud SQL instance. # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/users/insert class Real def insert_user(instance_id, user) @sql.insert_user(@project, instance_id, ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/list_ssl_certs.rb
Ruby
mit
99
master
530
module Fog module Google class SQL ## # Lists all of the current SSL certificates for the instance # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/sslCerts/list class Real def list_ssl_certs(instance_id) @sql.list_ssl_certs(@project, instance_id)...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/list_backup_runs.rb
Ruby
mit
99
master
797
module Fog module Google class SQL ## # Lists all backup runs associated with a given instance and configuration in the # reverse chronological order of the enqueued time # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/backupRuns/list class Real def ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/get_instance.rb
Ruby
mit
99
master
536
module Fog module Google class SQL ## # Retrieves a resource containing information about a Cloud SQL instance # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/get class Real def get_instance(instance_id) @sql.get_instance(@project, inst...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/delete_instance.rb
Ruby
mit
99
master
506
module Fog module Google class SQL ## # Deletes a Cloud SQL instance # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/delete class Real def delete_instance(instance_id) @sql.delete_instance(@project, instance_id) end end ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/delete_user.rb
Ruby
mit
99
master
553
module Fog module Google class SQL ## # Deletes a user from a Cloud SQL instance. # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/users/delete class Real def delete_user(instance_id, host, name) @sql.delete_user(@project, instance_id, host: host,...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/list_users.rb
Ruby
mit
99
master
510
module Fog module Google class SQL ## # Lists users in the specified Cloud SQL instance. # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/users/list class Real def list_users(instance_id) @sql.list_users(@project, instance_id) end en...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/update_instance.rb
Ruby
mit
99
master
887
module Fog module Google class SQL ## # Updates settings of a Cloud SQL instance # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/update class Real def update_instance(instance_id, settings_version, tier, settings = {}) settings = ::Googl...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/update_user.rb
Ruby
mit
99
master
647
module Fog module Google class SQL ## # Updates an existing user in a Cloud SQL instance. # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/users/update class Real def update_user(instance_id, host, name, user) @sql.update_user( @projec...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/get_operation.rb
Ruby
mit
99
master
543
module Fog module Google class SQL ## # Retrieves an instance operation that has been performed on an instance # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/operations/get class Real def get_operation(operation_id) @sql.get_operation(@project, ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/delete_backup_run.rb
Ruby
mit
99
master
561
module Fog module Google class SQL ## # Deletes the backup taken by a backup run. # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/backupRuns/delete class Real def delete_backup_run(instance_id, backup_run_id) @sql.delete_backup_run(@project, insta...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/reset_instance_ssl_config.rb
Ruby
mit
99
master
794
module Fog module Google class SQL ## # Deletes all client certificates and generates a new server SSL certificate for the instance. # The changes will not take effect until the instance is restarted. Existing instances without # a server certificate will need to call this once to set a se...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/insert_ssl_cert.rb
Ruby
mit
99
master
765
module Fog module Google class SQL ## # Creates an SSL certificate. The new certificate will not be usable until the instance is restarted. # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/sslCerts/insert class Real def insert_ssl_cert(instance_id, common_n...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/restart_instance.rb
Ruby
mit
99
master
511
module Fog module Google class SQL ## # Restarts a Cloud SQL instance # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/restart class Real def restart_instance(instance_id) @sql.restart_instance(@project, instance_id) end en...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/insert_backup_run.rb
Ruby
mit
99
master
723
module Fog module Google class SQL ## # Creates a new backup run on demand. This method is applicable only to Second # Generation instances. # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/backupRuns/insert class Real def insert_backup_run(instance_id...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/clone_instance.rb
Ruby
mit
99
master
1,354
module Fog module Google class SQL ## # Creates a Cloud SQL instance as a clone of the source instance # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/clone class Real def clone_instance(instance_id, destination_name, lo...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/list_tiers.rb
Ruby
mit
99
master
476
module Fog module Google class SQL ## # Lists all available service tiers for Google Cloud SQL # # @see https://developers.google.com/cloud-sql/docs/admin-api/v1beta3/tiers/list class Real def list_tiers @sql.list_tiers(@project) end end class ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/get_backup_run.rb
Ruby
mit
99
master
592
module Fog module Google class SQL ## # Retrieves a resource containing information about a backup run. # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/backupRuns/get class Real def get_backup_run(instance_id, backup_run_id) @sql.get_backup_run(@p...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/insert_instance.rb
Ruby
mit
99
master
795
module Fog module Google class SQL ## # Creates a new Cloud SQL instance # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/insert class Real def insert_instance(name, tier, options = {}) instance = ::Google::Apis::SqladminV1beta4::Databas...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/sql/list_flags.rb
Ruby
mit
99
master
538
module Fog module Google class SQL ## # List all available database flags for Google Cloud SQL instances # # @see https://developers.google.com/cloud-sql/docs/admin-api/v1beta3/flags/list class Real def list_flags(database_version: nil) @sql.list_flags(:database_ve...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/monitoring/create_timeseries.rb
Ruby
mit
99
master
935
module Fog module Google class Monitoring class Real ## # Create a timeseries. User-created time series should only be used with custom metrics. # # @param timeseries [Array<Hash>] Timeseries to create/update. # @see https://cloud.google.com/monitoring/api/ref_v3/re...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/monitoring/get_metric_descriptor.rb
Ruby
mit
99
master
437
module Fog module Google class Monitoring class Real def get_metric_descriptor(metric_type) @monitoring.get_project_metric_descriptor("projects/#{@project}/metricDescriptors/#{metric_type}") end end class Mock def get_metric_descriptor(_metric_type) #...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/monitoring/delete_metric_descriptor.rb
Ruby
mit
99
master
446
module Fog module Google class Monitoring class Real def delete_metric_descriptor(metric_type) @monitoring.delete_project_metric_descriptor("projects/#{@project}/metricDescriptors/#{metric_type}") end end class Mock def delete_metric_descriptor(_metric_type) ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/monitoring/create_metric_descriptor.rb
Ruby
mit
99
master
2,665
module Fog module Google class Monitoring class Real ## # Create a metric descriptor. User-created metric descriptors define custom metrics. # @param metric_type [String] Required - the metric type. User-created metric descriptors should start # with custom.googleapis.com. ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/monitoring/list_metric_descriptors.rb
Ruby
mit
99
master
706
module Fog module Google class Monitoring ## # Lists metric descriptors that match a filter. # # @see https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors/list class Real def list_metric_descriptors(filter: nil, page_size: nil, page_token: nil) ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/monitoring/list_timeseries.rb
Ruby
mit
99
master
1,830
module Fog module Google class Monitoring ## # List the data points of the time series that match the metric and labels values and that have data points # in the interval # # @see https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list class Real ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/monitoring/get_monitored_resource_descriptor.rb
Ruby
mit
99
master
474
module Fog module Google class Monitoring class Real def get_monitored_resource_descriptor(resource_type) @monitoring.get_project_monitored_resource_descriptor( "projects/#{@project}/monitoredResourceDescriptors/#{resource_type}" ) end end class M...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/requests/monitoring/list_monitored_resource_descriptors.rb
Ruby
mit
99
master
946
module Fog module Google class Monitoring ## # Describes the schema of a MonitoredResource (a resource object that can be used for monitoring, logging, # billing, or other purposes) using a type name and a set of labels. # # @see https://cloud.google.com/monitoring/api/ref_v3/rest/v3...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/parsers/storage.rb
Ruby
mit
99
master
661
module Fog module Google module Parsers module Storage autoload :AccessControlList, 'fog/google/parsers/storage/access_control_list' autoload :CopyObject, 'fog/google/parsers/storage/copy_object' autoload :GetBucket, 'fog/google/parsers/storage/get_bucket' autoload :GetBucket...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/monitoring/timeseries_collection.rb
Ruby
mit
99
master
2,452
require "fog/core/collection" require "fog/google/models/monitoring/timeseries" module Fog module Google class Monitoring class TimeseriesCollection < Fog::Collection model Fog::Google::Monitoring::Timeseries ## # Lists all Timeseries. # # @param filter [String] A m...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/monitoring/monitored_resource_descriptor.rb
Ruby
mit
99
master
546
require "fog/core/model" module Fog module Google class Monitoring ## # A monitoredResourceDescriptor defines a metric type and its schema. # # @see https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.monitoredResourceDescriptors#MonitoredResourceDescriptor class Monitor...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/monitoring/metric_descriptor.rb
Ruby
mit
99
master
638
require "fog/core/model" module Fog module Google class Monitoring ## # A metricDescriptor defines a metric type and its schema. # # @see https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors#MetricDescriptor class MetricDescriptor < Fog::Model id...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/monitoring/timeseries.rb
Ruby
mit
99
master
550
require "fog/core/model" module Fog module Google class Monitoring ## # A time series is a collection of data points that represents the value of a metric of a project over time. # # https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list class Timeseries < F...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/monitoring/monitored_resource_descriptors.rb
Ruby
mit
99
master
1,448
require "fog/core/collection" require "fog/google/models/monitoring/monitored_resource_descriptor" module Fog module Google class Monitoring class MonitoredResourceDescriptors < Fog::Collection model Fog::Google::Monitoring::MonitoredResourceDescriptor ## # Lists all Monitored Reso...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/monitoring/metric_descriptors.rb
Ruby
mit
99
master
1,606
require "fog/core/collection" require "fog/google/models/monitoring/metric_descriptor" module Fog module Google class Monitoring class MetricDescriptors < Fog::Collection model Fog::Google::Monitoring::MetricDescriptor ## # Lists all Metric Descriptors. # # @param f...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/pubsub/topic.rb
Ruby
mit
99
master
2,098
require "fog/core/model" module Fog module Google class Pubsub # Represents a Pubsub topic resource # # @see https://cloud.google.com/pubsub/reference/rest/v1/projects.topics#Topic class Topic < Fog::Model identity :name # Creates this topic resource on the service. ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/pubsub/received_message.rb
Ruby
mit
99
master
1,231
require "fog/core/model" module Fog module Google class Pubsub # Represents a ReceivedMessage retrieved from a Google Pubsub # subscription. Note that ReceivedMessages are immutable. # # @see https://cloud.google.com/pubsub/reference/rest/v1/projects.subscriptions/pull#ReceivedMessage ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/pubsub/subscriptions.rb
Ruby
mit
99
master
998
require "fog/core/collection" require "fog/google/models/pubsub/subscription" module Fog module Google class Pubsub class Subscriptions < Fog::Collection model Fog::Google::Pubsub::Subscription # Lists all subscriptions that exist on the project. # # @return [Array<Fog::Goo...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/pubsub/topics.rb
Ruby
mit
99
master
874
require "fog/core/collection" require "fog/google/models/pubsub/topic" module Fog module Google class Pubsub class Topics < Fog::Collection model Fog::Google::Pubsub::Topic # Lists all topics that exist on the project. # # @return [Array<Fog::Google::Pubsub::Topic>] list of...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/pubsub/subscription.rb
Ruby
mit
99
master
3,618
module Fog module Google class Pubsub # Represents a Pubsub subscription resource # # @see https://cloud.google.com/pubsub/reference/rest/v1/projects.subscriptions class Subscription < Fog::Model identity :name attribute :topic attribute :push_config, :aliases => "p...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/sql/backup_run.rb
Ruby
mit
99
master
997
require "fog/core/model" module Fog module Google class SQL ## # A database instance backup run resource # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/backupRuns class BackupRun < Fog::Model identity :id attribute :description attribute ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/sql/ssl_cert.rb
Ruby
mit
99
master
3,051
require "fog/core/model" module Fog module Google class SQL ## # A SSL certificate resource # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/sslCerts class SslCert < Fog::Model identity :sha1_fingerprint, :aliases => "sha1Fingerprint" attribute :ce...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/sql/backup_runs.rb
Ruby
mit
99
master
1,170
require "fog/core/collection" require "fog/google/models/sql/backup_run" module Fog module Google class SQL class BackupRuns < Fog::Collection model Fog::Google::SQL::BackupRun ## # Lists all backup runs associated with a given instance. # # @param [String] instance...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/sql/instance.rb
Ruby
mit
99
master
13,136
require "fog/core/model" module Fog module Google class SQL class Instance < Fog::Model identity :name attribute :current_disk_size, :aliases => "currentDiskSize" attribute :database_version, :aliases => "databaseVersion" attribute :etag attribute :ip_addresses, :al...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/sql/tiers.rb
Ruby
mit
99
master
444
require "fog/core/collection" require "fog/google/models/sql/tier" module Fog module Google class SQL class Tiers < Fog::Collection model Fog::Google::SQL::Tier ## # Lists all available service tiers # # @return [Array<Fog::Google::SQL::Tier>] List of tiers ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/sql/operations.rb
Ruby
mit
99
master
1,643
require "fog/core/collection" require "fog/google/models/sql/operation" module Fog module Google class SQL class Operations < Fog::Collection model Fog::Google::SQL::Operation ## # Lists all instance operations that have been performed on the given instance # # @par...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/sql/flags.rb
Ruby
mit
99
master
444
require "fog/core/collection" require "fog/google/models/sql/flag" module Fog module Google class SQL class Flags < Fog::Collection model Fog::Google::SQL::Flag ## # List all available database flags # # @return [Array<Fog::Google::SQL::Flag>] List of flags ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/sql/user.rb
Ruby
mit
99
master
1,577
require "fog/core/model" module Fog module Google class SQL ## # Represents a database user in a Cloud SQL instance. # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/users class User < Fog::Model attribute :name attribute :etag attribute :ho...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/sql/flag.rb
Ruby
mit
99
master
644
require "fog/core/model" module Fog module Google class SQL ## # A Google Cloud SQL service flag resource # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/flags class Flag < Fog::Model identity :name attribute :allowed_string_values, :aliases => "a...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/sql/operation.rb
Ruby
mit
99
master
2,220
require "fog/core/model" module Fog module Google class SQL ## # An Operation resource contains information about database instance operations # such as create, delete, and restart # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/operations class Operation < ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/sql/instances.rb
Ruby
mit
99
master
1,148
require "fog/core/collection" require "fog/google/models/sql/instance" module Fog module Google class SQL class Instances < Fog::Collection model Fog::Google::SQL::Instance ## # Lists all instance # # @return [Array<Fog::Google::SQL::Instance>] List of instance reso...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/sql/ssl_certs.rb
Ruby
mit
99
master
1,681
require "fog/core/collection" require "fog/google/models/sql/ssl_cert" module Fog module Google class SQL class SslCerts < Fog::Collection model Fog::Google::SQL::SslCert ## # Lists all of the current SSL certificates for the instance # # @param [String] instance_id...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/sql/users.rb
Ruby
mit
99
master
465
require "fog/core/collection" require "fog/google/models/sql/user" module Fog module Google class SQL class Users < Fog::Collection model Fog::Google::SQL::User ## # Lists all Cloud SQL database users # # @return [Array<Fog::Google::SQL::User>] List of users ...
github
fog/fog-google
https://github.com/fog/fog-google
lib/fog/google/models/sql/tier.rb
Ruby
mit
99
master
439
require "fog/core/model" module Fog module Google class SQL ## # A Google Cloud SQL service tier resource # # @see https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/tiers class Tier < Fog::Model identity :tier attribute :disk_quota, :aliases => "DiskQuota" ...