google-api-client 0.13.4 → 0.13.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +43 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +4 -3
  5. data/generated/google/apis/admin_directory_v1.rb +1 -1
  6. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  7. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  8. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +1 -1
  9. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  10. data/generated/google/apis/androidenterprise_v1/classes.rb +33 -0
  11. data/generated/google/apis/androidenterprise_v1/representations.rb +16 -0
  12. data/generated/google/apis/androidenterprise_v1/service.rb +1 -1
  13. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  14. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  15. data/generated/google/apis/bigquery_v2.rb +1 -1
  16. data/generated/google/apis/bigquery_v2/classes.rb +10 -1
  17. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  18. data/generated/google/apis/cloudkms_v1.rb +1 -1
  19. data/generated/google/apis/cloudkms_v1/classes.rb +6 -253
  20. data/generated/google/apis/cloudkms_v1/representations.rb +1 -99
  21. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  22. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
  23. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  24. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
  25. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  26. data/generated/google/apis/cloudtrace_v2/classes.rb +12 -6
  27. data/generated/google/apis/cloudtrace_v2/representations.rb +2 -1
  28. data/generated/google/apis/container_v1.rb +1 -1
  29. data/generated/google/apis/container_v1/classes.rb +72 -15
  30. data/generated/google/apis/container_v1/representations.rb +7 -0
  31. data/generated/google/apis/container_v1beta1.rb +1 -1
  32. data/generated/google/apis/container_v1beta1/classes.rb +58 -15
  33. data/generated/google/apis/container_v1beta1/representations.rb +5 -0
  34. data/generated/google/apis/content_v2.rb +1 -1
  35. data/generated/google/apis/content_v2/classes.rb +16 -0
  36. data/generated/google/apis/content_v2/representations.rb +3 -0
  37. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  38. data/generated/google/apis/dataflow_v1b3/classes.rb +87 -0
  39. data/generated/google/apis/dataflow_v1b3/representations.rb +46 -0
  40. data/generated/google/apis/datastore_v1beta1.rb +38 -0
  41. data/generated/google/apis/datastore_v1beta1/classes.rb +567 -0
  42. data/generated/google/apis/datastore_v1beta1/representations.rb +191 -0
  43. data/generated/google/apis/datastore_v1beta1/service.rb +137 -0
  44. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1 -1
  45. data/generated/google/apis/dlp_v2beta1.rb +1 -1
  46. data/generated/google/apis/dlp_v2beta1/classes.rb +1 -1
  47. data/generated/google/apis/dlp_v2beta1/service.rb +142 -7
  48. data/generated/google/apis/dns_v2beta1.rb +1 -1
  49. data/generated/google/apis/drive_v2.rb +1 -1
  50. data/generated/google/apis/drive_v2/classes.rb +6 -0
  51. data/generated/google/apis/drive_v2/representations.rb +1 -0
  52. data/generated/google/apis/drive_v2/service.rb +6 -6
  53. data/generated/google/apis/drive_v3.rb +1 -1
  54. data/generated/google/apis/drive_v3/classes.rb +6 -0
  55. data/generated/google/apis/drive_v3/representations.rb +1 -0
  56. data/generated/google/apis/drive_v3/service.rb +6 -6
  57. data/generated/google/apis/firebaseremoteconfig_v1.rb +32 -0
  58. data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +180 -0
  59. data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +87 -0
  60. data/generated/google/apis/firebaseremoteconfig_v1/service.rb +153 -0
  61. data/generated/google/apis/games_management_v1management.rb +1 -1
  62. data/generated/google/apis/gmail_v1.rb +1 -1
  63. data/generated/google/apis/logging_v2.rb +1 -1
  64. data/generated/google/apis/logging_v2/classes.rb +444 -18
  65. data/generated/google/apis/logging_v2/representations.rb +119 -0
  66. data/generated/google/apis/logging_v2/service.rb +808 -1
  67. data/generated/google/apis/logging_v2beta1.rb +1 -1
  68. data/generated/google/apis/logging_v2beta1/classes.rb +367 -18
  69. data/generated/google/apis/logging_v2beta1/representations.rb +88 -0
  70. data/generated/google/apis/logging_v2beta1/service.rb +4 -1
  71. data/generated/google/apis/ml_v1.rb +1 -1
  72. data/generated/google/apis/ml_v1/classes.rb +1 -254
  73. data/generated/google/apis/ml_v1/representations.rb +0 -99
  74. data/generated/google/apis/monitoring_v3.rb +1 -1
  75. data/generated/google/apis/monitoring_v3/classes.rb +213 -0
  76. data/generated/google/apis/monitoring_v3/representations.rb +61 -0
  77. data/generated/google/apis/monitoring_v3/service.rb +4 -4
  78. data/generated/google/apis/people_v1.rb +1 -1
  79. data/generated/google/apis/people_v1/classes.rb +37 -0
  80. data/generated/google/apis/people_v1/representations.rb +18 -0
  81. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  82. data/generated/google/apis/runtimeconfig_v1/classes.rb +1 -1
  83. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  84. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +1 -1
  85. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +4 -4
  86. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  87. data/generated/google/apis/servicecontrol_v1/classes.rb +13 -3
  88. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  89. data/generated/google/apis/slides_v1.rb +1 -1
  90. data/generated/google/apis/slides_v1/classes.rb +10 -1
  91. data/generated/google/apis/speech_v1.rb +1 -1
  92. data/generated/google/apis/speech_v1/classes.rb +1 -1
  93. data/generated/google/apis/speech_v1beta1.rb +1 -1
  94. data/generated/google/apis/speech_v1beta1/classes.rb +1 -1
  95. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  96. data/generated/google/apis/storagetransfer_v1/classes.rb +5 -3
  97. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  98. data/generated/google/apis/toolresults_v1beta3/service.rb +48 -0
  99. data/generated/google/apis/toolresults_v1beta3firstparty.rb +1 -1
  100. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +48 -0
  101. data/generated/google/apis/vault_v1.rb +1 -1
  102. data/generated/google/apis/vault_v1/classes.rb +2 -2
  103. data/generated/google/apis/vault_v1/service.rb +2 -2
  104. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  105. data/generated/google/apis/youtube_partner_v1/classes.rb +137 -0
  106. data/generated/google/apis/youtube_partner_v1/representations.rb +62 -0
  107. data/generated/google/apis/youtube_partner_v1/service.rb +80 -0
  108. data/lib/google/apis/version.rb +1 -1
  109. metadata +10 -2
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/cloud-dns
26
26
  module DnsV2beta1
27
27
  VERSION = 'V2beta1'
28
- REVISION = '20170419'
28
+ REVISION = '20170809'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV2
28
28
  VERSION = 'V2'
29
- REVISION = '20170811'
29
+ REVISION = '20170825'
30
30
 
31
31
  # View and manage the files in your Google Drive
32
32
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -1533,6 +1533,11 @@ module Google
1533
1533
  # @return [Array<Google::Apis::DriveV2::ParentReference>]
1534
1534
  attr_accessor :parents
1535
1535
 
1536
+ # List of permission IDs for users with access to this file.
1537
+ # Corresponds to the JSON property `permissionIds`
1538
+ # @return [Array<String>]
1539
+ attr_accessor :permission_ids
1540
+
1536
1541
  # The list of permissions for users with access to this file. Not populated for
1537
1542
  # Team Drive files.
1538
1543
  # Corresponds to the JSON property `permissions`
@@ -1709,6 +1714,7 @@ module Google
1709
1714
  @owner_names = args[:owner_names] if args.key?(:owner_names)
1710
1715
  @owners = args[:owners] if args.key?(:owners)
1711
1716
  @parents = args[:parents] if args.key?(:parents)
1717
+ @permission_ids = args[:permission_ids] if args.key?(:permission_ids)
1712
1718
  @permissions = args[:permissions] if args.key?(:permissions)
1713
1719
  @properties = args[:properties] if args.key?(:properties)
