Autogenerated update (2017-08-25)

Add:
- adexperiencereport_v1
- androiddeviceprovisioning_v1
- androidmanagement_v1
- bigquerydatatransfer_v1
- cloudtrace_v2
- clouduseraccounts_vm_alpha
- consumersurveys_v2
- dlp_v2beta1
- oslogin_v1alpha
- playcustomapp_v1
- playmoviespartner_v1
- safebrowsing_v4
- spectrum_v1explorer
- speech_v1
- streetviewpublish_v1
- vault_v1
- videointelligence_v1beta1

Update:
- acceleratedmobilepageurl_v1
- adexchangebuyer2_v2beta1
- adexchangebuyer_v1_4
- adsense_v1_4
- adsensehost_v4_1
- analytics_v3
- analyticsreporting_v4
- androidenterprise_v1
- androidpublisher_v2
- appengine_v1
- appsactivity_v1
- appstate_v1
- bigquery_v2
- calendar_v3
- classroom_v1
- cloudbilling_v1
- cloudbuild_v1
- clouddebugger_v2
- clouderrorreporting_v1beta1
- cloudfunctions_v1
- cloudkms_v1
- cloudmonitoring_v2beta2
- cloudresourcemanager_v1
- compute_beta
- compute_v1
- container_v1
- content_v2
- dataflow_v1b3
- dataproc_v1
- datastore_v1
- deploymentmanager_v2
- dfareporting_v2_8
- dns_v1
- doubleclicksearch_v2
- drive_v3
- firebasedynamiclinks_v1
- firebaserules_v1
- fitness_v1
- games_configuration_v1configuration
- games_management_v1management
- games_v1
- genomics_v1
- gmail_v1
- iam_v1
- identitytoolkit_v3
- language_v1
- logging_v2
- manufacturers_v1
- ml_v1
- monitoring_v3
- oauth2_v2
- partners_v2
- people_v1
- plus_domains_v1
- plus_v1
- proximitybeacon_v1beta1
- pubsub_v1
- runtimeconfig_v1
- script_v1
- searchconsole_v1
- servicecontrol_v1
- servicemanagement_v1
- serviceuser_v1
- sheets_v4
- slides_v1
- sourcerepo_v1
- spanner_v1
- sqladmin_v1beta4
- storage_v1
- storagetransfer_v1
- toolresults_v1beta3
- vision_v1
- webmasters_v3
- youtube_analytics_v1
- youtube_partner_v1
- youtubereporting_v1
This commit is contained in:
Google APIs committed 2017-08-25 19:54:22 +00:00
1 parent ce32deabcf
commit 2dd396ce6e
315 files changed
+158012 -116092

No files matched your search

