google-apis-fcm_v1 0.3.0 → 0.8.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: 3bf03a730ea74872daa35e6051bb1326b2c36bda53e5a501b081b91dd6119c58
4
- data.tar.gz: 314393229d2674b7d005aa1cc1232cad16a4d8c9416211f52919f88e50d4ecf6
3
+ metadata.gz: ccfab66cd3527bf7e85b7fc54cd8c4abc5dd3472b194acaf278888b0d8e2f7f7
4
+ data.tar.gz: 1616af867b740345c277145ca05a5bd5bbfeb270292b7aeb05a92bdcb151ccb7
5
5
  SHA512:
6
- metadata.gz: beb7bfdbb2a9210537dc485d92f4e76c57c8e5563e5df50b824b43c5b7262b6b5922beb9637e956056c1fd28e532942e2eb196d797d4115c3ab48117e6471d38
7
- data.tar.gz: faa20b75e7a87fa9658d6460c76ca8dce3775d48125e9184ade917f07ec6b70bd60bf733d33467779435c6967a8c37bd4e7bfac10b7ab88c8b4b8f42f1f92f10
6
+ metadata.gz: 647e32cfb1860f7d2f7ea215f7f604bacd20769da83fefcf5bf64ca4de839398b33a6dc2af0b3ba0aaf37b728bfd7ff4215280dd1914c39d2bfcb8fe4c6402db
7
+ data.tar.gz: caddb0fac52aa25489f235c52f90318b2dbe46fc46e6ea5e48d794831672485ab8bbe8f3f86285865be5a64f993fe4960c35ed272e6618086f1d96406b355f71
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-fcm_v1
2
2
 
3
+ ### v0.8.0 (2021-06-29)
4
+
5
+ * Regenerated using generator version 0.4.0
6
+
7
+ ### v0.7.0 (2021-06-24)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.6.0 (2021-06-10)
12
+
13
+ * Regenerated from discovery document revision 20210607
14
+ * Regenerated using generator version 0.3.0
15
+
16
+ ### v0.5.0 (2021-05-19)
17
+
18
+ * Unspecified changes
19
+
20
+ ### v0.4.0 (2021-03-20)
21
+
22
+ * Regenerated from discovery document revision 20210317
23
+ * Regenerated using generator version 0.2.0
24
+
3
25
  ### v0.3.0 (2021-03-04)
4
26
 
5
27
  * Unspecified changes
@@ -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.3.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210125"
25
+ REVISION = "20210607"
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-fcm_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.8.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-03-08 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Firebase Cloud Messaging API V1. Simple
28
34
  REST clients are Ruby client libraries that provide access to Google services via
29
35
  their HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  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.3.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-fcm_v1/v0.8.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-fcm_v1
57
63
  post_install_message:
58
64
  rdoc_options: []
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.2.13
78
+ rubygems_version: 3.2.17
73
79
  signing_key:
74
80
  specification_version: 4
75
81
  summary: Simple REST client for Firebase Cloud Messaging API V1