1714
1720
  @quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used)
@@ -680,6 +680,7 @@ module Google
680
680
 
681
681
  collection :parents, as: 'parents', class: Google::Apis::DriveV2::ParentReference, decorator: Google::Apis::DriveV2::ParentReference::Representation
682
682
 
683
+ collection :permission_ids, as: 'permissionIds'
683
684
  collection :permissions, as: 'permissions', class: Google::Apis::DriveV2::Permission, decorator: Google::Apis::DriveV2::Permission::Representation
684
685
 
685
686
  collection :properties, as: 'properties', class: Google::Apis::DriveV2::Property, decorator: Google::Apis::DriveV2::Property::Representation
@@ -51,7 +51,7 @@ module Google
51
51
 
52
52
  def initialize
53
53
  super('https://www.googleapis.com/', 'drive/v2/')
54
- @batch_path = 'batch'
54
+ @batch_path = 'batch/drive/v2'
55
55
  end
56
56
 
57
57
  # Gets the information about the current user along with Drive API settings
@@ -1227,11 +1227,11 @@ module Google
1227
1227
  # @param [String] order_by
1228
1228
  # A comma-separated list of sort keys. Valid keys are 'createdDate', 'folder', '
1229
1229
  # lastViewedByMeDate', 'modifiedByMeDate', 'modifiedDate', 'quotaBytesUsed', '
1230
- # recency', 'sharedWithMeDate', 'starred', and 'title'. Each key sorts ascending
1231
- # by default, but may be reversed with the 'desc' modifier. Example usage: ?
1232
- # orderBy=folder,modifiedDate desc,title. Please note that there is a current
1233
- # limitation for users with approximately one million files in which the
1234
- # requested sort order is ignored.
1230
+ # recency', 'sharedWithMeDate', 'starred', 'title', and 'title_natural'. Each
1231
+ # key sorts ascending by default, but may be reversed with the 'desc' modifier.
1232
+ # Example usage: ?orderBy=folder,modifiedDate desc,title. Please note that there
1233
+ # is a current limitation for users with approximately one million files in
1234
+ # which the requested sort order is ignored.
1235
1235
  # @param [String] page_token
1236
1236
  # Page token for files.
1237
1237
  # @param [String] projection
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV3
28
28
  VERSION = 'V3'
29
- REVISION = '20170811'
29
+ REVISION = '20170825'
30
30
 
31
31
  # View and manage the files in your Google Drive
32
32
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -691,6 +691,11 @@ module Google
691
691
  # @return [Array<String>]
692
692
  attr_accessor :parents
693
693
 
694
+ # List of permission IDs for users with access to this file.
695
+ # Corresponds to the JSON property `permissionIds`
696
+ # @return [Array<String>]
697
+ attr_accessor :permission_ids
698
+
694
699
  # The full list of permissions for the file. This is only available if the
695
700
  # requesting user can share the file. Not populated for Team Drive files.
696
701
  # Corresponds to the JSON property `permissions`
@@ -862,6 +867,7 @@ module Google
862
867
  @owned_by_me = args[:owned_by_me] if args.key?(:owned_by_me)
863
868
  @owners = args[:owners] if args.key?(:owners)
864
869
  @parents = args[:parents] if args.key?(:parents)
870
+ @permission_ids = args[:permission_ids] if args.key?(:permission_ids)
865
871
  @permissions = args[:permissions] if args.key?(:permissions)
866
872
  @properties = args[:properties] if args.key?(:properties)
867
873
  @quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used)
@@ -378,6 +378,7 @@ module Google
378
378
  collection :owners, as: 'owners', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
379
379
 
380
380
  collection :parents, as: 'parents'
381
+ collection :permission_ids, as: 'permissionIds'
381
382
  collection :permissions, as: 'permissions', class: Google::Apis::DriveV3::Permission, decorator: Google::Apis::DriveV3::Permission::Representation
382
383
 
383
384
  hash :properties, as: 'properties'