+350 -350
View File
@@ -22,6 +22,56 @@ module Google
module Apis
module FirebaserulesV1
# Arg matchers for the mock function.
class Arg
include Google::Apis::Core::Hashable
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
# Corresponds to the JSON property `anyValue`
# @return [Google::Apis::FirebaserulesV1::Empty]
attr_accessor :any_value
# Argument exactly matches value provided.
# Corresponds to the JSON property `exactValue`
# @return [Object]
attr_accessor :exact_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@any_value = args[:any_value] if args.key?(:any_value)
@exact_value = args[:exact_value] if args.key?(:exact_value)
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# `File` containing source content.
class File
include Google::Apis::Core::Hashable
@@ -80,263 +130,6 @@ module Google
end
end
# The response for FirebaseRulesService.ListReleases.
class ListReleasesResponse
include Google::Apis::Core::Hashable
# List of `Release` instances.
# Corresponds to the JSON property `releases`
# @return [Array<Google::Apis::FirebaserulesV1::Release>]
attr_accessor :releases
# The pagination token to retrieve the next page of results. If the value is
# empty, no further results remain.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@releases = args[:releases] if args.key?(:releases)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# `Release` is a named reference to a `Ruleset`. Once a `Release` refers to a
# `Ruleset`, rules-enabled services will be able to enforce the `Ruleset`.
class Release
include Google::Apis::Core::Hashable
# Time the release was created.
# Output only.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Time the release was updated.
# Output only.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Resource name for the `Release`.
# `Release` names may be structured `app1/prod/v2` or flat `app1_prod_v2`
# which affords developers a great deal of flexibility in mapping the name
# to the style that best fits their existing development practices. For
# example, a name could refer to an environment, an app, a version, or some
# combination of three.
# In the table below, for the project name `projects/foo`, the following
# relative release paths show how flat and structured names might be chosen
# to match a desired development / deployment strategy.
# Use Case | Flat Name | Structured Name
# -------------|---------------------|----------------
# Environments | releases/qa | releases/qa
# Apps | releases/app1_qa | releases/app1/qa
# Versions | releases/app1_v2_qa | releases/app1/v2/qa
# The delimiter between the release name path elements can be almost anything
# and it should work equally well with the release name list filter, but in
# many ways the structured paths provide a clearer picture of the
# relationship between `Release` instances.
# Format: `projects/`project_id`/releases/`release_id``
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must
# exist the `Release` to be created.
# Corresponds to the JSON property `rulesetName`
# @return [String]
attr_accessor :ruleset_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@update_time = args[:update_time] if args.key?(:update_time)
@name = args[:name] if args.key?(:name)
@ruleset_name = args[:ruleset_name] if args.key?(:ruleset_name)
end
end
# The response for FirebaseRulesService.TestRuleset.
class TestRulesetResponse
include Google::Apis::Core::Hashable
# The set of test results given the test cases in the `TestSuite`.
# The results will appear in the same order as the test cases appear in the
# `TestSuite`.
# Corresponds to the JSON property `testResults`
# @return [Array<Google::Apis::FirebaserulesV1::TestResult>]
attr_accessor :test_results
# Syntactic and semantic `Source` issues of varying severity. Issues of
# `ERROR` severity will prevent tests from executing.
# Corresponds to the JSON property `issues`
# @return [Array<Google::Apis::FirebaserulesV1::Issue>]
attr_accessor :issues
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@test_results = args[:test_results] if args.key?(:test_results)
@issues = args[:issues] if args.key?(:issues)
end
end
# Test result message containing the state of the test as well as a
# description and source position for test failures.
class TestResult
include Google::Apis::Core::Hashable
# Position in the `Source` content including its line, column number, and an
# index of the `File` in the `Source` message. Used for debug purposes.
# Corresponds to the JSON property `errorPosition`
# @return [Google::Apis::FirebaserulesV1::SourcePosition]
attr_accessor :error_position
# The set of function calls made to service-defined methods.
# Function calls are included in the order in which they are encountered
# during evaluation, are provided for both mocked and unmocked functions,
# and included on the response regardless of the test `state`.
# Corresponds to the JSON property `functionCalls`
# @return [Array<Google::Apis::FirebaserulesV1::FunctionCall>]
attr_accessor :function_calls
# State of the test.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Debug messages related to test execution issues encountered during
# evaluation.
# Debug messages may be related to too many or too few invocations of
# function mocks or to runtime errors that occur during evaluation.
# For example: ```Unable to read variable [name: "resource"]```
# Corresponds to the JSON property `debugMessages`
# @return [Array<String>]
attr_accessor :debug_messages
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error_position = args[:error_position] if args.key?(:error_position)
@function_calls = args[:function_calls] if args.key?(:function_calls)
@state = args[:state] if args.key?(:state)
@debug_messages = args[:debug_messages] if args.key?(:debug_messages)
end
end
# The response for FirebaseRulesService.ListRulesets.
class ListRulesetsResponse
include Google::Apis::Core::Hashable
# The pagination token to retrieve the next page of results. If the value is
# empty, no further results remain.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# List of `Ruleset` instances.
# Corresponds to the JSON property `rulesets`
# @return [Array<Google::Apis::FirebaserulesV1::Ruleset>]
attr_accessor :rulesets
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@rulesets = args[:rulesets] if args.key?(:rulesets)
end
end
# Arg matchers for the mock function.
class Arg
include Google::Apis::Core::Hashable
# Argument exactly matches value provided.
# Corresponds to the JSON property `exactValue`
# @return [Object]
attr_accessor :exact_value
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
# Corresponds to the JSON property `anyValue`
# @return [Google::Apis::FirebaserulesV1::Empty]
attr_accessor :any_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@exact_value = args[:exact_value] if args.key?(:exact_value)
@any_value = args[:any_value] if args.key?(:any_value)
end
end
# `TestSuite` is a collection of `TestCase` instances that validate the logical
# correctness of a `Ruleset`. The `TestSuite` may be referenced in-line within
# a `TestRuleset` invocation or as part of a `Release` object as a pre-release
# check.
class TestSuite
include Google::Apis::Core::Hashable
# Collection of test cases associated with the `TestSuite`.
# Corresponds to the JSON property `testCases`
# @return [Array<Google::Apis::FirebaserulesV1::TestCase>]
attr_accessor :test_cases
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@test_cases = args[:test_cases] if args.key?(:test_cases)
end
end
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Mock function definition.
# Mocks must refer to a function declared by the target service. The type of
# the function args and result will be inferred at test time. If either the
@@ -378,6 +171,216 @@ module Google
end
end
# Issues include warnings, errors, and deprecation notices.
class Issue
include Google::Apis::Core::Hashable
# Short error description.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# The severity of the issue.
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# Position in the `Source` content including its line, column number, and an
# index of the `File` in the `Source` message. Used for debug purposes.
# Corresponds to the JSON property `sourcePosition`
# @return [Google::Apis::FirebaserulesV1::SourcePosition]
attr_accessor :source_position
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@severity = args[:severity] if args.key?(:severity)
@source_position = args[:source_position] if args.key?(:source_position)
end
end
# The response for FirebaseRulesService.ListReleases.
class ListReleasesResponse
include Google::Apis::Core::Hashable
# The pagination token to retrieve the next page of results. If the value is
# empty, no further results remain.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# List of `Release` instances.
# Corresponds to the JSON property `releases`
# @return [Array<Google::Apis::FirebaserulesV1::Release>]
attr_accessor :releases
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@releases = args[:releases] if args.key?(:releases)
end
end
# The response for FirebaseRulesService.ListRulesets.
class ListRulesetsResponse
include Google::Apis::Core::Hashable
# The pagination token to retrieve the next page of results. If the value is
# empty, no further results remain.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# List of `Ruleset` instances.
# Corresponds to the JSON property `rulesets`
# @return [Array<Google::Apis::FirebaserulesV1::Ruleset>]
attr_accessor :rulesets
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@rulesets = args[:rulesets] if args.key?(:rulesets)
end
end
# `Release` is a named reference to a `Ruleset`. Once a `Release` refers to a
# `Ruleset`, rules-enabled services will be able to enforce the `Ruleset`.
class Release
include Google::Apis::Core::Hashable
# Time the release was created.
# Output only.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Resource name for the `Release`.
# `Release` names may be structured `app1/prod/v2` or flat `app1_prod_v2`
# which affords developers a great deal of flexibility in mapping the name
# to the style that best fits their existing development practices. For
# example, a name could refer to an environment, an app, a version, or some
# combination of three.
# In the table below, for the project name `projects/foo`, the following
# relative release paths show how flat and structured names might be chosen
# to match a desired development / deployment strategy.
# Use Case | Flat Name | Structured Name
# -------------|---------------------|----------------
# Environments | releases/qa | releases/qa
# Apps | releases/app1_qa | releases/app1/qa
# Versions | releases/app1_v2_qa | releases/app1/v2/qa
# The delimiter between the release name path elements can be almost anything
# and it should work equally well with the release name list filter, but in
# many ways the structured paths provide a clearer picture of the
# relationship between `Release` instances.
# Format: `projects/`project_id`/releases/`release_id``
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must
# exist the `Release` to be created.
# Corresponds to the JSON property `rulesetName`
# @return [String]
attr_accessor :ruleset_name
# Time the release was updated.
# Output only.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@name = args[:name] if args.key?(:name)
@ruleset_name = args[:ruleset_name] if args.key?(:ruleset_name)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Possible result values from the function mock invocation.
class Result
include Google::Apis::Core::Hashable
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
# Corresponds to the JSON property `undefined`
# @return [Google::Apis::FirebaserulesV1::Empty]
attr_accessor :undefined
# The result is an actual value. The type of the value must match that
# of the type declared by the service.
# Corresponds to the JSON property `value`
# @return [Object]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@undefined = args[:undefined] if args.key?(:undefined)
@value = args[:value] if args.key?(:value)
end
end
# `Ruleset` is an immutable copy of `Source` with a globally unique identifier
# and a creation time.
class Ruleset
include Google::Apis::Core::Hashable
# Time the `Ruleset` was created.
# Output only.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Name of the `Ruleset`. The ruleset_id is auto generated by the service.
# Format: `projects/`project_id`/rulesets/`ruleset_id``
# Output only.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# `Source` is one or more `File` messages comprising a logical set of rules.
# Corresponds to the JSON property `source`
# @return [Google::Apis::FirebaserulesV1::Source]
attr_accessor :source
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@name = args[:name] if args.key?(:name)
@source = args[:source] if args.key?(:source)
end
end
# `Source` is one or more `File` messages comprising a logical set of rules.
class Source
include Google::Apis::Core::Hashable
@@ -397,48 +400,11 @@ module Google
end
end
# Possible result values from the function mock invocation.
class Result
include Google::Apis::Core::Hashable
# The result is an actual value. The type of the value must match that
# of the type declared by the service.
# Corresponds to the JSON property `value`
# @return [Object]
attr_accessor :value
# A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
# service Foo `
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# `
# The JSON representation for `Empty` is empty JSON object ````.
# Corresponds to the JSON property `undefined`
# @return [Google::Apis::FirebaserulesV1::Empty]
attr_accessor :undefined
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@value = args[:value] if args.key?(:value)
@undefined = args[:undefined] if args.key?(:undefined)
end
end
# Position in the `Source` content including its line, column number, and an
# index of the `File` in the `Source` message. Used for debug purposes.
class SourcePosition
include Google::Apis::Core::Hashable
# Line number of the source fragment. 1-based.
# Corresponds to the JSON property `line`
# @return [Fixnum]
attr_accessor :line
# First column on the source line associated with the source fragment.
# Corresponds to the JSON property `column`
# @return [Fixnum]
@@ -449,15 +415,20 @@ module Google
# @return [String]
attr_accessor :file_name
# Line number of the source fragment. 1-based.
# Corresponds to the JSON property `line`
# @return [Fixnum]
attr_accessor :line
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@line = args[:line] if args.key?(:line)
@column = args[:column] if args.key?(:column)
@file_name = args[:file_name] if args.key?(:file_name)
@line = args[:line] if args.key?(:line)
end
end
@@ -471,12 +442,10 @@ module Google
class TestCase
include Google::Apis::Core::Hashable
# Optional resource value as it appears in persistent storage before the
# request is fulfilled.
# The resource type depends on the `request.path` value.
# Corresponds to the JSON property `resource`
# @return [Object]
attr_accessor :resource
# Test expectation.
# Corresponds to the JSON property `expectation`
# @return [String]
attr_accessor :expectation
# Optional function mocks for service-defined functions. If not set, any
# service defined function is expected to return an error, which may or may
@@ -485,11 +454,6 @@ module Google
# @return [Array<Google::Apis::FirebaserulesV1::FunctionMock>]
attr_accessor :function_mocks
# Test expectation.
# Corresponds to the JSON property `expectation`
# @return [String]
attr_accessor :expectation
# Request context.
# The exact format of the request context is service-dependent. See the
# appropriate service documentation for information about the supported
@@ -510,16 +474,69 @@ module Google
# @return [Object]
attr_accessor :request
# Optional resource value as it appears in persistent storage before the
# request is fulfilled.
# The resource type depends on the `request.path` value.
# Corresponds to the JSON property `resource`
# @return [Object]
attr_accessor :resource
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@resource = args[:resource] if args.key?(:resource)
@function_mocks = args[:function_mocks] if args.key?(:function_mocks)
@expectation = args[:expectation] if args.key?(:expectation)
@function_mocks = args[:function_mocks] if args.key?(:function_mocks)
@request = args[:request] if args.key?(:request)
@resource = args[:resource] if args.key?(:resource)
end
end
# Test result message containing the state of the test as well as a
# description and source position for test failures.
class TestResult
include Google::Apis::Core::Hashable
# Debug messages related to test execution issues encountered during
# evaluation.
# Debug messages may be related to too many or too few invocations of
# function mocks or to runtime errors that occur during evaluation.
# For example: ```Unable to read variable [name: "resource"]```
# Corresponds to the JSON property `debugMessages`
# @return [Array<String>]
attr_accessor :debug_messages
# Position in the `Source` content including its line, column number, and an
# index of the `File` in the `Source` message. Used for debug purposes.
# Corresponds to the JSON property `errorPosition`
# @return [Google::Apis::FirebaserulesV1::SourcePosition]
attr_accessor :error_position
# The set of function calls made to service-defined methods.
# Function calls are included in the order in which they are encountered
# during evaluation, are provided for both mocked and unmocked functions,
# and included on the response regardless of the test `state`.
# Corresponds to the JSON property `functionCalls`
# @return [Array<Google::Apis::FirebaserulesV1::FunctionCall>]
attr_accessor :function_calls
# State of the test.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@debug_messages = args[:debug_messages] if args.key?(:debug_messages)
@error_position = args[:error_position] if args.key?(:error_position)
@function_calls = args[:function_calls] if args.key?(:function_calls)
@state = args[:state] if args.key?(:state)
end
end
@@ -551,28 +568,22 @@ module Google
end
end
# `Ruleset` is an immutable copy of `Source` with a globally unique identifier
# and a creation time.
class Ruleset
# The response for FirebaseRulesService.TestRuleset.
class TestRulesetResponse
include Google::Apis::Core::Hashable
# Name of the `Ruleset`. The ruleset_id is auto generated by the service.
# Format: `projects/`project_id`/rulesets/`ruleset_id``
# Output only.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Syntactic and semantic `Source` issues of varying severity. Issues of
# `ERROR` severity will prevent tests from executing.
# Corresponds to the JSON property `issues`
# @return [Array<Google::Apis::FirebaserulesV1::Issue>]
attr_accessor :issues
# `Source` is one or more `File` messages comprising a logical set of rules.
# Corresponds to the JSON property `source`
# @return [Google::Apis::FirebaserulesV1::Source]
attr_accessor :source
# Time the `Ruleset` was created.
# Output only.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The set of test results given the test cases in the `TestSuite`.
# The results will appear in the same order as the test cases appear in the
# `TestSuite`.
# Corresponds to the JSON property `testResults`
# @return [Array<Google::Apis::FirebaserulesV1::TestResult>]
attr_accessor :test_results
def initialize(**args)
update!(**args)
@@ -580,31 +591,22 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@source = args[:source] if args.key?(:source)
@create_time = args[:create_time] if args.key?(:create_time)
@issues = args[:issues] if args.key?(:issues)
@test_results = args[:test_results] if args.key?(:test_results)
end
end
# Issues include warnings, errors, and deprecation notices.
class Issue
# `TestSuite` is a collection of `TestCase` instances that validate the logical
# correctness of a `Ruleset`. The `TestSuite` may be referenced in-line within
# a `TestRuleset` invocation or as part of a `Release` object as a pre-release
# check.
class TestSuite
include Google::Apis::Core::Hashable
# Short error description.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Position in the `Source` content including its line, column number, and an
# index of the `File` in the `Source` message. Used for debug purposes.
# Corresponds to the JSON property `sourcePosition`
# @return [Google::Apis::FirebaserulesV1::SourcePosition]
attr_accessor :source_position
# The severity of the issue.
# Corresponds to the JSON property `severity`
# @return [String]
attr_accessor :severity
# Collection of test cases associated with the `TestSuite`.
# Corresponds to the JSON property `testCases`
# @return [Array<Google::Apis::FirebaserulesV1::TestCase>]
attr_accessor :test_cases
def initialize(**args)
update!(**args)
@@ -612,9 +614,7 @@ module Google
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@source_position = args[:source_position] if args.key?(:source_position)
@severity = args[:severity] if args.key?(:severity)
@test_cases = args[:test_cases] if args.key?(:test_cases)
end
end
end
@@ -22,6 +22,18 @@ module Google
module Apis
module FirebaserulesV1
class Arg
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class File
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -34,61 +46,31 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class FunctionMock
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Issue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListReleasesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Release
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestRulesetResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListRulesetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Arg
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestSuite
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FunctionMock
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Source
class Release
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@@ -100,6 +82,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Ruleset
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Source
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SourcePosition
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -112,24 +106,45 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TestResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestRulesetRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Ruleset
class TestRulesetResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Issue
class TestSuite
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Arg
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :any_value, as: 'anyValue', class: Google::Apis::FirebaserulesV1::Empty, decorator: Google::Apis::FirebaserulesV1::Empty::Representation
property :exact_value, as: 'exactValue'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class File
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -147,44 +162,33 @@ module Google
end
end
class FunctionMock
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :args, as: 'args', class: Google::Apis::FirebaserulesV1::Arg, decorator: Google::Apis::FirebaserulesV1::Arg::Representation
property :function, as: 'function'
property :result, as: 'result', class: Google::Apis::FirebaserulesV1::Result, decorator: Google::Apis::FirebaserulesV1::Result::Representation
end
end
class Issue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :severity, as: 'severity'
property :source_position, as: 'sourcePosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
end
end
class ListReleasesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :releases, as: 'releases', class: Google::Apis::FirebaserulesV1::Release, decorator: Google::Apis::FirebaserulesV1::Release::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Release
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :update_time, as: 'updateTime'
property :name, as: 'name'
property :ruleset_name, as: 'rulesetName'
end
end
class TestRulesetResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :test_results, as: 'testResults', class: Google::Apis::FirebaserulesV1::TestResult, decorator: Google::Apis::FirebaserulesV1::TestResult::Representation
collection :issues, as: 'issues', class: Google::Apis::FirebaserulesV1::Issue, decorator: Google::Apis::FirebaserulesV1::Issue::Representation
end
end
class TestResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_position, as: 'errorPosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
collection :function_calls, as: 'functionCalls', class: Google::Apis::FirebaserulesV1::FunctionCall, decorator: Google::Apis::FirebaserulesV1::FunctionCall::Representation
property :state, as: 'state'
collection :debug_messages, as: 'debugMessages'
end
end
@@ -197,36 +201,31 @@ module Google
end
end
class Arg
class Release
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :exact_value, as: 'exactValue'
property :any_value, as: 'anyValue', class: Google::Apis::FirebaserulesV1::Empty, decorator: Google::Apis::FirebaserulesV1::Empty::Representation
property :create_time, as: 'createTime'
property :name, as: 'name'
property :ruleset_name, as: 'rulesetName'
property :update_time, as: 'updateTime'
end
end
class TestSuite
class Result
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :test_cases, as: 'testCases', class: Google::Apis::FirebaserulesV1::TestCase, decorator: Google::Apis::FirebaserulesV1::TestCase::Representation
property :undefined, as: 'undefined', class: Google::Apis::FirebaserulesV1::Empty, decorator: Google::Apis::FirebaserulesV1::Empty::Representation
property :value, as: 'value'
end
end
class Empty
class Ruleset
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class FunctionMock
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :args, as: 'args', class: Google::Apis::FirebaserulesV1::Arg, decorator: Google::Apis::FirebaserulesV1::Arg::Representation
property :function, as: 'function'
property :result, as: 'result', class: Google::Apis::FirebaserulesV1::Result, decorator: Google::Apis::FirebaserulesV1::Result::Representation
property :create_time, as: 'createTime'
property :name, as: 'name'
property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation
end
end
@@ -239,32 +238,35 @@ module Google
end
end
class Result
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :undefined, as: 'undefined', class: Google::Apis::FirebaserulesV1::Empty, decorator: Google::Apis::FirebaserulesV1::Empty::Representation
end
end
class SourcePosition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :line, as: 'line'
property :column, as: 'column'
property :file_name, as: 'fileName'
property :line, as: 'line'
end
end
class TestCase
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource, as: 'resource'
property :expectation, as: 'expectation'
collection :function_mocks, as: 'functionMocks', class: Google::Apis::FirebaserulesV1::FunctionMock, decorator: Google::Apis::FirebaserulesV1::FunctionMock::Representation
property :expectation, as: 'expectation'
property :request, as: 'request'
property :resource, as: 'resource'
end
end
class TestResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :debug_messages, as: 'debugMessages'
property :error_position, as: 'errorPosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
collection :function_calls, as: 'functionCalls', class: Google::Apis::FirebaserulesV1::FunctionCall, decorator: Google::Apis::FirebaserulesV1::FunctionCall::Representation
property :state, as: 'state'
end
end
@@ -278,23 +280,21 @@ module Google
end
end
class Ruleset
class TestRulesetResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :source, as: 'source', class: Google::Apis::FirebaserulesV1::Source, decorator: Google::Apis::FirebaserulesV1::Source::Representation
collection :issues, as: 'issues', class: Google::Apis::FirebaserulesV1::Issue, decorator: Google::Apis::FirebaserulesV1::Issue::Representation
collection :test_results, as: 'testResults', class: Google::Apis::FirebaserulesV1::TestResult, decorator: Google::Apis::FirebaserulesV1::TestResult::Representation
property :create_time, as: 'createTime'
end
end
class Issue
class TestSuite
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :source_position, as: 'sourcePosition', class: Google::Apis::FirebaserulesV1::SourcePosition, decorator: Google::Apis::FirebaserulesV1::SourcePosition::Representation
collection :test_cases, as: 'testCases', class: Google::Apis::FirebaserulesV1::TestCase, decorator: Google::Apis::FirebaserulesV1::TestCase::Representation
property :severity, as: 'severity'
end
end
end
+117 -117
View File
@@ -102,60 +102,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Update a `Release`.
# Only updates to the `ruleset_name` and `test_suite_name` fields will be
# honored. `Release` rename is not supported. To create a `Release` use the
# CreateRelease method.
# @param [String] name
# Resource name for the `Release`.
# `Release` names may be structured `app1/prod/v2` or flat `app1_prod_v2`
# which affords developers a great deal of flexibility in mapping the name
# to the style that best fits their existing development practices. For
# example, a name could refer to an environment, an app, a version, or some
# combination of three.
# In the table below, for the project name `projects/foo`, the following
# relative release paths show how flat and structured names might be chosen
# to match a desired development / deployment strategy.
# Use Case | Flat Name | Structured Name
# -------------|---------------------|----------------
# Environments | releases/qa | releases/qa
# Apps | releases/app1_qa | releases/app1/qa
# Versions | releases/app1_v2_qa | releases/app1/v2/qa
# The delimiter between the release name path elements can be almost anything
# and it should work equally well with the release name list filter, but in
# many ways the structured paths provide a clearer picture of the
# relationship between `Release` instances.
# Format: `projects/`project_id`/releases/`release_id``
# @param [Google::Apis::FirebaserulesV1::Release] release_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FirebaserulesV1::Release] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebaserulesV1::Release]
#
# @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 update_project_release(name, release_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1/{+name}', options)
command.request_representation = Google::Apis::FirebaserulesV1::Release::Representation
command.request_object = release_object
command.response_representation = Google::Apis::FirebaserulesV1::Release::Representation
command.response_class = Google::Apis::FirebaserulesV1::Release
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Create a `Release`.
# Release names should reflect the developer's deployment practices. For
# example, the release name may include the environment name, application
@@ -295,14 +241,14 @@ module Google
# In the examples, the filter parameters refer to the search filters are
# relative to the project. Fully qualified prefixed may also be used. e.g.
# `test_suite_name=projects/foo/testsuites/uuid1`
# @param [String] page_token
# Next page token for the next batch of `Release` instances.
# @param [Fixnum] page_size
# Page size to load. Maximum of 100. Defaults to 10.
# Note: `page_size` is just a hint and the service may choose to load fewer
# than `page_size` results due to the size of the output. To traverse all of
# the releases, the caller should iterate until the `page_token` on the
# response is empty.
# @param [String] page_token
# Next page token for the next batch of `Release` instances.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -320,23 +266,44 @@ module Google
# @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_releases(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_project_releases(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/releases', options)
command.response_representation = Google::Apis::FirebaserulesV1::ListReleasesResponse::Representation
command.response_class = Google::Apis::FirebaserulesV1::ListReleasesResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get a `Ruleset` by name including the full `Source` contents.
# Update a `Release`.
# Only updates to the `ruleset_name` and `test_suite_name` fields will be
# honored. `Release` rename is not supported. To create a `Release` use the
# CreateRelease method.
# @param [String] name
# Resource name for the ruleset to get.
# Format: `projects/`project_id`/rulesets/`ruleset_id``
# Resource name for the `Release`.
# `Release` names may be structured `app1/prod/v2` or flat `app1_prod_v2`
# which affords developers a great deal of flexibility in mapping the name
# to the style that best fits their existing development practices. For
# example, a name could refer to an environment, an app, a version, or some
# combination of three.
# In the table below, for the project name `projects/foo`, the following
# relative release paths show how flat and structured names might be chosen
# to match a desired development / deployment strategy.
# Use Case | Flat Name | Structured Name
# -------------|---------------------|----------------
# Environments | releases/qa | releases/qa
# Apps | releases/app1_qa | releases/app1/qa
# Versions | releases/app1_v2_qa | releases/app1/v2/qa
# The delimiter between the release name path elements can be almost anything
# and it should work equally well with the release name list filter, but in
# many ways the structured paths provide a clearer picture of the
# relationship between `Release` instances.
# Format: `projects/`project_id`/releases/`release_id``
# @param [Google::Apis::FirebaserulesV1::Release] release_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -346,74 +313,26 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FirebaserulesV1::Ruleset] parsed result object
# @yieldparam result [Google::Apis::FirebaserulesV1::Release] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebaserulesV1::Ruleset]
# @return [Google::Apis::FirebaserulesV1::Release]
#
# @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 get_project_ruleset(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation
command.response_class = Google::Apis::FirebaserulesV1::Ruleset
def update_project_release(name, release_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1/{+name}', options)
command.request_representation = Google::Apis::FirebaserulesV1::Release::Representation
command.request_object = release_object
command.response_representation = Google::Apis::FirebaserulesV1::Release::Representation
command.response_class = Google::Apis::FirebaserulesV1::Release
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List `Ruleset` metadata only and optionally filter the results by `Ruleset`
# name.
# The full `Source` contents of a `Ruleset` may be retrieved with
# GetRuleset.
# @param [String] name
# Resource name for the project.
# Format: `projects/`project_id``
# @param [String] filter
# `Ruleset` filter. The list method supports filters with restrictions on
# `Ruleset.name`.
# Filters on `Ruleset.create_time` should use the `date` function which
# parses strings that conform to the RFC 3339 date/time specifications.
# Example: `create_time > date("2017-01-01") AND name=UUID-*`
# @param [String] page_token
# Next page token for loading the next batch of `Ruleset` instances.
# @param [Fixnum] page_size
# Page size to load. Maximum of 100. Defaults to 10.
# Note: `page_size` is just a hint and the service may choose to load less
# than `page_size` due to the size of the output. To traverse all of the
# releases, caller should iterate until the `page_token` is empty.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FirebaserulesV1::ListRulesetsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebaserulesV1::ListRulesetsResponse]
#
# @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_rulesets(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/rulesets', options)
command.response_representation = Google::Apis::FirebaserulesV1::ListRulesetsResponse::Representation
command.response_class = Google::Apis::FirebaserulesV1::ListRulesetsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Create a `Ruleset` from `Source`.
# The `Ruleset` is given a unique generated name which is returned to the
# caller. `Source` containing syntactic or semantics errors will result in an
@@ -483,6 +402,87 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get a `Ruleset` by name including the full `Source` contents.
# @param [String] name
# Resource name for the ruleset to get.
# Format: `projects/`project_id`/rulesets/`ruleset_id``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FirebaserulesV1::Ruleset] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebaserulesV1::Ruleset]
#
# @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 get_project_ruleset(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::FirebaserulesV1::Ruleset::Representation
command.response_class = Google::Apis::FirebaserulesV1::Ruleset
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List `Ruleset` metadata only and optionally filter the results by `Ruleset`
# name.
# The full `Source` contents of a `Ruleset` may be retrieved with
# GetRuleset.
# @param [String] name
# Resource name for the project.
# Format: `projects/`project_id``
# @param [String] filter
# `Ruleset` filter. The list method supports filters with restrictions on
# `Ruleset.name`.
# Filters on `Ruleset.create_time` should use the `date` function which
# parses strings that conform to the RFC 3339 date/time specifications.
# Example: `create_time > date("2017-01-01") AND name=UUID-*`
# @param [Fixnum] page_size
# Page size to load. Maximum of 100. Defaults to 10.
# Note: `page_size` is just a hint and the service may choose to load less
# than `page_size` due to the size of the output. To traverse all of the
# releases, caller should iterate until the `page_token` is empty.
# @param [String] page_token
# Next page token for loading the next batch of `Ruleset` instances.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FirebaserulesV1::ListRulesetsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FirebaserulesV1::ListRulesetsResponse]
#
# @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_rulesets(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}/rulesets', options)
command.response_representation = Google::Apis::FirebaserulesV1::ListRulesetsResponse::Representation
command.response_class = Google::Apis::FirebaserulesV1::ListRulesetsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected