google-apis-fcm_v1 0.1.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b20610027995a81a1d60b9bc0b86055f4db6a38403175e1509c3e3002f8e616c
4
- data.tar.gz: 01f145945e49833b5f8bffd873252aeb8a306e230a21ab2b555cae00ea5b9462
3
+ metadata.gz: b23b09a71dff8306d6ba51704145bdcf9dd48a4e9029dfcb043eec79c13e843b
4
+ data.tar.gz: a4419cedd44db209416399f283888eacbe4ec21b2a3fb06a715bc715cdb785e8
5
5
  SHA512:
6
- metadata.gz: 964689da07e821180cf756b63bb877c74e1b3aad230f596186c64143353f3b8522badcdb831418ac9fbb4834845ebdcae1410ae5664a152a5d7eac26ee96b72e
7
- data.tar.gz: 7f38b5825f356670a3a53c5aede1f50f94c4c36a0906ba400a8080632aef7cb5064fb6da403fb46058331f0afe7563966a0af53bdb8ba0b7a66b6ec9b25043ee
6
+ metadata.gz: 291c3dc1446ab042960cdbb6883109461f1bb8d4d998ade81611e9dcbaad8953bfefb3833d1f2e7994ea1d028c565d6840725bcf5f3e07cd0eee44f0e8d88951
7
+ data.tar.gz: 66b03762a4764b23e62b7e79439371b26092e5698be44c13377335bae012e724babac66fc9096ff1a0bba85f816843d70cefa5637893af9d6305d1e5107d5700
data/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Release history for google-apis-fcm_v1
2
2
 
3
+ ### v0.6.0 (2021-06-10)
4
+
5
+ * Regenerated from discovery document revision 20210607
6
+ * Regenerated using generator version 0.3.0
7
+
8
+ ### v0.5.0 (2021-05-19)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.4.0 (2021-03-20)
13
+
14
+ * Regenerated from discovery document revision 20210317
15
+ * Regenerated using generator version 0.2.0
16
+
17
+ ### v0.3.0 (2021-03-04)
18
+
19
+ * Unspecified changes
20
+
21
+ ### v0.2.0 (2021-01-28)
22
+
23
+ * Regenerated from discovery document revision 20210125
24
+ * Regenerated using generator version 0.1.2
25
+
3
26
  ### v0.1.0 (2021-01-07)
4
27
 
5
28
  * Regenerated using generator version 0.1.1
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1'
32
32
 
33
- # View and manage your data across Google Cloud Platform services
33
+ # See, edit, configure, and delete your Google Cloud Platform data
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
35
  end
36
36
  end
@@ -373,8 +373,8 @@ module Google
373
373
  # HTTP request headers defined in Apple Push Notification Service. Refer to [
374
374
  # APNs request headers](https://developer.apple.com/documentation/
375
375
  # usernotifications/setting_up_a_remote_notification_server/
376
- # sending_notification_requests_to_apns) for supported headers, e.g. "apns-
377
- # priority": "10".
376
+ # sending_notification_requests_to_apns) for supported headers such as `apns-
377
+ # expiration` and `apns-priority`.
378
378
  # Corresponds to the JSON property `headers`
379
379
  # @return [Hash<String,String>]
380
380
  attr_accessor :headers
@@ -383,7 +383,9 @@ module Google
383
383
  # payload. See [Payload Key Reference](https://developer.apple.com/documentation/
384
384
  # usernotifications/setting_up_a_remote_notification_server/
385
385
  # generating_a_remote_notification). If present, it overrides google.firebase.
386
- # fcm.v1.Notification.title and google.firebase.fcm.v1.Notification.body.
386
+ # fcm.v1.Notification.title and google.firebase.fcm.v1.Notification.body. The
387
+ # backend sets a default value for `apns-expiration` of 30 days and a default
388
+ # value for `apns-priority` of 10 if not explicitly set.
387
389
  # Corresponds to the JSON property `payload`
388
390
  # @return [Hash<String,Object>]
389
391
  attr_accessor :payload
@@ -428,61 +430,60 @@ module Google
428
430
 
429
431
  # Represents a color in the RGBA color space. This representation is designed
430
432
  # for simplicity of conversion to/from color representations in various
431
- # languages over compactness; for example, the fields of this representation can
432
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
433
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
433
+ # languages over compactness. For example, the fields of this representation can
434
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
435
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
434
436
  # method in iOS; and, with just a little work, it can be easily formatted into a
435
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
437
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
436
438
  # information about the absolute color space that should be used to interpret