@@ -51,7 +51,7 @@ module Google
51
51
 
52
52
  def initialize
53
53
  super('https://www.googleapis.com/', 'drive/v3/')
54
- @batch_path = 'batch'
54
+ @batch_path = 'batch/drive/v3'
55
55
  end
56
56
 
57
57
  # Gets information about the user, the user's Drive, and system capabilities.
@@ -840,11 +840,11 @@ module Google
840
840
  # Whether Team Drive items should be included in results.
841
841
  # @param [String] order_by
842
842
  # A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', '
843
- # modifiedByMeTime', 'modifiedTime', 'name', 'quotaBytesUsed', 'recency', '
844
- # sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts ascending
845
- # by default, but may be reversed with the 'desc' modifier. Example usage: ?
846
- # orderBy=folder,modifiedTime desc,name. Please note that there is a current
847
- # limitation for users with approximately one million files in which the
843
+ # modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', '
844
+ # recency', 'sharedWithMeTime', 'starred', and 'viewedByMeTime'. Each key sorts
845
+ # ascending by default, but may be reversed with the 'desc' modifier. Example
846
+ # usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a
847
+ # current limitation for users with approximately one million files in which the
848
848
  # requested sort order is ignored.
849
849
  # @param [Fixnum] page_size
850
850
  # The maximum number of files to return per page. Partial or empty result pages