437
439
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
438
- # applications SHOULD assume the sRGB color space. Note: when color equality
439
- # needs to be decided, implementations, unless documented otherwise, will treat
440
- # two colors to be equal if all their red, green, blue and alpha values each
441
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
442
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
443
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
444
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
445
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
446
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
447
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
448
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
449
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
450
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
451
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
452
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
453
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
454
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
455
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
456
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
457
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
458
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
459
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
460
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
461
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
462
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
440
+ # applications should assume the sRGB color space. When color equality needs to
441
+ # be decided, implementations, unless documented otherwise, treat two colors as
442
+ # equal if all their red, green, blue, and alpha values each differ by at most
443
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
444
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
445
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
446
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
447
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
448
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
449
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
450
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
451
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
452
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
453
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
454
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
455
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
456
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
457
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
458
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
459
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
460
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
461
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
462
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
463
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
464
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
463
465
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
464
466
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
465
467
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
466
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
468
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
467
469
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
468
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
469
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
470
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
471
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
472
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
473
- # join(''); `; // ...
470
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
471
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
472
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
473
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
474
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
475
+ # / ...
474
476
  class Color
475
477
  include Google::Apis::Core::Hashable
476
478
 
477
479
  # The fraction of this color that should be applied to the pixel. That is, the
478
- # final pixel color is defined by the equation: pixel color = alpha * (this
479
- # color) + (1.0 - alpha) * (background color) This means that a value of 1.0
480
+ # final pixel color is defined by the equation: `pixel color = alpha * (this
481
+ # color) + (1.0 - alpha) * (background color)` This means that a value of 1.0
480
482
  # corresponds to a solid color, whereas a value of 0.0 corresponds to a
481
483
  # completely transparent color. This uses a wrapper message rather than a simple
482
484
  # float scalar so that it is possible to distinguish between a default value and
483
- # the value being unset. If omitted, this color object is to be rendered as a
484
- # solid color (as if the alpha value had been explicitly given with a value of 1.
485
- # 0).
485
+ # the value being unset. If omitted, this color object is rendered as a solid
486
+ # color (as if the alpha value had been explicitly given a value of 1.0).
486
487
  # Corresponds to the JSON property `alpha`
487
488
  # @return [Float]
488
489
  attr_accessor :alpha
@@ -540,49 +541,49 @@ module Google
540
541
 
541
542
  # Represents a color in the RGBA color space. This representation is designed
542
543
  # for simplicity of conversion to/from color representations in various
543
- # languages over compactness; for example, the fields of this representation can
544
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
545
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
544
+ # languages over compactness. For example, the fields of this representation can
545
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
546
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
546
547
  # method in iOS; and, with just a little work, it can be easily formatted into a
547
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
548
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
548
549
  # information about the absolute color space that should be used to interpret
549
550
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
550
- # applications SHOULD assume the sRGB color space. Note: when color equality
551
- # needs to be decided, implementations, unless documented otherwise, will treat
552
- # two colors to be equal if all their red, green, blue and alpha values each
553
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
554
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
555
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
556
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
557
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
558
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
559
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
560
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
561
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
562
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
563
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
564
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
565
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
566
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
567
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
568
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
569
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
570
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
571
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
572
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
573
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
574
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
551
+ # applications should assume the sRGB color space. When color equality needs to
552
+ # be decided, implementations, unless documented otherwise, treat two colors as
553
+ # equal if all their red, green, blue, and alpha values each differ by at most
554
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
555
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
556
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
557
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
558
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
559
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
560
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
561
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
562
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
563
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
564
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
565
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
566
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
567
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
568
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
569
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
570
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
571
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
572
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
573
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
574
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
575
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
575
576
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
576
577
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
577
578
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
578
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
579
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
579
580
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
580
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
581
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
582
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
583
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
584
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
585
- # join(''); `; // ...
581
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
582
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
583
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
584
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
585
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
586
+ # / ...
586
587
  # Corresponds to the JSON property `color`
587
588
  # @return [Google::Apis::FcmV1::Color]
588
589
  attr_accessor :color
@@ -633,8 +634,11 @@ module Google
633
634
  # @return [String]
634
635
  attr_accessor :condition
635
636
 
636
- # Input only. Arbitrary key/value payload. The key should not be a reserved word
637
- # ("from", "message_type", or any word starting with "google" or "gcm").
637
+ # Input only. Arbitrary key/value payload, which must be UTF-8 encoded. The key
638
+ # should not be a reserved word ("from", "message_type", or any word starting
639
+ # with "google" or "gcm"). When sending payloads containing only data fields to
640
+ # iOS devices, only normal priority (`"apns-priority": "5"`) is allowed in [`
641
+ # ApnsConfig`](/docs/reference/fcm/rest/v1/projects.messages#apnsconfig).
638
642
  # Corresponds to the JSON property `data`
639
643
  # @return [Hash<String,String>]
640
644
  attr_accessor :data
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FcmV1
18
18
  # Version of the google-apis-fcm_v1 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20200720"
25
+ REVISION = "20210607"
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-fcm_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-fcm_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-fcm_v1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-fcm_v1/v0.6.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-fcm_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Firebase Cloud Messaging API V1