@@ -0,0 +1,32 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/firebaseremoteconfig_v1/service.rb'
16
+ require 'google/apis/firebaseremoteconfig_v1/classes.rb'
17
+ require 'google/apis/firebaseremoteconfig_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Firebase Remote Config API
22
+ #
23
+ # Firebase Remote Config API allows the 3P clients to manage Remote Config
24
+ # conditions and parameters for Firebase applications.
25
+ #
26
+ # @see https://firebase.google.com/docs/remote-config/
27
+ module FirebaseremoteconfigV1
28
+ VERSION = 'V1'
29
+ REVISION = '20170830'
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,180 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module FirebaseremoteconfigV1
24
+
25
+ # *
26
+ # The RemoteConfig consists of a list of conditions (which can be
27
+ # thought of as named "if" statements) and a map of parameters (parameter key
28
+ # to a stucture containing an optional default value, as well as a optional
29
+ # submap of (condition name to value when that condition is true).
30
+ class RemoteConfig
31
+ include Google::Apis::Core::Hashable
32
+
33
+ # The list of named conditions. The order *does* affect the semantics.
34
+ # The condition_name values of these entries must be unique.
35
+ # The resolved value of a config parameter P is determined as follow:
36
+ # * Let Y be the set of values from the submap of P that refer to conditions
37
+ # that evaluate to <code>true</code>.
38
+ # * If Y is non empty, the value is taken from the specific submap in Y whose
39
+ # condition_name is the earliest in this condition list.
40
+ # * Else, if P has a default value option (condition_name is empty) then
41
+ # the value is taken from that option.
42
+ # * Else, parameter P has no value and is omitted from the config result.
43
+ # Example: parameter key "p1", default value "v1", submap specified as
44
+ # `"c1": v2, "c2": v3` where "c1" and "c2" are names of conditions in the
45
+ # condition list (where "c1" in this example appears before "c2"). The
46
+ # value of p1 would be v2 as long as c1 is true. Otherwise, if c2 is true,
47
+ # p1 would evaluate to v3, and if c1 and c2 are both false, p1 would evaluate
48
+ # to v1. If no default value was specified, and c1 and c2 were both false,
49
+ # no value for p1 would be generated.
50
+ # Corresponds to the JSON property `conditions`
51
+ # @return [Array<Google::Apis::FirebaseremoteconfigV1::RemoteConfigCondition>]
52
+ attr_accessor :conditions
53
+
54
+ # Map of parameter keys to their optional default values and optional submap
55
+ # of (condition name : value). Order doesn't affect semantics, and so is
56
+ # sorted by the server. The 'key' values of the params must be unique.
57
+ # Corresponds to the JSON property `parameters`
58
+ # @return [Hash<String,Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameter>]
59
+ attr_accessor :parameters
60
+
61
+ def initialize(**args)
62
+ update!(**args)
63
+ end
64
+
65
+ # Update properties of this object
66
+ def update!(**args)
67
+ @conditions = args[:conditions] if args.key?(:conditions)
68
+ @parameters = args[:parameters] if args.key?(:parameters)
69
+ end
70
+ end
71
+
72
+ # A single RemoteConfig Condition. A list of these (because order matters) are
73
+ # part of a single RemoteConfig template.
74
+ class RemoteConfigCondition
75
+ include Google::Apis::Core::Hashable
76
+
77
+ # Required.
78
+ # Corresponds to the JSON property `expression`
79
+ # @return [String]
80
+ attr_accessor :expression
81
+
82
+ # Required.
83
+ # A non empty and unique name of this condition.
84
+ # Corresponds to the JSON property `name`
85
+ # @return [String]
86
+ attr_accessor :name
87
+
88
+ # Optional.
89
+ # The display (tag) color of this condition. This serves as part of a tag
90
+ # (in the future, we may add tag text as well as tag color, but that is not
91
+ # yet implemented in the UI).
92
+ # This value has no affect on the semantics of the delivered config and it
93
+ # is ignored by the backend, except for passing it through write/read
94
+ # requests.
95
+ # Not having this value or having the "CONDITION_DISPLAY_COLOR_UNSPECIFIED"
96
+ # value (0) have the same meaning: Let the UI choose any valid color when
97
+ # displaying the condition.
98
+ # Corresponds to the JSON property `tagColor`
99
+ # @return [String]
100
+ attr_accessor :tag_color
101
+
102
+ def initialize(**args)
103
+ update!(**args)
104
+ end
105
+
106
+ # Update properties of this object
107
+ def update!(**args)
108
+ @expression = args[:expression] if args.key?(:expression)
109
+ @name = args[:name] if args.key?(:name)
110
+ @tag_color = args[:tag_color] if args.key?(:tag_color)
111
+ end
112
+ end
113
+
114
+ # While default_value and conditional_values are each optional, at least one of
115
+ # the two is required - otherwise, the parameter is meaningless (and an
116
+ # exception will be thrown by the validation logic).
117
+ class RemoteConfigParameter
118
+ include Google::Apis::Core::Hashable
119
+
120
+ # Optional - a map of (condition_name, value). The condition_name of the
121
+ # highest priority (the one listed first in the conditions array) determines
122
+ # the value of this parameter.
123
+ # Corresponds to the JSON property `conditionalValues`
124
+ # @return [Hash<String,Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue>]
125
+ attr_accessor :conditional_values
126
+
127
+ # A RemoteConfigParameter's "value" (either the default value, or the value
128
+ # associated with a condition name) is either a string, or the
129
+ # "use_in_app_default" indicator (which means to leave out the parameter from
130
+ # the returned <key, value> map that is the output of the parameter fetch).
131
+ # We represent the "use_in_app_default" as a bool, but (when using the boolean
132
+ # instead of the string) it should always be <code>true</code>.
133
+ # Corresponds to the JSON property `defaultValue`
134
+ # @return [Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue]
135
+ attr_accessor :default_value
136
+
137
+ def initialize(**args)
138
+ update!(**args)
139
+ end
140
+
141
+ # Update properties of this object
142
+ def update!(**args)
143
+ @conditional_values = args[:conditional_values] if args.key?(:conditional_values)
144
+ @default_value = args[:default_value] if args.key?(:default_value)
145
+ end
146
+ end
147
+
148
+ # A RemoteConfigParameter's "value" (either the default value, or the value
149
+ # associated with a condition name) is either a string, or the
150
+ # "use_in_app_default" indicator (which means to leave out the parameter from
151
+ # the returned <key, value> map that is the output of the parameter fetch).
152
+ # We represent the "use_in_app_default" as a bool, but (when using the boolean
153
+ # instead of the string) it should always be <code>true</code>.
154
+ class RemoteConfigParameterValue
155
+ include Google::Apis::Core::Hashable
156
+
157
+ # if true, omit the parameter from the map of fetched parameter values
158
+ # Corresponds to the JSON property `useInAppDefault`
159
+ # @return [Boolean]
160
+ attr_accessor :use_in_app_default
161
+ alias_method :use_in_app_default?, :use_in_app_default
162
+
163
+ # the string to set the parameter to
164
+ # Corresponds to the JSON property `value`
165
+ # @return [String]
166
+ attr_accessor :value
167
+
168
+ def initialize(**args)
169
+ update!(**args)
170
+ end
171
+
172
+ # Update properties of this object
173
+ def update!(**args)
174
+ @use_in_app_default = args[:use_in_app_default] if args.key?(:use_in_app_default)
175
+ @value = args[:value] if args.key?(:value)
176
+ end
177
+ end
178
+ end
179
+ end
180
+ end
@@ -0,0 +1,87 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module FirebaseremoteconfigV1
24
+
25
+ class RemoteConfig
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class RemoteConfigCondition
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class RemoteConfigParameter
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class RemoteConfigParameterValue
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class RemoteConfig
50
+ # @private
51
+ class Representation < Google::Apis::Core::JsonRepresentation
52
+ collection :conditions, as: 'conditions', class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigCondition, decorator: Google::Apis::FirebaseremoteconfigV1::RemoteConfigCondition::Representation
53
+
54
+ hash :parameters, as: 'parameters', class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameter, decorator: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameter::Representation
55
+
56
+ end
57
+ end
58
+
59
+ class RemoteConfigCondition
60
+ # @private
61
+ class Representation < Google::Apis::Core::JsonRepresentation
62
+ property :expression, as: 'expression'
63
+ property :name, as: 'name'
64
+ property :tag_color, as: 'tagColor'
65
+ end
66
+ end
67
+
68
+ class RemoteConfigParameter
69
+ # @private
70
+ class Representation < Google::Apis::Core::JsonRepresentation
71
+ hash :conditional_values, as: 'conditionalValues', class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue, decorator: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue::Representation
72
+
73
+ property :default_value, as: 'defaultValue', class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue, decorator: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue::Representation
74
+
75
+ end
76
+ end
77
+
78
+ class RemoteConfigParameterValue
79
+ # @private
80
+ class Representation < Google::Apis::Core::JsonRepresentation
81
+ property :use_in_app_default, as: 'useInAppDefault'
82
+ property :value, as: 'value'
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
@@ -0,0 +1,153 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module FirebaseremoteconfigV1
23
+ # Firebase Remote Config API
24
+ #
25
+ # Firebase Remote Config API allows the 3P clients to manage Remote Config
26
+ # conditions and parameters for Firebase applications.
27
+ #
28
+ # @example
29
+ # require 'google/apis/firebaseremoteconfig_v1'
30
+ #
31
+ # Firebaseremoteconfig = Google::Apis::FirebaseremoteconfigV1 # Alias the module
32
+ # service = Firebaseremoteconfig::FirebaseRemoteConfigService.new
33
+ #
34
+ # @see https://firebase.google.com/docs/remote-config/
35
+ class FirebaseRemoteConfigService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://firebaseremoteconfig.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Get the latest version Remote Configuration for a project.
52
+ # Returns the RemoteConfig as the payload, and also the eTag as a
53
+ # response header.
54
+ # @param [String] project
55
+ # The GMP project identifier. Required.
56
+ # See note at the beginning of this file regarding project ids.
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [Google::Apis::RequestOptions] options
63
+ # Request-specific options
64
+ #
65
+ # @yield [result, err] Result & error if block supplied
66
+ # @yieldparam result [Google::Apis::FirebaseremoteconfigV1::RemoteConfig] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::FirebaseremoteconfigV1::RemoteConfig]
70
+ #
71
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
74
+ def get_project_remote_config(project, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:get, 'v1/{+project}/remoteConfig', options)
76
+ command.response_representation = Google::Apis::FirebaseremoteconfigV1::RemoteConfig::Representation
77
+ command.response_class = Google::Apis::FirebaseremoteconfigV1::RemoteConfig
78
+ command.params['project'] = project unless project.nil?
79
+ command.query['fields'] = fields unless fields.nil?
80
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
81
+ execute_or_queue_command(command, &block)
82
+ end
83
+
84
+ # Update a RemoteConfig. We treat this as an always-existing
85
+ # resource (when it is not found in our data store, we treat it as version
86
+ # 0, a template with zero conditions and zero parameters). Hence there are
87
+ # no Create or Delete operations. Returns the updated template when
88
+ # successful (and the updated eTag as a response header), or an error if
89
+ # things go wrong.
90
+ # Possible error messages:
91
+ # * VALIDATION_ERROR (HTTP status 400) with additional details if the
92
+ # template being passed in can not be validated.
93
+ # * AUTHENTICATION_ERROR (HTTP status 401) if the request can not be
94
+ # authenticate (e.g. no access token, or invalid access token).
95
+ # * AUTHORIZATION_ERROR (HTTP status 403) if the request can not be
96
+ # authorized (e.g. the user has no access to the specified project id).
97
+ # * VERSION_MISMATCH (HTTP status 412) when trying to update when the
98
+ # expected eTag (passed in via the "If-match" header) is not specified, or
99
+ # is specified but does does not match the current eTag.
100
+ # * Internal error (HTTP status 500) for Database problems or other internal
101
+ # errors.
102
+ # @param [String] project
103
+ # The GMP project identifier. Required.
104
+ # See note at the beginning of this file regarding project ids.
105
+ # @param [Google::Apis::FirebaseremoteconfigV1::RemoteConfig] remote_config_object
106
+ # @param [Boolean] validate_only
107
+ # Optional. Defaults to <code>false</code> (UpdateRemoteConfig call should
108
+ # update the backend if there are no validation/interal errors). May be set
109
+ # to <code>true</code> to indicate that, should no validation errors occur,
110
+ # the call should return a "200 OK" instead of performing the update. Note
111
+ # that other error messages (500 Internal Error, 412 Version Mismatch, etc)
112
+ # may still result after flipping to <code>false</code>, even if getting a
113
+ # "200 OK" when calling with <code>true</code>.
114
+ # @param [String] fields
115
+ # Selector specifying which fields to include in a partial response.
116
+ # @param [String] quota_user
117
+ # Available to use for quota purposes for server-side applications. Can be any
118
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
119
+ # @param [Google::Apis::RequestOptions] options
120
+ # Request-specific options
121
+ #
122
+ # @yield [result, err] Result & error if block supplied
123
+ # @yieldparam result [Google::Apis::FirebaseremoteconfigV1::RemoteConfig] parsed result object
124
+ # @yieldparam err [StandardError] error object if request failed
125
+ #
126
+ # @return [Google::Apis::FirebaseremoteconfigV1::RemoteConfig]
127
+ #
128
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
129
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
130
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
131
+ def update_project_remote_config(project, remote_config_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
132
+ command = make_simple_command(:put, 'v1/{+project}/remoteConfig', options)
133
+ command.request_representation = Google::Apis::FirebaseremoteconfigV1::RemoteConfig::Representation
134
+ command.request_object = remote_config_object
135
+ command.response_representation = Google::Apis::FirebaseremoteconfigV1::RemoteConfig::Representation
136
+ command.response_class = Google::Apis::FirebaseremoteconfigV1::RemoteConfig
137
+ command.params['project'] = project unless project.nil?
138
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
139
+ command.query['fields'] = fields unless fields.nil?
140
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
141
+ execute_or_queue_command(command, &block)
142
+ end
143
+
144
+ protected
145
+
146
+ def apply_command_defaults(command)
147
+ command.query['key'] = key unless key.nil?
148
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
149
+ end
150
+ end
151
+ end
152
+ end
153
+ end